Unable to click the element in Win 8.1 in selenium 2.48.0

123 views
Skip to first unread message

Harish Krishnan

unread,
Oct 7, 2015, 11:23:08 PM10/7/15
to seleniu...@googlegroups.com
Hi,

Am working with selenium webdriver with java, facing the problem in clicking on the webelement in IE 11.


The element locator is mention below.
<div class="hotSpotOverlay mlb_click" style="position: absolute; cursor: pointer; height: 234px; width: 222px; left: 4px; top: 3px; background: transparent none repeat scroll 0% 0%; opacity: 1;"/>

OS : windows 8.1 pro
IE version : 11.0.9600.17031
Updated version : 11.07

Selenium version : 2.48.0

Regards,
Harikrishnan

MWQA

unread,
Oct 8, 2015, 3:44:29 AM10/8/15
to Selenium Users
What problem? All you have posted is minimal html. Where is your webdriver code?

Harish Krishnan

unread,
Oct 8, 2015, 4:54:59 AM10/8/15
to seleniu...@googlegroups.com
Problem is am working with windows 7 with same code it works fine . Now am working with windows 8 with code. Its not working 

I have checked with all combination of xpath, css, Key event and java script. It skipping that line of script and navigates to next line.
 not throws any exception


WebDriver driver;
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
    capabilities.setCapability("chrome.binary","E:/Harikrishnan/Selenium_Jar/IEDriverServer.exe");
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
System.setProperty("webdriver.ie.driver", "E:/Harikrishnan/Selenium_Jar/IEDriverServer.exe");
driver = new InternetExplorerDriver(capabilities);
driver.findElement(By.xpath(".//*[@id='skPageLayoutCell_83-north-west_slider']/div[2]/div[3]/div")).click();



On 8 October 2015 at 00:44, MWQA <markwi...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (markwi...@gmail.com) Add cleanup rule | More info

What problem? All you have posted is minimal html. Where is your webdriver code?

On Thursday, 8 October 2015 04:23:08 UTC+1, Hari wrote:
Hi,

Am working with selenium webdriver with java, facing the problem in clicking on the webelement in IE 11.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b2da283d-5737-4967-aa86-1e60240dfad8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mark Collin

unread,
Oct 8, 2015, 5:14:41 AM10/8/15
to Selenium Users
Don't use:

capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);

You have introduced flakiness which is why your scripts don't work properly.

Have a good long read of this blog post Jim Evans made:


He knows a thing or two about the IE driver since he wrote it.


On Thursday, 8 October 2015 09:54:59 UTC+1, Hari wrote:
Problem is am working with windows 7 with same code it works fine . Now am working with windows 8 with code. Its not working 

I have checked with all combination of xpath, css, Key event and java script. It skipping that line of script and navigates to next line.
 not throws any exception


WebDriver driver;
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
    capabilities.setCapability("chrome.binary","E:/Harikrishnan/Selenium_Jar/IEDriverServer.exe");
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
System.setProperty("webdriver.ie.driver", "E:/Harikrishnan/Selenium_Jar/IEDriverServer.exe");
driver = new InternetExplorerDriver(capabilities);
driver.findElement(By.xpath(".//*[@id='skPageLayoutCell_83-north-west_slider']/div[2]/div[3]/div")).click();


On 8 October 2015 at 00:44, MWQA <markwi...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (markwi...@gmail.com) Add cleanup rule | More info

What problem? All you have posted is minimal html. Where is your webdriver code?

On Thursday, 8 October 2015 04:23:08 UTC+1, Hari wrote:
Hi,

Am working with selenium webdriver with java, facing the problem in clicking on the webelement in IE 11.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

Harish Krishnan

unread,
Oct 8, 2015, 5:34:23 AM10/8/15
to seleniu...@googlegroups.com
Hi Mark,

I have i gone through your site, i have change the code also.

The cod works fine with chrome, firefox with widows 8.1. But the code not works on IE 11 with windoes 8.1. 

Its launching the site, after that it want to click action want to perform. It not performing the click action and it skips to next code.

Regards,
Harikrishnan




To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4da387ef-87bb-4c8c-a249-0e77407c5f4c%40googlegroups.com.

Mark Collin

unread,
Oct 8, 2015, 6:17:02 AM10/8/15
to Selenium Users
You could try setting these two capabilities:

capabilities.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, true);
capabilities.setCapability("requireWindowFocus", true);

They tend to make things more reliable for me. The first one should stop IE from flickering between the true mouse position and the position Selenium is telling IE the mouse is at. The second should focus IE in the foreground.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

Shawn Knight

unread,
Oct 8, 2015, 7:22:43 AM10/8/15
to Selenium Users
have you consider using an explicit wait on your button before clicking on it?

Harish Krishnan

unread,
Oct 8, 2015, 7:40:56 AM10/8/15
to seleniu...@googlegroups.com

Mark - No more hope with this in the combination of Windows 8 with IE 11, for particular click

Shawn - am working with the framework, its not works, so i planned to work with normal scripts for particular click. 

No exception throws.

On 8 October 2015 at 04:22, Shawn Knight <shawn.kn...@gmail.com> wrote:
have you consider using an explicit wait on your button before clicking on it?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d919a04a-3069-479a-9b6e-96033a30ae88%40googlegroups.com.

Mark Collin

unread,
Oct 8, 2015, 9:40:09 AM10/8/15
to Selenium Users
I would guess you are probably suffering from this then:




On Thursday, 8 October 2015 12:40:56 UTC+1, Hari wrote:

Mark - No more hope with this in the combination of Windows 8 with IE 11, for particular click

Shawn - am working with the framework, its not works, so i planned to work with normal scripts for particular click. 

No exception throws.
On 8 October 2015 at 04:22, Shawn Knight <shawn.kn...@gmail.com> wrote:
have you consider using an explicit wait on your button before clicking on it?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages