File tree Expand file tree Collapse file tree
dotnet/SeleniumDocs/BiDi/CDP
java/src/test/java/dev/selenium/bidi/cdp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class NetworkTest : BaseTest
1616 [ TestInitialize ]
1717 public void Startup ( )
1818 {
19- StartDriver ( "145" ) ;
19+ StartDriver ( ) ;
2020 }
2121
2222 [ TestMethod ]
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ public class CdpApiTest extends BaseTest {
2727 @ BeforeEach
2828 public void createSession () {
2929 ChromeOptions options = getDefaultChromeOptions ();
30- options .setBrowserVersion ("145" );
3130 driver = new ChromeDriver (options );
3231 wait = new WebDriverWait (driver , Duration .ofSeconds (10 ));
3332 }
Original file line number Diff line number Diff line change 22
33import pytest
44from selenium .webdriver .common .by import By
5- from selenium .webdriver .common .devtools .v148 .network import Headers
65
76
87@pytest .mark .trio
@@ -12,7 +11,7 @@ async def test_basic_auth(driver):
1211
1312 credentials = base64 .b64encode ("admin:admin" .encode ()).decode ()
1413 auth = {'authorization' : 'Basic ' + credentials }
15- await connection .session .execute (connection .devtools .network .set_extra_http_headers (Headers ( auth ) ))
14+ await connection .session .execute (connection .devtools .network .set_extra_http_headers (auth ))
1615
1716 driver .get ('https://the-internet.herokuapp.com/basic_auth' )
1817
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def test_intercept_network_responses(driver):
2727 def on_response (event ):
2828 response_events .append (event )
2929
30- driver .network .add_event_handler ('response_started' , on_response )
30+ driver .network .add_request_handler ('response_started' , on_response )
3131
3232 driver .get ("https://www.selenium.dev/selenium/web/bidi/logEntryAdded.html" )
3333
You can’t perform that action at this time.
0 commit comments