Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 213de74

Browse files
Andrew ElickAndrew Elick
authored andcommitted
:Edited network record
1 parent 7fb6255 commit 213de74

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

basic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def setUp(self):
3131
caps['platform'] = 'Mac OSX 10.10'
3232
caps['screenResolution'] = '1366x768'
3333
caps['record_video'] = 'true'
34-
caps['record_network'] = 'true'
34+
caps['record_network'] = 'false'
3535

3636
# start the remote browser on our server
3737
self.driver = webdriver.Remote(
@@ -51,18 +51,18 @@ def test_CBT(self):
5151
# maximize the window - DESKTOPS ONLY
5252
#print('Maximizing window')
5353
#self.driver.maximize_window()
54-
54+
5555
#check the title
5656
print('Checking title')
5757
self.assertEqual("Selenium Test Example Page", self.driver.title)
5858

59-
# if we are still in the try block after all of our assertions that
59+
# if we are still in the try block after all of our assertions that
6060
# means our test has had no failures, so we set the status to "pass"
6161
self.test_result = 'pass'
6262

6363
except AssertionError as e:
6464

65-
# if any assertions are false, we take a snapshot of the screen, log
65+
# if any assertions are false, we take a snapshot of the screen, log
6666
# the error message, and set the score to "during tearDown()".
6767

6868
snapshot_hash = self.api_session.post('https://crossbrowsertesting.com/api/v3/selenium/' + self.driver.session_id + '/snapshots').json()['hash']
@@ -77,7 +77,7 @@ def tearDown(self):
7777
# Here we make the api call to set the test's score.
7878
# Pass it it passes, fail if an assertion fails, unset if the test didn't finish
7979
if self.test_result is not None:
80-
self.api_session.put('https://crossbrowsertesting.com/api/v3/selenium/' + self.driver.session_id,
80+
self.api_session.put('https://crossbrowsertesting.com/api/v3/selenium/' + self.driver.session_id,
8181
data={'action':'set_score', 'score':self.test_result})
8282

8383

drag-and-drop.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def setUp(self):
3535
caps['platform'] = 'Windows 10'
3636
caps['screenResolution'] = '1366x768'
3737
caps['record_video'] = 'true'
38-
caps['record_network'] = 'true'
38+
caps['record_network'] = 'false'
3939

4040
# start the remote browser on our server
4141
self.driver = webdriver.Remote(
@@ -59,11 +59,11 @@ def test_CBT(self):
5959
# grab the first element
6060
print('Grabbing draggable element')
6161
draggable = self.driver.find_element_by_id("draggable")
62-
62+
6363
# then the second element
6464
print('Grabbing the droppable element')
6565
droppable = self.driver.find_element_by_id("droppable")
66-
66+
6767
# we use ActionChains to move the element
6868
print('Dragging the element')
6969
actionChains = ActionChains(self.driver)

login-form.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def setUp(self):
3434
caps['platform'] = 'Windows 10'
3535
caps['screenResolution'] = '1366x768'
3636
caps['record_video'] = 'true'
37-
caps['record_network'] = 'true'
37+
caps['record_network'] = 'false'
3838

3939
# start the remote browser on our server
4040
self.driver = webdriver.Remote(
@@ -58,15 +58,15 @@ def test_CBT(self):
5858
# we'll start the login process by entering our username
5959
print('Entering username')
6060
self.driver.find_element_by_name('username').send_keys('[email protected]')
61-
61+
6262
# then by entering our password
6363
print('Entering password')
6464
self.driver.find_element_by_name('password').send_keys('test123')
65-
65+
6666
# now we'll click the login button
6767
print('Logging in')
6868
self.driver.find_element_by_css_selector('body > div > div > div > div > form > div.form-actions > button').click()
69-
69+
7070
# if we've passed the login, we should see the welcome text
7171

7272
elem = WebDriverWait(self.driver, 10).until(

todo-app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def setUp(self):
3131
caps['platform'] = 'Windows 10'
3232
caps['screenResolution'] = '1366x768'
3333
caps['record_video'] = 'true'
34-
caps['record_network'] = 'true'
34+
caps['record_network'] = 'false'
3535

3636
# start the remote browser on our server
3737
self.driver = webdriver.Remote(

0 commit comments

Comments
 (0)