So I am trying to use the sendKeys
command to navigate a website, and I have no clue why I am seeing the current behavior. When I send ${KEY_ENTER}, the page seems to submit a form or something rather than sending the enter key. Here are my commands:
{
"Name": "Greenhouse",
"CreationDate": "2021-12-9",
"Commands": [
{
"Command": "open",
"Target": "https://app.greenhouse.io",
"Value": "",
"Description": ""
},
{
"Command": "sendKeys",
"Target": "id=user_email",
"Value": "test@test",
"Targets": [
"id=user_email",
"name=user[email]",
"xpath=//*[@id=\"user_email\"]",
"xpath=//input[@id='user_email']",
"xpath=//div[2]/input",
"css=#user_email"
],
"Description": ""
},
{
"Command": "sendKeys",
"Target": "id=user_email",
"Value": "${KEY_ENTER}",
"Targets": [
"id=user_email",
"name=user[email]",
"xpath=//*[@id=\"user_email\"]",
"xpath=//input[@id='user_email']",
"xpath=//div[2]/input",
"css=#user_email"
],
"Description": ""
}
]
}
When the macro runs, it ends up redirecting the page, and I see this:
For my use case, I am unable to use XType
. I am highlighting this case rather than simulating a click event, because there is a place in this tool after you log in where there is no button and I am forced to use sendKeys
, so I would like to figure out what is going on here.
Any help is appreciated.