File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 33from selenium .webdriver .chrome .options import Options as ChromeOptions
44
55options = ChromeOptions ()
6-
6+ options . set_capability ( 'sessionName' , 'BStack Local Test' )
77# The webdriver management will be handled by the browserstack-sdk
88# so this will be overridden and tests will run browserstack -
99# without any changes to the test files!
Original file line number Diff line number Diff line change 44from selenium .webdriver .support import expected_conditions as EC
55from selenium .webdriver .common .by import By
66from selenium .common .exceptions import NoSuchElementException
7+ from selenium .webdriver .chrome .options import Options as ChromeOptions
78
89# The webdriver management will be handled by the browserstack-sdk
910# so this will be overridden and tests will run browserstack -
1011# without any changes to the test files!
11- driver = webdriver .Chrome ()
12+ options = ChromeOptions ()
13+ options .set_capability ('sessionName' , 'BStack Sample Test' )
14+ driver = webdriver .Chrome (options = options )
1215
1316try :
1417 driver .get ('https://bstackdemo.com/' )
You can’t perform that action at this time.
0 commit comments