Describe the bug
Selenium is not able to connect to browserless
To Reproduce
Start docker as `:
docker pull browserless/chrome:1-arm64
docker run -p 3000:3000 browserless/chrome
Then run selenium code as :
const {Builder, Browser, By, Key, until, Capabilities} = require('selenium-webdriver');
(async function example() {
const chromeCapabilities = Capabilities.chrome();
chromeCapabilities.set(
'chromeOptions', {
args: [
'--headless',
'--no-sandbox',
],
}
);
let driver = new Builder()
.forBrowser('chrome')
.withCapabilities(chromeCapabilities)
.usingServer('http://localhost:3000/webdriver') // <-- Apply usingServer and that's it
.build();
try {
await driver.get('http://www.google.com/ncr');
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN);
await driver.wait(until.titleIs('webdriver - Google Search'), 1000);
} finally {
await driver.quit();
}
})();
Reproducible project :
Expected behavior
SHould be able to connect as expected
Screenshots
Desktop (please complete the following information):
Additional context
Logs :
Unfortunately this is related to #2004. Sadly, this is to say, that M1 mac's can't run this docker image just yet. It's a longer story as to why that is (mostly that Google doesn't build ARM compatible chromedriver binaries for Ubuntu), and the images out there that do have chromedriver support for m1 are using a quite-old version of chromium that will likely break at some point.
Closing due to this being a duplicate, but likely won't be able to fix in the near future.
Owner Name | browserless |
Repo Name | chrome |
Full Name | browserless/chrome |
Language | TypeScript |
Created Date | 2017-11-17 |
Updated Date | 2023-03-22 |
Star Count | 5309 |
Watcher Count | 47 |
Fork Count | 516 |
Issue Count | 29 |
Issue Title | Created Date | Updated Date |
---|