@@ -181,19 +181,19 @@ from seleniumbase import BaseCase
181
181
class MyTestClass (BaseCase ):
182
182
183
183
def test_basic (self ):
184
- self .open(' https://xkcd.com/353/' )
184
+ self .open(" https://xkcd.com/353/" )
185
185
self .assert_element(' img[alt="Python"]' )
186
186
self .click(' a[rel="license"]' )
187
- self .assert_text(' free to copy' , ' div center' )
187
+ self .assert_text(" free to copy" , " div center" )
188
188
self .open(" https://xkcd.com/1481/" )
189
189
title = self .get_attribute(" #comic img" , " title" )
190
190
self .assert_true(" 86,400 seconds per day" in title)
191
- self .click(' link=Blag' )
192
- self .assert_text(' The blag of the webcomic' , ' h2 ' )
193
- self .update_text(' input#s' , ' Robots!\n ' )
194
- self .assert_text(' Hooray robots!' , ' #content' )
195
- self .open(' https://xkcd.com/1319/' )
196
- self .assert_text( ' Automation' , ' div #ctitle' )
191
+ self .click(" link=Blag" )
192
+ self .assert_text(" The blag of the webcomic" , " h2 " )
193
+ self .update_text(" input#s" , " Robots!\n " )
194
+ self .assert_text(" Hooray robots!" , " #content" )
195
+ self .open(" https://xkcd.com/1319/" )
196
+ self .assert_exact_text( " Automation" , " #ctitle" )
197
197
```
198
198
(<i >By default, [ CSS Selectors] ( https://www.w3schools.com/cssref/css_selectors.asp ) are used for finding page elements.</i >)
199
199
0 commit comments