Selenium Click is not Working in Windows10 IE11

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Selenium Click is not Working in Windows10 IE11

kabilaoct

We are using Selenium with C#,But Selenium click functionality is not working in Windows 10 IE11,If I am using Javascriptexecutor then its working,
But My requirement is not to use Javascriptexecutor

((IJavaScriptExecutor)seleniumuiDriver.webDr).ExecuteScript("return document.querySelectorAll(arguments[0])[0].click();", identifier.Split('$')[0]);

When I am using Javascriptexecutor then I cant able to use ID,Xpath,Name.I can able to use only CssSelector. Is there any way to work with in IE11
windows 10 without Javascriptexecutor

Selenium Version:2.49
Programing Language:C#

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1f79a0f1-0d55-49f7-915f-79e11c790475%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium Click is not Working in Windows10 IE11

srikanth samala
Hi, 

Upgrade selenium version because the version of Web driver your using is old or else first find webelement using id, xpath or any selector and pass the webelement to java script executor.

IWebElement element = driver. FindElement(By. Id("" )) ;

((IJavaScriptExecutor)seleniumuiDriver.webDr).ExecuteScript("arguments[0]. click();"element);

Thanks 

Srikanth Samala 

On Thu 28 Jun, 2018, 10:28 PM , <[hidden email]> wrote:

We are using Selenium with C#,But Selenium click functionality is not working in Windows 10 IE11,If I am using Javascriptexecutor then its working,
But My requirement is not to use Javascriptexecutor

((IJavaScriptExecutor)seleniumuiDriver.webDr).ExecuteScript("return document.querySelectorAll(arguments[0])[0].click();", identifier.Split('$')[0]);

When I am using Javascriptexecutor then I cant able to use ID,Xpath,Name.I can able to use only CssSelector. Is there any way to work with in IE11
windows 10 without Javascriptexecutor

Selenium Version:2.49
Programing Language:C#

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1f79a0f1-0d55-49f7-915f-79e11c790475%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CALpnBFRZZe6VvJShspeBfxvZHHLLK3BBOrr_ebZCHwrKiw1okA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium Click is not Working in Windows10 IE11

total QA
Hi,

Please try using the 32bit IEDriver Executable file. It might be helpful.

Regards,
total-qa.com

On Thursday, June 28, 2018 at 11:08:35 PM UTC+5:30, srikanth samala wrote:
Hi, 

Upgrade selenium version because the version of Web driver your using is old or else first find webelement using id, xpath or any selector and pass the webelement to java script executor.

IWebElement element = driver. FindElement(By. Id("" )) ;

((IJavaScriptExecutor)seleniumuiDriver.webDr).ExecuteScript("arguments[0]. click();"element);

Thanks 

Srikanth Samala 

On Thu 28 Jun, 2018, 10:28 PM , <<a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="aFqgNRQYAQAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">kabi...@...> wrote:

We are using Selenium with C#,But Selenium click functionality is not working in Windows 10 IE11,If I am using Javascriptexecutor then its working,
But My requirement is not to use Javascriptexecutor

((IJavaScriptExecutor)seleniumuiDriver.webDr).ExecuteScript("return document.querySelectorAll(arguments[0])[0].click();", identifier.Split('$')[0]);

When I am using Javascriptexecutor then I cant able to use ID,Xpath,Name.I can able to use only CssSelector. Is there any way to work with in IE11
windows 10 without Javascriptexecutor

Selenium Version:2.49
Programing Language:C#

--
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 <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="aFqgNRQYAQAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="aFqgNRQYAQAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/1f79a0f1-0d55-49f7-915f-79e11c790475%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/1f79a0f1-0d55-49f7-915f-79e11c790475%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/1f79a0f1-0d55-49f7-915f-79e11c790475%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/1f79a0f1-0d55-49f7-915f-79e11c790475%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fc3cc1a4-f6eb-4778-8b19-36205cdc044f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.