- Регистрация
- 08.10.2023
- Сообщения
- 134
- Благодарностей
- 35
- Баллы
- 28
Hello everyone!
I'm currently working on a project where I need to programmatically find the XY coordinates of a specific word displayed on a webpage. My goal is to eventually perform a simulated mouse click on this word. I've been attempting to accomplish this with JavaScript, but haven't had success yet.
Here's the scenario: The word "TEST" is visible on the page, and I need to retrieve its coordinates. I'm using ZennoPoster for automation, and my current approach involves executing JavaScript within the tool to get the element's position. However, I seem to be stuck.
Could anyone provide insights or code snippets on how to accurately find the coordinates of a word on a page? If it matters, I'm looking to do this in a browser environment controlled by ZennoPoster, which has its own methods for executing JavaScript and simulating mouse events.
Any help or direction would be greatly appreciated as I'm aiming to use these coordinates to then use ZennoPoster's mouse emulation block for the click action.
Thank you in advance for your assistance!
I'm currently working on a project where I need to programmatically find the XY coordinates of a specific word displayed on a webpage. My goal is to eventually perform a simulated mouse click on this word. I've been attempting to accomplish this with JavaScript, but haven't had success yet.
Here's the scenario: The word "TEST" is visible on the page, and I need to retrieve its coordinates. I'm using ZennoPoster for automation, and my current approach involves executing JavaScript within the tool to get the element's position. However, I seem to be stuck.
Could anyone provide insights or code snippets on how to accurately find the coordinates of a word on a page? If it matters, I'm looking to do this in a browser environment controlled by ZennoPoster, which has its own methods for executing JavaScript and simulating mouse events.
Any help or direction would be greatly appreciated as I'm aiming to use these coordinates to then use ZennoPoster's mouse emulation block for the click action.
Thank you in advance for your assistance!