org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

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

org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

Pankaj Tiwari
Hi All,

I am facing an issue while clicking on a menu which appears while click/mousehover on a button. i am able to open that menu but unable to click on that element.

The HTML for that element is hidden. See below screenshot for reference for html of the element.


Inline image 1


I have tried many solutions mentioned in below links but nothing is working for me.

https://stackoverflow.com/questions/6101461/how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib


https://stackoverflow.com/questions/20355515/how-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p


--
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/CAJCh4pQ_77-i1G%3DTV4644%3DqOqejCDsgZ8KMq5cCGTL_dmC%3DkjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

thivyae
Hi,
Its quite confusing for me..Are you trying to click on the button or on an element inside the menu that appears after clicking on button?
A screenshot of the action too helps if possible..

On Friday, May 26, 2017 at 2:22:12 PM UTC+5:30, Pankaj Tiwari wrote:
Hi All,

I am facing an issue while clicking on a menu which appears while click/mousehover on a button. i am able to open that menu but unable to click on that element.

The HTML for that element is hidden. See below screenshot for reference for html of the element.


Inline image 1


I have tried many solutions mentioned in below links but nothing is working for me.

<a href="https://stackoverflow.com/questions/6101461/how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F6101461%2Fhow-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHAped4ZWRXr9dKjIra0nzd9krGgw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F6101461%2Fhow-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHAped4ZWRXr9dKjIra0nzd9krGgw&#39;;return true;">https://stackoverflow.com/questions/6101461/how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib


<a href="https://stackoverflow.com/questions/20355515/how-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F20355515%2Fhow-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGeBUuTyi5zspCnQ72Tq2YJVpfk-w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F20355515%2Fhow-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGeBUuTyi5zspCnQ72Tq2YJVpfk-w&#39;;return true;">https://stackoverflow.com/questions/20355515/how-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p


--
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/92da324e-4b0a-4f12-81e9-7515d340570e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

Pankaj Tiwari
Hi ,

I can't upload the screenshot as its confidential. Its a menu which have 4 options and it comes when i click/mousehove on a button.  I am able to click on that button after that menu opens but unable to select the option from that menu.

As you can see in above screenshot, the html for that menu is always hidden that's why i am getting org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with becuase selenium is not interact with hidden elements.

I have tried with mousehover method of Actions class. Tried with JavaScriptExecutor as well but nothing is working... 




On Fri, May 26, 2017 at 9:30 PM, <[hidden email]> wrote:
Hi,
Its quite confusing for me..Are you trying to click on the button or on an element inside the menu that appears after clicking on button?
A screenshot of the action too helps if possible..


On Friday, May 26, 2017 at 2:22:12 PM UTC+5:30, Pankaj Tiwari wrote:
Hi All,

I am facing an issue while clicking on a menu which appears while click/mousehover on a button. i am able to open that menu but unable to click on that element.

The HTML for that element is hidden. See below screenshot for reference for html of the element.


Inline image 1


I have tried many solutions mentioned in below links but nothing is working for me.

https://stackoverflow.com/questions/6101461/how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib


https://stackoverflow.com/questions/20355515/how-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p


--
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/92da324e-4b0a-4f12-81e9-7515d340570e%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/CAJCh4pTTGz4wo_1UTHRTQwzh0rHUMaj0KfHRoYc%2BzZgq99m-3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

thivyae
Hi,
Are the drop down options in a select list?If yes,did you try selenium select option if its a select drop down list?
Also,try to wait for sometime for the drop down items to get enabled or visible if there is time lag..
If these doent work, Can you expand the drop down items and attach the above screenshot again?Also the stacktrace of where you get exception...



On Saturday, May 27, 2017 at 1:19:02 AM UTC+5:30, Pankaj Tiwari wrote:
Hi ,

I can't upload the screenshot as its confidential. Its a menu which have 4 options and it comes when i click/mousehove on a button.  I am able to click on that button after that menu opens but unable to select the option from that menu.

As you can see in above screenshot, the html for that menu is always hidden that's why i am getting org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with becuase selenium is not interact with hidden elements.

I have tried with mousehover method of Actions class. Tried with JavaScriptExecutor as well but nothing is working... 




On Fri, May 26, 2017 at 9:30 PM, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="JkPJwWbGBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">thi...@...> wrote:
Hi,
Its quite confusing for me..Are you trying to click on the button or on an element inside the menu that appears after clicking on button?
A screenshot of the action too helps if possible..


On Friday, May 26, 2017 at 2:22:12 PM UTC+5:30, Pankaj Tiwari wrote:
Hi All,

I am facing an issue while clicking on a menu which appears while click/mousehover on a button. i am able to open that menu but unable to click on that element.

The HTML for that element is hidden. See below screenshot for reference for html of the element.


Inline image 1


I have tried many solutions mentioned in below links but nothing is working for me.

<a href="https://stackoverflow.com/questions/6101461/how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F6101461%2Fhow-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHAped4ZWRXr9dKjIra0nzd9krGgw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F6101461%2Fhow-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHAped4ZWRXr9dKjIra0nzd9krGgw&#39;;return true;">https://stackoverflow.com/questions/6101461/how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib


<a href="https://stackoverflow.com/questions/20355515/how-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F20355515%2Fhow-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGeBUuTyi5zspCnQ72Tq2YJVpfk-w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F20355515%2Fhow-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGeBUuTyi5zspCnQ72Tq2YJVpfk-w&#39;;return true;">https://stackoverflow.com/questions/20355515/how-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p


--
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:" target="_blank" gdf-obfuscated-mailto="JkPJwWbGBwAJ" rel="nofollow" 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:" target="_blank" gdf-obfuscated-mailto="JkPJwWbGBwAJ" rel="nofollow" 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/92da324e-4b0a-4f12-81e9-7515d340570e%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/92da324e-4b0a-4f12-81e9-7515d340570e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/92da324e-4b0a-4f12-81e9-7515d340570e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/92da324e-4b0a-4f12-81e9-7515d340570e%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" 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/2e65ade2-8b24-4e71-a822-883bbba5b6b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

Pankaj Tiwari
Hi, 

Its not a drop*down list.. Its just a simple list which comes after hovering mouse on a element. The html for that list is is not getting visible due to this i am getting this exception. 

I have created xpath for that list and i am also able to locate that html while verifying with IDE but when i am using it in my webdriver script its not working and getting the exception.

On Mon, May 29, 2017 at 11:22 AM, <[hidden email]> wrote:
Hi,
Are the drop down options in a select list?If yes,did you try selenium select option if its a select drop down list?
Also,try to wait for sometime for the drop down items to get enabled or visible if there is time lag..
If these doent work, Can you expand the drop down items and attach the above screenshot again?Also the stacktrace of where you get exception...



On Saturday, May 27, 2017 at 1:19:02 AM UTC+5:30, Pankaj Tiwari wrote:
Hi ,

I can't upload the screenshot as its confidential. Its a menu which have 4 options and it comes when i click/mousehove on a button.  I am able to click on that button after that menu opens but unable to select the option from that menu.

As you can see in above screenshot, the html for that menu is always hidden that's why i am getting org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with becuase selenium is not interact with hidden elements.

I have tried with mousehover method of Actions class. Tried with JavaScriptExecutor as well but nothing is working... 




On Fri, May 26, 2017 at 9:30 PM, <[hidden email]> wrote:
Hi,
Its quite confusing for me..Are you trying to click on the button or on an element inside the menu that appears after clicking on button?
A screenshot of the action too helps if possible..


On Friday, May 26, 2017 at 2:22:12 PM UTC+5:30, Pankaj Tiwari wrote:
Hi All,

I am facing an issue while clicking on a menu which appears while click/mousehover on a button. i am able to open that menu but unable to click on that element.

The HTML for that element is hidden. See below screenshot for reference for html of the element.


Inline image 1


I have tried many solutions mentioned in below links but nothing is working for me.

https://stackoverflow.com/questions/6101461/how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib


https://stackoverflow.com/questions/20355515/how-to-do-a-mouse-over-using-selenium-webdriver-to-see-the-hidden-menu-without-p


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/92da324e-4b0a-4f12-81e9-7515d340570e%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/2e65ade2-8b24-4e71-a822-883bbba5b6b8%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/CAJCh4pQ0iqq2ez0H8JfeQviUR%3D7e7g%3D_k3-ngrn1R5m3MmpoRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.