File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1+ venv
2+ .idea
3+ DS_Store
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def test_demo_site(self):
5757 # Url
5858 print ("Loading URL" )
5959 driver .get (
60- "https://stage-lambda-devops-use-only.lambdatestinternal.com/To-do -app/index.html "
60+ "https://lambdatest.github.io/sample-todo -app/"
6161 )
6262
6363 # Let's click on a element
@@ -76,14 +76,13 @@ def test_demo_site(self):
7676 print ("Added LambdaTest checkbox" )
7777
7878 # print the heading
79- search = driver .find_element (By .CSS_SELECTOR , ".container h2 " )
79+ search = driver .find_element (By .XPATH , "//h1[contains(@class,'font-bold')] " )
8080 assert search .is_displayed (), "heading is not displayed"
8181 print (search .text )
8282 search .click ()
8383 driver .implicitly_wait (3 )
8484
85- # Let's download the invoice
86- heading = driver .find_element (By .CSS_SELECTOR , ".container h2" )
85+ heading = driver .find_element (By .XPATH , "//h1[contains(@class,'font-bold')]" )
8786 if heading .is_displayed ():
8887 heading .click ()
8988 driver .execute_script ("lambda-status=passed" )
Original file line number Diff line number Diff line change 1- urllib3 == 1.26.5
2- selenium == 4.25 .0
1+ urllib3 == 2.5.0
2+ selenium == 4.38 .0
Original file line number Diff line number Diff line change @@ -65,14 +65,13 @@ def test_demo_site(self):
6565 print ("Added LambdaTest checkbox" )
6666
6767 # print the heading
68- search = driver .find_element (By .CSS_SELECTOR , ".container h2 " )
68+ search = driver .find_element (By .XPATH , "//h1[contains(@class,'font-bold')] " )
6969 assert search .is_displayed (), "heading is not displayed"
7070 print (search .text )
7171 search .click ()
7272 driver .implicitly_wait (3 )
7373
74- # Let's download the invoice
75- heading = driver .find_element (By .CSS_SELECTOR , ".container h2" )
74+ heading = driver .find_element (By .XPATH , "//h1[contains(@class,'font-bold')]" )
7675 if heading .is_displayed ():
7776 heading .click ()
7877 driver .execute_script ("lambda-status=passed" )
You can’t perform that action at this time.
0 commit comments