File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 95
95
pip install -r "sample/Tests/requirements-desktop.txt"
96
96
else
97
97
pip install -r "sample/Tests/requirements-mobile.txt"
98
- fi
98
+ fi
99
99
- name : Run UI tests
100
100
env :
101
101
UNITY_APP_PATH : SampleApp.app
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ def test_case(self):
75
75
76
76
print ("Open a window on Chrome" )
77
77
seleniumdriver .current_window_handle
78
+ print ("Current window handles:" , seleniumdriver .window_handles )
78
79
79
80
time .sleep (5 )
80
81
@@ -85,13 +86,14 @@ def test_case(self):
85
86
time .sleep (2 )
86
87
87
88
print ("Waiting for new window..." )
88
- WebDriverWait (seleniumdriver , 30 ).until (EC .number_of_windows_to_be (2 ))
89
+ time .sleep (5 )
90
+ # WebDriverWait(seleniumdriver, 30).until(EC.number_of_windows_to_be(2))
89
91
90
- # Switch to the new window
91
- all_windows = seleniumdriver .window_handles
92
- new_window = [window for window in all_windows if window != seleniumdriver .current_window_handle ][0 ]
93
- seleniumdriver .switch_to .window (new_window )
94
- print ("Switched to new window" )
92
+ # # Switch to the new window
93
+ # all_windows = seleniumdriver.window_handles
94
+ # new_window = [window for window in all_windows if window != seleniumdriver.current_window_handle][0]
95
+ # seleniumdriver.switch_to.window(new_window)
96
+ # print("Switched to new window")
95
97
96
98
# Wait for confirmation screen
97
99
continue_btn = WebDriverWait (seleniumdriver , 60 ).until (EC .presence_of_element_located ((SeleniumBy .CLASS_NAME , 'Button--primary' )))
You can’t perform that action at this time.
0 commit comments