File tree Expand file tree Collapse file tree 7 files changed +20
-32
lines changed Expand file tree Collapse file tree 7 files changed +20
-32
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ def test_basic(self):
11
11
self .open ("https://xkcd.com/353/" )
12
12
self .click ('a[rel="license"]' )
13
13
self .open ("https://xkcd.com/1481/" )
14
- self .click ("link=Blag " )
15
- self .update_text ("input#s " , "Robots! \n " )
14
+ self .click ("link=Store " )
15
+ self .update_text ("input#top-search-input " , "xkcd book \n " )
16
16
self .open ("https://xkcd.com/1319/" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ class MasterQATests(MasterQA):
6
6
def test_masterqa (self ):
7
7
self .open ("https://xkcd.com/1700/" )
8
8
self .verify ("Do you see a webcomic?" )
9
- self .highlight_click ('link=Blag' )
10
- self .verify ('Do you see a blog archive?' )
11
- self .highlight_update_text ("input#s" , "Dragons\n " )
12
- self .verify ('Do you see "dragons" in the search results?' )
9
+ self .highlight_click ("link=Store" )
10
+ self .highlight_click ('[title="things for walls"]' )
11
+ self .verify ('Do you see posters for sale?' )
12
+ self .highlight_update_text ("input.search-input" , "book\n " )
13
+ self .verify ('Do you see books in the search results?' )
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ def test_xkcd(self):
16
16
self .verify ("Can you find the moon?" )
17
17
self .click ('a[rel="next"]' )
18
18
self .verify ("Do the drones look safe?" )
19
- self .click_link_text ('Blag ' )
20
- self .update_text ("input#s " , "Robots! \n " )
21
- self .verify ("Does it say 'Hooray robots' on the page ?" )
19
+ self .click_link_text ('Store ' )
20
+ self .update_text ("input.search-input " , "book \n " )
21
+ self .verify ("Do you see books in the search results ?" )
22
22
self .open ("https://xkcd.com/213/" )
23
23
for i in range (5 ):
24
24
self .click ('a[rel="prev"]' )
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ def test_basic(self):
11
11
self .open ("https://xkcd.com/1481/" )
12
12
title = self .get_attribute ("#comic img" , "title" )
13
13
self .assert_true ("86,400 seconds per day" in title )
14
- self .click ("link=Blag " )
15
- self .assert_text ( "The blag of the webcomic" , "h2" )
16
- self .update_text ("input#s " , "Robots! \n " )
17
- self .assert_text ("Hooray robots! " , "#content " )
14
+ self .click ("link=Store " )
15
+ self .assert_element ( '[alt= "The xkcd store"]' )
16
+ self .update_text ("input.search-input " , "xkcd book \n " )
17
+ self .assert_text ("xkcd: volume 0 " , "h3 " )
18
18
self .open ("https://xkcd.com/1319/" )
19
19
self .assert_exact_text ("Automation" , "#ctitle" )
20
20
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ class MyTestClass(BaseCase):
7
7
def test_proxy (self ):
8
8
self .open ('https://ipinfo.io/' )
9
9
ip_address = self .get_text ("div.home-ip-details span.value" )[1 :- 1 ]
10
- self .open ('https://ipinfo.io/%s' % ip_address )
11
- print ("\n \n IP Address = %s\n " % ip_address )
10
+ print ("\n \n My IP Address = %s\n " % ip_address )
12
11
print ("Displaying Host Info:" )
13
- print (self .get_text ('ul.address-list' ) )
12
+ print (self .get_text ('div.home-ip-details' ). split ( 'asn: ' )[ 0 ] )
14
13
print ("\n The browser will close automatically in 7 seconds..." )
15
14
time .sleep (7 )
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ def test_basic(self):
11
11
self .open ("https://xkcd.com/1481/" )
12
12
title = self .get_attribute ("#comic img" , "title" )
13
13
self .assert_true ("86,400 seconds per day" in title )
14
- self .click ("link=Blag " )
15
- self .assert_text ( "The blag of the webcomic" , "h2" )
16
- self .update_text ("input#s " , "Robots! \n " )
17
- self .assert_text ("Hooray robots! " , "#content " )
14
+ self .click ("link=Store " )
15
+ self .assert_element ( '[alt= "The xkcd store"]' )
16
+ self .update_text ("input.search-input " , "xkcd book \n " )
17
+ self .assert_text ("xkcd: volume 0 " , "h3 " )
18
18
self .open ("https://xkcd.com/1319/" )
19
19
self .assert_exact_text ("Automation" , "#ctitle" )
You can’t perform that action at this time.
0 commit comments