Skip to content

Commit 6c87a56

Browse files
hopefully fix the docs
1 parent fd4c65a commit 6c87a56

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

examples/java/src/test/java/dev/selenium/bidi/cdp/CdpApiTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

examples/python/tests/bidi/cdp/test_network.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import pytest
44
from 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

examples/python/tests/bidi/test_bidi_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)