Showing error: The provided double value is non-finite

5,572 views
Skip to first unread message

Amith Mathew

unread,
Mar 1, 2020, 12:57:41 AM3/1/20
to Selenium Users
javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite.


Error is produced when the user tries to use the same element multiple times by changing the variable name.

Amith Mathew

unread,
Mar 1, 2020, 3:29:56 AM3/1/20
to seleniu...@googlegroups.com
The element is a comment box, there are multiple comment box the page with same id, how can I overcome this issue. Please help on this.

Thanks
Amith

On Sun, 1 Mar, 2020, 11:27 AM Amith Mathew, <amithm...@gmail.com> wrote:
javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite.


Error is produced when the user tries to use the same element multiple times by changing the variable name.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/175543bb-18e2-4603-b017-8b35650959af%40googlegroups.com.

chetan baraskar

unread,
Mar 1, 2020, 3:49:42 AM3/1/20
to seleniu...@googlegroups.com
Use advance technique of xpath like sibling of parent to locate the comment box.

Sent from my Huawei phone

nagajyothi arun

unread,
Mar 1, 2020, 9:29:08 AM3/1/20
to seleniu...@googlegroups.com
You can use List ..grab all elements using common xpath and use loop...then you can go to each element..for example 
List<WebElements> elmnts=driver.findElemnts(by.xpath(“xpath of those elements “);
Fot(int i=0;I<elmnts.size();i++)
{elements.get(i).click();}
You can try this way I hope it works.

Reply all
Reply to author
Forward
0 new messages