File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from selenium .webdriver .chrome .options import Options as ChromeOptions
44
55options = ChromeOptions ()
6+ options .set_capability ('sessionName' , 'BStack Local Test' )
67
78# The webdriver management will be handled by the browserstack-sdk
89# so this will be overridden and tests will run browserstack -
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