Element is not clickable at point (80, 82). Other element would receive the click
try the below code :
new Actions(driver).moveToElement(webDriverWait.until(ExpectedConditions.elementToBeClickable(By.id(tabId)))).click().build().perform();
with both (with UI and Headless)
Selenium and Python. Element not clickable at point (x,y) because another element obscures it
It is quite common in HTML for some elements to be visually placed over others in the UI rendering. When Selenium WebElement.click()
is used, the visual dimension of the element on which click has to be performed is obtained and click is performed. If there is an element occupying the same visual space, error is thrown.
There are 2 possible solutions.
You can wait until the element is clickable using the below explicit wait
element = WebDriverWait(self.driver, 20).until(EC.presence_of_element_located((By.ID, 'lg_1166')))
element.click();Use javascript executor to click on the element. This would trigger a javascript click on the element by-passing the visual click.
element = driver.find_element_by_id('lg_1166')
driver.execute_script("arguments[0].click();", element)
Element is not clickable at point - other element would receive the click
As per your response :
You will have to scroll down to let the web element available to your script.For that you can use this code :
public static void scrollDown(WebDriver driver, String YoffSet){
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript(YoffSet);
}
here you can call this method anywhere from your code.
Then you can use this code to interact with the web element :
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("static ID")));
element.click();
Element is not clickable at point (X, Y) in Selenium
Figured out the answer my self.
Added Thread.sleep(5000);
before OK button.
Now my code works as expected. :)
Related Topics
How to Add a Timestamp in Firestore With Android
The Asynctask API Is Deprecated in Android 11. What Are the Alternatives
Com.Android.Build.Transform.API.Transformexception
What Is the Most Appropriate Way to Store User Settings in Android Application
Custom Fonts and Xml Layouts (Android)
How to Write to a Folder on an Sd Card in Android
Create a File from a Photo Uri on Android
How to Allow All Network Connection Types Http and Https in Android (9) Pie
How to Use Java 8 For Android Development
Firestore Whereequalto, Orderby and Limit(1) Not Working
Can't Start Eclipse - Java Was Started But Returned Exit Code=13
How to Render a Pdf File in Android
How to Save the Current Date/Time When I Add New Value to Firebase Realtime Database
How to Pass a Bitmap Object from One Activity to Another