I am new to WATIR and I want to automate Safari browser.
I am using require 'safariwatir' statement in my ruby file.
I am able to open a safari browser window but when I call goto method on my browser object then the result is NIL. It shows FAILED TO OPEN PAGE.
Please help me with this.
Thanks in advance.
safariwatir gem is no longer in active development. The last release was three years ago. You should use watir-webdriver gem to drive Safari.
Related
I installed selenium and used a python program to run chrome using selenium on my MacBook Air. Before there was an error on selenium, and after installing googlechrome drivers for selenium and creating a PATH using terminal, it opened a separate google chrome page that showed Chrome is being controlled by automated test software.
After around 30 minutes of running python and using selenium, I saved and closed out of everything.
In the next 2 minutes, I reopened Google Chrome to search something about web scraping, and the browser was the same one used by selenium. It still showed the Chrome is being controlled by automated test software notice, and there was a Chrome Automation Extension.
I tried:
logging in and syncing, but syncing was not available.
opening Google Chrome from application folder and dock, but nothing changed
deleting Google Chrome and reinstalling, but nothing changed
I don't know how to fix this. Can anyone help me?
Thanks in advance!
Ok, so I found out that the chromedriver was still running in the background. After I closed it using activity monitor, the problem was solved.
I am building a Sinatra (ruby) application by using ATOM- editor.
After sometime Safari and Chrome do not show the latest html/erb changes what i make in Atom. To lunch the app I am using ruby "filename".rb and shotgun "filename".rb
I tried "clear browser data" Sometimes it works sometimes not.
Could you please give me an advice what to do in case of this error?
Thank you.
I'm writing Selenium tests in Ruby to test my website in multiple browsers.
However, the tests won't fire correctly unless the cookies are clear(there are triggers I'm testing that only happen X number of times and is stored in a cookie).
Does anyone know how to have selenium open a browser in its private browsing or incognito mode with Selenium or have another idea on how I might solve the issue?
You can get Chrome to start in incognito by default.
There's a solution for Windows at the bottom of the link below... If you're not using Windows, you can Google how to achieve this for you OS =)
https://productforums.google.com/forum/#!topic/chrome/sYaZkNW8II4
Hi I met a strange issue which didn't show before when I use Selenium IDE to record some tests.
It doesn't get the url automatically when Selenium IDE is opened.
Which is the critical problem: once I stop the recording or play the test case which would stop the recording as well, it no longer records any additional action when I click again the recording button.
I'm not sure whether this is the problem of Selenium IDE or some problem with my Firefox. What I use is Selenium IDE 1.9.1, and Firefox 17, and there's no such problem when the first time I used it a couple of days ago.
Many thanks for the help.
Check this link.
Firefox 17 will be supported in upcoming selenium ide 1.10.0. So, better downgrade your firefox to 15 for better functioning of selenium ide 1.9.1
Just for record, I have fixed the issue in Selenium IDE v2.3.0, which should be released soon. See http://code.google.com/p/selenium/issues/detail?id=5820
This question already has answers here:
Closed 13 years ago.
Possible Duplicate:
Firebug for IE
I have no tool to inspect into DOM in IE6 now.
Try Firebug Lite.
Does the IE Developer Toolbar help with what you're trying to accomplish?
http://www.microsoft.com/en-us/download/details.aspx?id=18359
You can try the Internet Explorer Developer Toolbar
I have had good luck in the past with IEWatch. (but I haven't done web development in awhile, so I'm not sure if it does the same things as Firebug.)
is this because you're trying to actually test in IE6, or because you're stuck in it?
if it's the latter, I wonder if you can install the chrome frame and use the inspector that comes with chrome (is the inspector included in the frame? I would assume so..) to do your DOM inspection.