How to launch browser as non admin using Webdriver - selenium

Meta -
OS: WIn 10x 64
Selenium Version: 2.52
Browser:
Firefox 51.0.1
Chrome 52
Steps to reproduce
1: Launch Visual studio or Eclipse as admin
2: Create webDriver reference
WebDriver driver;
3:Launch FirefoxDriver
driver = new FirefoxDriver();
3: Notice that browser was launched as admin
Expected Behavior -
Should be able to launch browser as non admin, when editor (Eclipse/Visual studio) was launched as admin.
Actual Behavior -
Browser is launched as admin mode, some Add-Ons do not work on admin mode

Related

How to Switch to Openfin Workspace by Selenium Webdriver

We Want to switch to Openfin Workspace by Selenium webdriver
I tried with getWindowHandles but it returns the windows of an application

Detecting angularJS elements in IE11 browser using selenium takes long time. How to resolve this?

I'm running selenium tests on IE 11 in angularJS application. It takes more than usual time to detect/select/validate elements while it works better in chrome.
Browser information : Internet explorer 11
Webdriver : IEdriverserver 32bit
selenium version: 3.14
You could try the following methods to make it faster when using selenium IE WebDriver:
Download the recommended 32 bit Windows IE WebDriver version 3.150.1
and latest stable version 3.141.59 of Selenium from this page.
Change your IE settings: Tools -> Internet Options -> Security, set Enable Protected Mode to the same value in all zones (all checked or all unchecked).
Instantiate your InterExplorerWeDriver class with the path of your IE WebDriver like this:
InternetExplorerDriver ieDiver = new InternetExplorerDriver(“Path to the 32 bit IEdriver”);
Add capability nativeEvents as false. Add capability requireWindowFocus as true.
Reference link:
(1) Very slow text entry on IEDriverServer
(2) Selenium WebDriver typing very slow in text field on IE browser

Unable to Execute Automation tests in opera browser

I try to use opera browser with selenium ,on running the scripts browser get launched but no tests are running in the browser instead a error popups. I am using operachromium driver with opera version 40
below is the code to create opera driver instance:
System.setProperty("os.name","windows");
System.setProperty("webdriver.chrome.driver", "path to operachromiumdriver");
driver = new ChromeDriver();
driver.get("http://google.com");
Can any one help me on this.

Selenium grid to remote webdriver(chrome) hangs on get

I have a selenium grid with nodes on virtual machine. I can connect, open browser and close it but when i try navigating to a page it hangs on Executing: [get: http://google.com]
I use the latest verions of selenium, chromedriver and java.
Declaration:
DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
driver = new RemoteWebDriver(new Uri(#"http://xxx.xx.xx.xxx:6000/wd/hub"), capabilities);
then i try to use it when i click a button on my win form:
driver.Navigate().GoToUrl("http://www.google.com");
I can see the node gets the command and logs Executing:[get:htttp://www.google.com] but just hangs. Url doesn't change in browser(its "data:," all the time )
I use windows 7 x64 and try to control browser on windows 7 x32. (if i connect to node on my pc the code works fine)
Any ideas?
Thanks!
I am seeing the exact issue with Safari (python). I am using selenium standalone server v2.47.1. My current workaround is to use JS:
"driver.execute_script("window.location.href = '{0}';".format(url))"
I also observed that if you don't set a homepage on Safari or have it default to load the homepage on new tab/window, the webdriver acts up and hangs on 'get' method.

List of Selenium RC browser launchers

I am trying to find a full list of Selenium RC browser launchers. So far I've not been able to find any documentation that lists them all. I've gathered the following ones from various sources.
*iexplore - Launches IE
*firefox - Launches Firefox
*safari - Launches Safari
*opera - Launches Opera
*googlechrome - Launches Google Chrome
*chrome - Launches special Firefox profile with elevated security privileges, to bypass Javascript security errors
*iehta - Launches IE with elevated security privileges
*piiexplore - Launches IE in proxy injection mode
*pifirefox - Launches Firefox in proxy injection mode
*custom - Launches your own custom browser executable
Are there any others lurking out there? Is there any source of documentation on how each one is used?
If you try and start a selenium session with the wrong browser id
e.g.
selenium = new DefaultSelenium("localhost", server.getPort(),
"*gf", "http://www.eviltester.com");
Then selenium 1.0.3 will report the following list:
Supported browsers include:
firefox
mock
firefoxproxy
pifirefox
chrome
iexploreproxy
iexplore
firefox3
safariproxy
googlechrome
konqueror
firefox2
safari
piiexplore
firefoxchrome
opera
iehta
custom
This lists a few more than you have.