Hi all,
I try to make a login in a website similar to facebook.com. My goal is do the process using Visual and X Commands (XMove, Xclick, Xtype, etc) to simulate human since it has an antibot system. Then if I use html elements like Click|Xpath won’t work.
I’ve tried for hours to get a working code using XMove but simply is no locating the image selected due that finds some similar areas. Then I’d like to limit the search area but I don’t know how it works that command and I haven´t found an example.
My idea/thought is to proceed like this:
1-) Limit Search Area to focus in this square
2-) Move (with XMove) to “Email or phone number” box and XType the email address
3-) Move (with XMove) to “Create new account” area
3-) Move (with XMove) to “Password” box and Xtype the password
4-) Move (with XMove) to “Forgot password” area
5-) Move (with XMove) to “Login” button and XClick the button
I’d like to get that movement behavior to have more possibilities to fool the antibot.
Maybe some expert could help me with an example on how to do this, since this macro will be used in more than one machine and by experience, the image taken in one machine is not found in another one by Visual commands.
Thanks in advance
My sample code is like this
{
"Name": "test",
"CreationDate": "2024-10-20",
"Commands": [
{
"Command": "comment",
"Target": "open // https://www.facebook.com/",
"Value": "",
"Description": ""
},
{
"Command": "visionLimitSearchAreaRelative",
"Target": "limit_area_dpi_90.png",
"Value": "",
"Description": ""
},
{
"Command": "XMoveRelative",
"Target": "email_or_phone_dpi_90.png@0.4",
"Value": "",
"Description": ""
},
{
"Command": "XClick",
"Target": "email_or_phone_dpi_90.png",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "email@example.com",
"Value": "",
"Description": ""
}
]
}