Selenium Grid does not work with IE11 - selenium-webdriver

Selenium Grid (selenium-server-standalone-3.0.1) does not work with IE 11 on Win7 32Bit node.
IE browser window is opened, but the test is not executed. Only the message "This is the initial start page for the WebDriver server." is displayed in IE.
Option "caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true)" is set in the GEB/Groovy framework.
FF and Chrome tests on the node are working without any problem.
For IE tests only the browser window is opened. No error message is shown in the grid.
Any idea?

There are some required configuration for the Internet Explorer Driver, and even for Internet Explorer 11.
Here is the link to the official documentation: https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configuration
Hope that helps.

Related

Refresh Google home page using sendkeys ONLY selenium

There are many ways of refresh using selenium,I want sendkeys only
I tried online code but not working
can anybody give working code?
I am using windows 10 pro ,Chrome Version 77.0.3865.90 (Official Build) (64-bit) and latest version of selenium
can anybody give code of below and strictly using sendkeys
1) Put some text in google home page
2) refresh
You cannot refresh the page with sendkeys. Sendkeys generate the events of keystrokes agasint WebElement - not against your browser window. This is why webdriver has a dedicated method to refresh the page.

Angularjs application fails to load UI properly on a chrome 76 launched by chromedriver 75 and above

Open Angularjs application on chrome with chromedriver through selenium. Try to click on the buttons it moves constantly up and down, which makes it impossible to click and selenium fails to click as the application is bouncing on the screen.
However, tried to replicate the same with a chrome browser manually launched it never happens.
Open the browser through chrome driver and launch the angularjs application manually UI keeps bouncing.
This means the issue happens only with a browser launched by chrome driver.
Tried with older chromedriver and chrome, this doesn't happen. Happens only with later releases of chromedriver i.e. 76 and above.
Angularjs version 1.7.2
Local chrome does work properly.
I used basic way of initiating the chrome with the below code, still no luck
var driver = new ChromeDriver();
Since the chrome browser behave differently only when launched through chromedriver, also since launching local chrome doesn't have an issue. I tried to launch the chrome as it would launch manually.
var options = new ChromeOptions() { AcceptInsecureCertificates = true };
options.AddArguments($"user-data-dir=/Users/{Environment.UserName}/AppData/Local/Google/Chrome/User Data");
var driver = new ChromeDriver(options);
The approach of using local profile user data does help to a certain extent when running on local machines, but when running on a remote machine it fails again and also you can't launch two browsers as the user data folder is used by one browser at a time, not feasible to have only one chrome browser and not multi threadable.
The latest chromedriver version 76 is w3c complaint so its better to use later versions than using older chromedriver.
Any suggestions or insights on why this happens only with chrome launched by chromedriver. will be well appreciated and also happens only with angular application.

IE link opens a new window when running Robot Tests

im having an issue when im running my robot tests.
The application under test (AUT) has a button that opens a new tab when you click it. It works on Chrome and IE when a user actually clicks that button. However, when i run my test to test that functionality in IE, the test opens a new window and that window is not being recognized (i used the SELECT WINDOW keyword in selenium2library)
Has anybody encountered this? is this an IE11 issue or IEWebDriver issue or something?
Here is my system specs:
OS - Windows 7
Browser - IE11
Robot Framework Version - 3.0.2
IEDriverServer version - 3.4
Thank you. i hope someone can help me.
When you run your test in IE the test opens a New Window instead of a new TAB is actually perfect.
As per #JimEvans on the github issue Selenium 3.7.1-IEDriverServer 3.7.0 : IEDriverServer opens a new Window instead of new TAB when JavascriptExecutor is used :
This is by design that a new window is opened.

Edge Upload File control using Selenium

I am trying to upload a file using Selenium Webdriver on the Edge browser, and yes I have downloaded EdgeDriver and installed the MSI for testing Edge. Clicking on elements on the screen from within the Edge browser works fine. The problem is the upload file control. My code is as follows:
IWebElement fileUploader2 = Browser.Driver.FindElements(By.CssSelector("input[type='file']"))[0];
fileUploader2.SendKeys(FileUtility.FileUploadsDirectory + "\\sample-account_balances.xlsx");
The code above works for Chrome and Firefox, but does not work for Edge. This is a ReactJS web app. I have tried the suggestions below that are similar to my code above and I cannot seem to upload a file using the control programmatically from Selenium Webdriver. There is no error given it just does not click on send text to the file upload control. Nothing is executed:
How to upload file using Selenium Webdriver?
File Control on Edge
DOM Upload Control Edge
Unfortunately this feature has not been added to the edge webdriver yet. I've run into the same problem and have not been able to find a suitable solution yet. One (admitedly not ideal) solution is to use AutoIt to automate the file upload for edge. There are multiple reports of this issue, but here's one of the latest reports showing that its an issue with the edge driver.

Silverlight iframe issue with google chrome - works in Firefox & IE

I have an application, built in silverlight that I am calling via an iframe.
In IE, firefox the applications buttons work but in google chrome they do not..
I am pulling my hair out and am thinking that it is a bug in Google Chrome.
Does anyone have any ideas/suggestions?
URL: http://gotek.dev.pixel-geeks.co.uk/
Click on the "Click here to try our panel live!" button to see the issue.
It is a Chrome bug that Google has previously fixed but has risen again.
There are reports that it only affects if app running in windowless mode.

Resources