forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccess_dvn.py
executable file
·29 lines (21 loc) · 943 Bytes
/
access_dvn.py
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
# This is a test to access Dataverse homepage.
import unittest
from selenium import webdriver
class AccessDVN(unittest.TestCase):
def setUp(self):
desired_capabilities = webdriver.DesiredCapabilities.FIREFOX
desired_capabilities['version'] = '24'
desired_capabilities['platform'] = 'Linux'
desired_capabilities['name'] = 'Testing Selenium 2 in Python at Sauce'
self.driver = webdriver.Remote(
desired_capabilities=desired_capabilities,
command_executor="http://esodvn:[email protected]:80/wd/hub"
)
self.driver.implicitly_wait(30)
def test_sauce(self):
self.driver.get('http://dvn-build.hmdc.harvard.edu')
def tearDown(self):
print("Link to your job: https://saucelabs.com/jobs/%s" % self.driver.session_id)
self.driver.quit()
if __name__ == '__main__':
unittest.main()