#selenium automation

1 messages · Page 1 of 1 (latest)

mellow badger
#

An alternative to clicking might be to hit 'enter' to submit the form.

But you're definitley going to want to click... so that's obviously not ideal

#

There's also a submit() method on form DOM elements that might work even better than pretending to do user inputs.

#

try:
document.getElementById('join-game').submit();

Oh, nope that doesn't work here

coral fog
#

alright, so it's hacky as hell, but sending the enter key, while it didn't submit the form, opened user selection, and inserting it before the last line worked

#

so my current solution is to send enter and then execute the script.