JavaScript Error: Failed to Execute 'Elementsfrompoint' on 'Document': the Provided Double Value Is Non-Finite

javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite

In my case i was using new Actions(driver).moveToElement(element).perform(); in Command Listener before each command so it move the focus on element which being executed.

This line causing the error mentioned in question. After commenting this its working fine.

The provided double value is non-finite error when attempting to get the locate an element using Selenium and Python

To grab the Try it out button and click on it first create a webdriver wait to wait for the element to be clickable.

element = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//*[@id='devices_get_devices_dev_selector_messages_content']/form/div[3]/input")))
element.click()

Import

from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


Related Topics



Leave a reply



Submit