- Unable to connect to mozilla geckodriver watir install#
- Unable to connect to mozilla geckodriver watir update#
Unable to connect to mozilla geckodriver watir install#
However, in my ubuntu terminal, when I try to check to make sure that it was downloaded properly by typing geckodriver -verion it states that geckodriver cannot be found but can be installed with sudo apt install firefox-geckodriver. If you swap to testing with Chrome instead the issue will go away.Īdditionally using XPaths as specific as you show is a terrible idea and will lead to highly fragile tests. I extracted it and put it into put my designated folder in my C drive inside the scripts section. This is affecting you because of the hidden attribute on the element div#myModal which makes selenium think the entire modal is non-visible. GeckoDriver is the library you need to download to be able to use Selenium WebDriver with Firefox. The reason it's not working for you is due to an unfortunate bug in geckodriver/firefox - which is probably also going to affect watir - whereby it assumes any element with a hidden attribute is actually non-visible (if the display style is set to anything other than default it actually overrides the hidden attribute but not as far as selenium is concerned). You could use a third party library like Xvfb (tip. Simply put, make sure that your element is visible for clicking. Your options are to scroll up, or hover over an element to close it, or minimize an expanded element. Specifically, Selenium tries to click on the exact center of the element. =Edit#2ĭouble clicking it able to show Starting ChromeDriver 20 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f) on port 9515īut enter chromedriver on cmd will show Chromedriver.exe has stopped working. To fix this problem, you need to make the element visible. After uninstalling and then re-installing, firefox connects and I'm able to browse However, when I exit and reopen the browser, I get the same 'unable to connect' message.
Unable to connect to mozilla geckodriver watir update#
The xpath I'm trying is: ng-invalid the end I use avoid using class as I see the class name different sometimes) Firefox was working fine until the latest windows update after which I am now receiving the 'unable to connect' message. Sorry that I have no technical background.Īctually I will be setting value to these 3 password fields. How can I disable capybara and set watir properly? Selenium::WebDriver::Firefox::Binary.path='C:\Program Files\Mozilla Firefox\firefox.exe' My env.rb now looks like this: require 'rubygems'
Then I try: page.input(:name => "xxx").set(yyy)īut I get: undefined method `input' for # (NoMethodError) I also tried: page.findElement(By.xpath("my_xpath")).send_keys("ori_pw")Īnd I would like to try using watir, I have installed gem watir, watir-webdriver. However I cannot locate an element using a full xpath (checked and verified with xpath plugin and developer tool), my action is: page.find(:xpath, "my_xpath").send_keys(yyy) I have Ruby, Devkit, gem json, cucumber, capybara, selenium-webdriver, rspec installed following the guide I'm new to automation, sorry if the title is not appropiate.