Hi,
I have over 1000 invitations request on LinkedIn And I try to create an automation to accept these invitations and to send an welcome message to these guys, but I face the problem that I cannot write any text into the chat. It’s a p (paragraph) an I get this error:
[info] Executing: | type | css=#msg-overlay >div.ml4 > div.msg-overlay-conversation-bubble__content-wrapper > form.msg-overlay-conversation-bubble__form > div.msg-form__message-texteditor > div.msg-form__contenteditable > p | zzzzz | [error] run command: element found is neither input nor textarea.
the json look like that:
{
“Command”: “type”,
“Target”: “css=#msg-overlay >div.ml4 > div.msg-overlay-conversation-bubble__content-wrapper > form.msg-overlay-conversation-bubble__form > div.msg-form__message-texteditor > div.msg-form__contenteditable > p”,
“Value”: “zzzzz”
}
From what I understand the issue is because type is able to set text only on input & text area. But my question is: there is a way to set some text in my case?
I had tried also with sendKey, but didn’t worked as well…
Any idea or sample is welcome!
We just released the XModules, which contain the XType command. XType is a super-powerful sendkeys command as it is emulating native keyboard events. It works with any kind of input box or editor.
I see the issue… @admin made this mistake in his code sample
XType does not use a target. It sends the text to whatever element has the focus. That is why you usually use XClick (target) before XType, to make sure the focus is in the right place.
I just installed kantu yesterday and it looks pretty cool ( after I test 2-3 similar rpa).
There is any repo where we can put succeded script in order to make life easier for other users?
…like a library of scripts…
Create a forum post for the scripts, with the source code as attachment. This has the advantage that you can use the post itself to describe what the scripts do - and that users can find it easily via the forum search.