Hi, I’ve been trying to run an automated bot that sends messages but it doesn’t appear to work. The sendKeys (Enter) option does not work properly. This means I cannot send messages, as on Discord, there is no send button on the app, enter is the only way to type messages.
Here is an example code that does not work properly, upon reaching the “sendKeys” enter option it actually refreshes the page, which is very confusing.
{
“CreationDate”: “2018-10-20”,
“Commands”: [
{
“Command”: “open”,
“Target”: “Discord”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id="app-mount"]/div[1]/div/div[1]/div/div/div[2]/div[2]/div[2]/div[2]/div[1]/form/div/div/textarea",
“Value”: “”
},
{
“Command”: “type”,
“Target”: "//[@id="app-mount"]/div[1]/div/div[1]/div/div/div[2]/div[2]/div[2]/div[2]/div[1]/form/div/div/textarea”,
“Value”: “hi”
},
{
“Command”: “sendKeys”,
“Target”: “//*[@id="app-mount"]/div[4]/div[2]/div/div/div[2]/div/button/div/span”,
“Value”: “${KEY_ENTER}”
}
]
}
If anyone can help find alternatives to send messages or have a fix please let me know, thank you!