File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
py/test/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1515# specific language governing permissions and limitations
1616# under the License.
1717
18+ import time
19+
1820import pytest
1921
2022from selenium .common .exceptions import WebDriverException
@@ -115,6 +117,7 @@ def callback(request: Request):
115117 driver .network .add_request_handler ("before_request" , callback )
116118 url = pages .url ("data_url.html" )
117119 driver .browsing_context .navigate (context = driver .current_window_handle , url = url , wait = ReadinessState .COMPLETE )
120+ time .sleep (1 ) # give callback time to complete
118121 assert driver .find_element (By .ID , "data-url-image" ).is_displayed ()
119122 assert len (data_requests ) > 0 , "BiDi event not captured"
120123 assert len (exceptions ) == 0 , "Exception raised when continuing request in callback"
You can’t perform that action at this time.
0 commit comments