Closed juddbaguio closed 1 month ago
We have successfully resolved the issue where the element was not fully in view when attempting to perform a click action in the browser. The root cause was identified as the element not being completely rendered and visible at the time of interaction.
To address this, we implemented a delay using
tokio::time::sleep(tokio::time::Duration::from_millis(400)).await;
to ensure that the browser has sufficient time to render the element fully before any actions are attempted. This delay allows for the necessary UI updates and ensures that the element is interactable.
We have tested this solution extensively, and it has proven to be effective in resolving the clicking issue by ensuring the element is fully visible and interactable.
Thank you for your patience while we addressed this matter.
Description
When attempting to click on an element selected using
find_xpath
, an error occurs stating that the node is either not visible or not an HTMLElement. This issue occurs in theverify_license
function.Steps to Reproduce
Navigate to the page where the element is located.
select2-verLProf-container
using the following code:Expected Behavior
The element should be clicked without any errors.
Actual Behavior
An error is thrown indicating that the node is either not visible or not an HTMLElement.
Here is the screenshot of an element I am trying to click on:![image](https://github.com/mattsse/chromiumoxide/assets/52206958/7115cab3-b3ae-43fa-b282-c36f7d639cfe)