From f5566ddeb3f892e1a8c2ac357ede7b2014f39d93 Mon Sep 17 00:00:00 2001 From: "prayag.m_pristine" Date: Fri, 8 Mar 2024 18:31:19 +0530 Subject: [PATCH] code to verify post heading , author name and date of a post --- tests/Acceptance/aswPostCest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Acceptance/aswPostCest.php b/tests/Acceptance/aswPostCest.php index afccc97..ab66de4 100644 --- a/tests/Acceptance/aswPostCest.php +++ b/tests/Acceptance/aswPostCest.php @@ -6,7 +6,10 @@ class aswPostCest{ public function SinglePost(AcceptanceTester $I){ + + $I->wantTo('verify post heading, author name and the date of the post.'); $I->amOnPage('https://americansongwriter.com/'); + $I->click('#page > section > div.g1-row-inner > div > div > div.g1-mosaic-item.g1-mosaic-item-1 > article > div.entry-body > header > h3 > a'); $heading =$I->grabTextFrom('.entry-header'); @@ -15,6 +18,6 @@ public function SinglePost(AcceptanceTester $I){ $date =$I->grabTextFrom('.entry-date'); - echo $heading," ",$author," ",$date; + echo $heading," ",$author," ",$date; // output } } \ No newline at end of file