-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoteTest.py
More file actions
29 lines (22 loc) · 977 Bytes
/
RemoteTest.py
File metadata and controls
29 lines (22 loc) · 977 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
27
28
29
#import time
#time.sleep(60)
import unittest
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
class Test(unittest.TestCase):
def setUp(self):
#self.driver = webdriver.Remote(command_executor='http://hub:4444/wd/hub',desired_capabilities=DesiredCapabilities.FIREFOX)
#self.driver = webdriver.Remote(command_executor='http://10.20.56.18:4444/wd/hub',desired_capabilities=DesiredCapabilities.FIREFOX)
self.driver=webdriver.Firefox()
self.driver.implicitly_wait(30)
self.verificationErrors = []
self.driver.maximize_window()
self.driver.delete_all_cookies()
def testName(self):
self.driver.get("http://www.termpaperwarehouse.com/")
print self.driver.title
def tearDown(self):
self.driver.quit()
if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
unittest.main()