Comments (5)
We have released a version that supports Chrome for Testing.
https://github.com/nanasess/setup-chromedriver/releases/tag/v2.1.0
from setup-chromedriver.
Would you be open for a simple solution as outlined in https://developer.chrome.com/blog/chrome-for-testing/#how-can-i-get-chrome-for-testing-binaries ?
It could be as simple as npx @puppeteer/browsers install chrome@stable
and npx @puppeteer/browsers install chromedriver@stable
?
from setup-chromedriver.
Download URLs can be obtained as follows
curl https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json | jq '.versions[] | select(.version == "116.0.5828.0") | .downloads.chrome[] | select(.platform == "linux64") | .url'
curl https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json | jq '.versions[] | select(.version == "116.0.5828.0") | .downloads.chromedriver[] | select(.platform == "linux64") | .url'
from setup-chromedriver.
Patch specifying chrome and chromedriver paths.
diff --git a/__tests__/chromedriver.ts b/__tests__/chromedriver.ts
index 4835d5fc..0764e5fd 100644
--- a/__tests__/chromedriver.ts
+++ b/__tests__/chromedriver.ts
@@ -1,14 +1,20 @@
import { Builder, Capabilities, until, By, Key } from 'selenium-webdriver';
+import { Options, ServiceBuilder } from 'selenium-webdriver/chrome';
(async () => {
const timeout = 30000;
+ const options = new Options()
+ .setChromeBinaryPath('/path/to/chrome-linux64/chrome');
+ const serviceBuilder = new ServiceBuilder('/path/to/chromedriver-linux64/chromedriver');
const driver = new Builder()
.withCapabilities(Capabilities.chrome())
+ .setChromeOptions(options)
+ .setChromeService(serviceBuilder)
.build();
try {
await driver.get('https://google.com');
await driver.wait(until.titleContains('Google'), timeout);
console.log(await driver.getTitle());
-
+ await driver.sleep(10000);
const searchBox = await driver.findElement(By.name('q'));
await searchBox.sendKeys('ChromeDriver', Key.RETURN);
await driver.wait(until.titleContains('ChromeDriver'), timeout);
from setup-chromedriver.
Since I don't have much time available, we are waiting for pull requests from those who can handle the taskπββοΈπ
from setup-chromedriver.
Related Issues (20)
- Usage with Python selenium HOT 1
- ChromeDriver connection issue HOT 2
- Need to specify full version HOT 2
- Rewrite in Typescript
- Selenium Failing HOT 1
- Github Actions failed after adding support for install to google-chrome HOT 6
- Error 404 when downloading HOT 12
- Chromedriver Failed to Install HOT 1
- Downloading `chromedriver` fails HOT 12
- Failures downloading 115 HOT 8
- Unable to setup chrome driver HOT 3
- Does Not Work On Windows HOT 5
- Error `sudo: command not found` HOT 5
- Chromedriver appears to not work in my e2e tests as of 2 hours ago HOT 1
- Support for environments where the sudo command is not installed HOT 6
- 1.0.6 broke use with github action @v1 HOT 8
- setup-chromedriver action failed in v1.0.6 HOT 1
- Where does chromedriver get installed? HOT 1
- google-chrome is not installed when used in github actions HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-chromedriver.