Skip to main content

All Questions

0 votes
0 answers
37 views

Making JS specs work with headless Chrome

I have a Sinatra app with a Rspec suite and now I need to run it on GitHub Actions. My workflow looks like: name: continuous-integration on: pull_request: branches: - '*' push: ...
Sig's user avatar
  • 5,830
0 votes
0 answers
88 views

Starting chromedriver from rails app gives unable to connect to /usr/bin/chromedriver 127.0.0.1:9515

I've been debugging this for quite some time and I don't know what else I should do to fix this. Long story short: I have a rails app that needs to launch chromedriver to navigate to a specific ...
brunotiago's user avatar
0 votes
1 answer
68 views

NoSuchElementError with Selenium using RubyMine after trying all element attributes

I am tying to write some tests for this website: https://roomy-fire-houseboat.glitch.me/ but unable to find any elements. I can launch the website then add 5 seconds of sleep. Here is the error in ...
Chase Fulford's user avatar
0 votes
0 answers
242 views

How to set `(prefers-reduced-motion: reduce)` to chromedriver from Capybara?

I would like to emulate the setting prefers-reduced-motion: reduce available in CSS/JS but with chromedriver/capybara. It's a Ruby on Rails app with minitest tests. Edit: I tried: setup do page....
Dorian's user avatar
  • 8,651
0 votes
0 answers
29 views

Chrome settings page doesn't load in headless chrome - Selenium Ruby

I'm just playing around with quickly amending JS settings in Chrome on the fly, without installing add ons (company policy). In browser, when I visit the settings page: "chrome://settings/...
Tom's user avatar
  • 1,105
0 votes
1 answer
1k views

Running watir tests on new machine throws " undefined method `chrome' for Selenium::WebDriver::Remote::Capabilities:Class"

On old machine Selenium::WebDriver::Remote::Capabilities.chrome returns #<Selenium::WebDriver::Remote::Capabilities:0x00007fe9d10e66f0 @capabilities={:browser_name=>“chrome”}> On new machine ...
Charlie's user avatar
1 vote
0 answers
79 views

Download a file using Watir (Selenium) gem with Browserless chrome (docker chrome instance)

I'm trying to use browserless chrome docker instance to create a headless instance of chrome and download some files. So far using Watir integration on ruby it's very straight forward, but when I use ...
Jorge Najera T's user avatar
0 votes
0 answers
461 views

Chrome on build server not supported by current selenium-devtools

I'm using the Headless Chrome Webdriver, and finding my builds suddenly breaking on the build service I'm using. It's happened before, but I think it was fixed by upgrading selenium-devtools. It seems ...
rogerkk's user avatar
  • 5,654
0 votes
1 answer
88 views

`connect_until_stable' error when trying to use selenium on Heroku RoR

I'm trying to run a file on Heroku that has selenium. However, I get the following error. /app/vendor/bundle/ruby/3.1.0/gems/selenium-webdriver-4.7.1/lib/selenium/webdriver/common/service_manager.rb:...
Iqbal Bakhsh's user avatar
0 votes
1 answer
273 views

Capybara don't replace default value of input

I have a pretty simple user scaffold pages and some tests on them. it 'update' do visit '/users/new' fill_in 'user[login]', with: 'login' fill_in 'user[password]', with: 'password' ...
Quviry's user avatar
  • 23
2 votes
1 answer
60 views

Ruby selenium webdriver. Can't navigate to dropdown and choose item from it

Most of the solutions for this issue represenred as this drowpdown = driver.find_element(:id, 'option1') option = Selenium::WebDriver::Select::Support.new(dropdown) option.select_by(:value, "x&...
Sviat's user avatar
  • 23
3 votes
0 answers
460 views

AWS Lambda Ruby 2.7 and Selenium can't connect to Chrome

I intend to create an AWS lambda function using Ruby 2.7 with Selenium. When I try to run my example function i get: { "errorMessage": "unable to connect to /opt/chromedriver 127.0.0....
damuz91's user avatar
  • 1,688
1 vote
1 answer
132 views

Is there a way to maintain the login status in Capybara?

For example, open the browser in the following code and log in to Google in manual. require "bundler/inline" gemfile do source "https://rubygems.org" gem "webdrivers"...
megeton's user avatar
  • 13
0 votes
1 answer
640 views

Error with headless chrome driver unable to click an anchor element

I'm trying to test my pagination feature with rspec, capybara, selenium, and chrome headless driver. I keep running into this error: Failures: 1) Paginations user clicks on next button Failure/...
Josiah's user avatar
  • 1
0 votes
1 answer
339 views

How to open a Chrome window with Watir

I can't manage to make Watir run properly. I followed all the instructions step by step, installing Watir and the Chrome drivers, and checked that the drivers and Chrome are the same version, v98.0. ...
Kay's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
14