How do I configure Firefox settings on Testcafe with Saucelabs - testing

I'd like to configure Firefox profile settings using testCafe on Saucelabs. One way would be by opening about:config and using the test automation to click on the profile settings. I'm not about to open about:config. Another way would be to use to launch firefox with a command line option to specify the profile.

Related

Setup Required to Run TestCafe tests on Safari browser

I'm attempting to execute a TestCafe suite on locally installed Safari. I have previously executed the tests on chrome, chrome:headless, firefox, and firefox:headless. When running the command testcafe --list-browsers to retrieve my list of installed browsers, I receive the following:
testcafe --list-browsers
Using locally installed version of TestCafe.
firefox
chrome
safari
When I execute a simple test via command line, testcafe safari path/to/tests/, the Safari browser will launch, but no navigation takes place. I remain on the launch window (showing my favorites and recently visited pages).
When the same command is executed for a different browser (say, testcafe chrome path/to/tests/), the tests are executed in the local browser.
Am I missing something that is required to get Safari up and running with TestCafe? I'm using TestCafe version 1.6.1. I'm not seeing any additional setup mentioned on the TestCafe documentation...
I was able to resolve this issue by disabling all uses of TestCafe Browser Tools in System Preferences -> Security & Privacy -> Privacy -> Automation. On my subsequent execution, I was prompted to allow TestCafe Browser Tools for Safari. After accepting the prompt, the tests ran as expected.
I also had deleted my node_modules directory and reinstalled dependencies, although I'm skeptical if that helped.

How to use selenium with autoit for file upload in a Headless chrome browser?

I'm trying to automate a webpage in selenium on a chrome browser which is integrated into a TeamCity server.
The code is working perfectly in my local machine.
File upload is done with Autoit scripts but when running through TeamCity on chrome browser ,typically as a headless chrome browser ,the script fails as it fails to find the next element(The file uplod fails).
This is not possible...
Headless browser cannot interact with os components(open dialog box)
You can use sendkeys to input field(browse button),which will not trigger open dialog box, since the browser is headless and you can skip using Autoit for headless browsers, which needs a Gui.

How can I create a custom firefox profile on a centos vm

I have created a centos vm. Installed maven, firefox on it and placed selenium automation code to test my web application on it. The only issue is my automation code works on a specific profile where I need to enable the 'Open new windows in a new tab instead' firefox setting.
How can I create a custom firefox profile including this setting on a vm ?
I did a ssh on my vm and then did
firefox -CreateProfile Selenium
I cant find on which location this profile is created. Also I still could not figure out how to add custom settings, as the above just creates a profile I guess.
Here is a description on how to create (and move and remove) Firefox profiles using the built-in Profile Manager. On linux it is usually located in $HOME/.mozilla/firefox/. Profile names are mapped to directories in profiles.ini
A custom profile can be used both programmatically (using FirefoxProfile, FirefoxOptions, FirefoxDriver) or by command line parameter.

How to set the browser to open in Private window/Incongnito mode in IntelliJ

In IntelliJ, the targeted browser can be configured for web apps. Anyone knows how to configure to open the browser in private window - Firefox and Chrome ?
For Chrome you just need to open the Web Browsers section in Preferences and then edit the Chrome option. Set the Command line options to -incognito and Chrome should start in incognito mode.
For Firefox I expect you need to start it in private mode. This URL starts Firefox on my Mac but I can't get it to work in IntelliJ
/Applications/Firefox.app/Contents/MacOS/firefox -private
This is the only one setup that worked for me.
Chrome incognito
Check if Allow in incognito is switched on for JetBrains IDE Support extension (chrome://extensions/)
open WebStorm preferences -> Tools -> Web browsers -> Chrome -> Edit -> Command line options: -incognito
Run Chrome incognito window manually

Selenium builder, Run Test Locally is not enabled

I have downloaded selenium builder from http://www.sebuilder.com/ with following configuration
Firefox version 43.0.4
Selenium builder version 3.0.5
After that I have
Launch the SeleniumBuilder and click the “Manage Plugins” and download the
Sauce for Selenium Builder 3 1.0.3
In SeleniumBuilder I have imported the .json script using "Open a script or suite' option.
Now under Run option 'Run Test Locally' is not found.
Any additional configuration required to enable 'Run Test Locally’ in selenium builder?
Looks like new Mozilla update have restricted the way old selenium builder ran local test, so developer had to take it out for selenium builder 3. Have a look at this https://github.com/SeleniumBuilder/selenium-builder/issues/6