Reputation: 1575
Trying to input information into text-area for site https://www.gumtree.sg/post.html only what is working is event recording mode, but when i reload page and truing to run code again I'm getting an error
RuntimeError: Element HTML is not visible, line 2 (Error code: -921)
Code:
FRAME F=2
EVENT TYPE=CLICK SELECTOR="HTML" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#rte" CHARS="Description Text"
Can some one help me to figure out how can i inptup text, as well trued with Javascript with innerHTML and innerText but seems not working as well.
Here how the structure looks like:
Upvotes: 2
Views: 1038
Reputation: 5299
If it's acceptable for you, try to type the text via clipboard:
SET !CLIPBOARD "Description Text"
EVENT TYPE=CLICK SELECTOR="#description-frame" BUTTON=0
EVENT TYPE=KEYPRESS SELECTOR="#description-frame" CHAR="v" MODIFIERS="ctrl"
The following code seems to work (but not always):
FRAME F=2
EVENT TYPE=CLICK SELECTOR="#rte" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#rte" CHARS="Description Text"
Upvotes: 1