Add basic_script.py

This commit is contained in:
Michael Mintz 2018-03-08 04:25:51 -05:00
parent 4f9bbc2423
commit db5f54b1d0
1 changed files with 12 additions and 0 deletions

12
examples/basic_script.py Executable file
View File

@ -0,0 +1,12 @@
from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_basic(self):
self.open('http://xkcd.com/353/')
self.click('a[rel="license"]')
self.open('http://xkcd.com/1481/')
self.click("link=Blag")
self.update_text('input#s', 'Robots!\n')
self.open('http://xkcd.com/1319/')