![]() Options = Selenium::WebDriver::Chrome::Options.new(Īrgs: %wĬapybara::Selenium::Driver. ![]() Selenium_url = " Capybara.register_driver :chrome do |app| To make this process reproducible I used docker to install Selenium, Chrome and the Selenium Chrome driver in a single container, this image can be found at. How about your code? The important thing is that you need to tell Capybara to hook to hub in order to open chrome headless browser when registering driver require 'selenium-webdriver' If you’re using PowerShell you should run it as: Start-Process Docker Desktop Installer.exe -Wait install. We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver Set up the Chrome PPA Update the package list and. Update your docker by docker-compose build You can do so by adding below code to docker-compose.yml
0 Comments
Leave a Reply. |