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.
Related
I am a beginner to selenium and have downloaded and installed the IDE. I'm following some tutorials and although at least some commands work (I can go to google and search for something), for some reason not all commands are available in the IDE and I have no idea why.
I tried restarting my browser and my computer, but the refresh command isn't part of the dropdown. I also tried manually typing Refresh as a command in the ide, but I get an error message saying: Unknown command refresh. See image
here
Thanks!
You can use executeScript command and use Javascript to refresh the page.
There are multiple ways of using JS Refresh detailed here
Whenever I run UI Tests locally, they pass, and I can watch the simulator do exactly what it's supposed to.
Then, when the tests run on Jenkins, they fail on the first line.
If it matters, this is the failure:
UI Testing Failure - No matches found for Table
The above error never happens when the tests are running locally.
I appreciate all of the help, and also want to help others with the same issue as much as possible. It's tough, because I can't post code or give too much information, since the code I'm working on is proprietary.
Here was the issue:
I didn't realize that Jenkins just ran the tests on a simulator, on a computer, just like I would do on mine. I had to handle logging into the app in Jenkins' simulator, so that all of the XCUIElements were accessible.
The tests weren't passing the first line, because I wanted to tap a "Settings" button, and a user wasn't even logged in.
Please comment if I can clarify or explain further.
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.
I run unit-tests from Intellij IDEA with "Track running test" option enabled and Filter turned off.
It works fine until I click on some already passed test, after that it stops tracking current running test.
Is there a way to get back to tracking?
Try switching Filter on and off. You should end up in currently running test. It works for me.
I'm a big fan of Firebug - I use it all the time for my web development needs. That said, one of the things I noticed with Firebug is that it significantly slows down the page. In particular, if Firebug is on when a (local) Selenium script is running, the script takes 2-3 times as long to execute, and I sometimes even see timeout errors. Their per-site activation model doesn't help here at all - I'm developing and testing that same site.
I'd like to be able to turn Firebug OFF right before my Selenium script starts, and turn it back on when Selenium is done (or, in the worst case, just keep it off - the biggest annoyance is launching Selenium only to find out that some tests failed for no apparent reason).
My favored solution for this is to make a new, separate Firefox profile (run firefox -ProfileManager), and launch your Selenium scripts using that profile instead. It'll be clean of everything except what you put into it. That way, as little as possible from your personal environment will taint your development environment and you'll maintain a clean separation.
I typically don't run tests from the same machine I develop on. If you can setup a separate test machine where you deploy and run the tests, you can keep Firefox, IE, etc, free of plugins/add-ons like firebug that might get in the way of your tests and avoid this problem completely.
Running your tests on a separate machine also frees your dev machine so that you can continue working while your tests are running. I'm not sure about your situation specifically, but think about when you have hundreds or thousands of test cases running, you don't want to be sitting there waiting for them to finish. You want to be able to work while it runs, view the report it generates, and investigate if necessary.
You could try the alpha builds of Firebug 1.4. The activation/suspend model has changed in this version to a simpler model: it is activated when you see the panel, otherwise it is in suspended mode, see http://blog.getfirebug.com/?p=124 for more information.