Trying to run Capybara tests with Selenium is failing for me because the "Welcome" page (https://www.mozilla.org/en-US/firefox/45.0.1/firstrun/learnmore/) pops up no matter what preferences I set. I assume this is because Selenium is using the default profile, and while I've found some information on configuring user.js and prefs.js in the mozilla profile folder, nothing I've tried has worked.
Has anyone else figured out how to configure Firefox to prevent the welcome page from killing your tests? If so, please share!
Just found a work-around, I was able to introduce a 1 second pause as the first command, give that a shot.
I settled on a workaround for this issue. Unfortunately, it is to use the Chrome driver and abandon Firefox altogether. Sorry Mozilla.
Related
I have just created a spec file under that path is integration>mweb>account>address-mweb.spec.ts. Cypress UI sees my all spec files but while running it cannot establish a connection with tests.
How can I fix this, any idea?
p.s there is no network issue.
Waiting to connect on terminal
Cypress UI appearance
Is it the same with Electron, seems the issue with the chrome browser. Before checking others, please try with Electron
Update the cypress version to the latest. It might help you to fix the issue.
maybe check your hosts file, see whether
127.0.0.1 localhost
is in there
I am writing a fixture, and multiple tests assert the page's title to be some value. However, I did not account for the fact that the website is localized. My normal browser settings are English, but when I run the testcafe chrome:headless myTests.js my tests fails because the Localization changes, perhaps due to my PC's language?
I have tried running my local chrome installation and adding :userProfile, but without luck sadly.
The only other information I can find regarding this issue is, but I can't make it work:
TestCafe & chrome:headless : how to force the browser language (locale)
I found my answer here - go give them a like if it solves your issue as well.
Solution:
I use the following command to launch chrome headless with a locale specified:
testcafe chrome:headless --lang=en-US
Whenever I run a test script in firefox sometimes it continues to load/keep on loading the page even after 5 mins and at the same time I observed on the left side bottom of the page 'Transferring data from a.rfihub.com...'I had to abort the test run and execute it again. I don't know what this rfihub.com means and why it interferes or delays or stops loading the page. What can I do to prevent this? Need help. Thanks in advance
I solved this issue by enabling DO Not Track option in Firefox. Menu -> Options-> Privacy-> click manage your Do Not Track Settings and uncheck the box. Restart the Firefox. Hope this helps someone facing similar issue in future.
I am a newbie to Selenium.I want to know do we have any interactive mode to automate Selenium webdriver.Because i want to test each and every line is correct or not while automating.I have Automated Watir earlier,i have used "irb" to interact with.Please help me do we have any similar kind of mode in Selenium webdriver.
IRB is nothing Watir specific it is just an interactive ruby shell (IRB = Interactive Ruby Shell) and thus you can also use it to work with Selenium. You only need the selenium-webdriver gem and then you can start.
You can also find a good getting started tutorial here: http://aspyct.org/blog/2012/09/09/functional-web-testing-with-selenium-and-ruby/
I'm sorry if this topic may feel so old, but I have an idea for this.
You can use the python interpreter in the terminal and type each line:
from selenium import webdriver
b = webdriver.Firefox()
b.get('https://www.google.com')
And so on :)
I use a debugger (byebug gem) to stop tests at the point where I need to continue the automation interactively. I prefer to have all gems, modules, and classes available when I hit the breakpoint.
I also wrote a couple methods that will reload page object classes from the commandline/breakpoint. I can add a new method, reload, and verify it works, and move on to the next action; all without restarting the test.
What is the easiest way to control Chrome (pc/mac) from an NUnit test?
Things I want it to do:
Use a proxy server I specify
not bring up any dialog boxes that need to be clicked.
open a url I specify
close
With firefox I can do all these things by writing out a temp firefox profile, and telling firefox to use it. If someone knows an answer to this question for IE, I'd also love to hear about it.
You need Watin
You can use Watir to do this:
http://watirwebdriver.com/browser-proxies/
Unfortunately I don't know if you can use Watir from Ironruby to make this work in an NUnit test without having to many ruby dependencies.