-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest_samplePytest.py
More file actions
26 lines (19 loc) · 793 Bytes
/
test_samplePytest.py
File metadata and controls
26 lines (19 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from selenium import webdriver
import time
# driver = webdriver.Firefox(executable_path="C:\\Grid\\geckodriver.exe")
# driver = webdriver.Ie(executable_path="C:\\Grid\\IEdriverserver.exe")
class Test_global:
driver = None
def test_Sample1():
Test_global.driver = webdriver.Chrome("/Users/skpatro/sel/chromedriver")
# driver.maximize_window()
Test_global.driver.implicitly_wait(30)
Test_global.driver.set_page_load_timeout(50)
Test_global.driver.get("https://qavbox.github.io/demo")
assert "QA1VBOX" in Test_global.driver.title
def test_navReg():
# Test_global.driver.click()
# driver.find_element_by_link_text("SignUp Form").click()
Test_global.driver.save_screenshot("/Users/skpatro/sel/test.png")
time.sleep(3)
Test_global.driver.quit()