Error: Type Text not working with selector "at" with variables
-
BAS version: 24.1.1
OS: Windows 10 (21H1)I want to use "Type Text" by coordinates from variables.
On the website have a button with select options and in the same line an input field (gm@il reg form, phone number input).
First, I use "Get Coordinates" to get coordinates of the countries button, then I create new X-Y variables, increase the X with 150 and increase the Y with 20. The new X-Y variables will point into phone number input field (I already checked, the new X-Y variables pointing into the right place).
The issue:
When I want to use the new X-Y variables in the "Type Text" (of course with selector "at") then the pointer moving in the center of the country button. But if I set the right integers into "Type Text" selector "at", then it's working perfectly!Please help, what can be wrong.
Thank you.
-
@jasjas said in Error: Type Text not working with selector "at" with variables:
BAS version: 24.1.1
OS: Windows 10 (21H1)I want to use "Type Text" by coordinates from variables.
On the website have a button with select options and in the same line an input field (gm@il reg form, phone number input).
First, I use "Get Coordinates" to get coordinates of the countries button, then I create new X-Y variables, increase the X with 150 and increase the Y with 20. The new X-Y variables will point into phone number input field (I already checked, the new X-Y variables pointing into the right place).
The issue:
When I want to use the new X-Y variables in the "Type Text" (of course with selector "at") then the pointer moving in the center of the country button. But if I set the right integers into "Type Text" selector "at", then it's working perfectly!Please help, what can be wrong.
Thank you.Have you read the description of the at selector? This selector determines the element by coordinates, and then the algorithm finds the approximate coordinates in the middle of the element and makes a click.
-
@Fox Thank you for the extreme fast reply!
Sure, I already read. I give coordinates but from variables. There is an "@" sign which is allow to insert variables too into selector's input field.
....or I misunderstand something, please?
Here is a screenshot, what I mean:
https://i.ibb.co/W6y4bYY/Screenshot-1.pngThank you
-
@jasjas said in Error: Type Text not working with selector "at" with variables:
@Fox Thank you for the extreme fast reply!
Sure, I already read. I give coordinates but from variables. There is an "@" sign which is allow to insert variables too into selector's input field.
....or I misunderstand something, please?
Here is a screenshot, what I mean:
https://i.ibb.co/W6y4bYY/Screenshot-1.pngThank you
I explain again, you specify the coordinates not for the click (data entry), but the coordinates inside the element. The algorithm uses these coordinates to find the element and selects the coordinates for the click itself, guided by the size of the element.
To make a click in the exact coordinates, use the "Click" action, and then the "Type" action from the browser module
-
@Fox Oh...I got it, thank you!