pghilb has asked for the wisdom of the Perl Monks concerning the following question:
One particularly nasty <input> node $i, on a webpage I am trying to automate, accepts the necessary value sent via WWW::Mechanize::Firefox,
but when a button, invoking the action in which the above input is needed, is clicked, the webpage complains that no value was entered.$i->{value}='xyz';
Apparently, some internal JS-script does not give its approval on the value, and the page isn't modified accordingly. I tried to imitate this, prior-to-clicking, modification, but didn't succeed in that either.
When I submit the value manually, the page is modified as it should (surprise, surprise), whenever the value is assigned after hitting the EnterKey. So my question is whether it is possible to imitate hitting the EnterKey, or any other important events (apart from realized onClick) in WWW::Mechanize::Firefox? Any input will be greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: W-M-F and event.keyCode===keys.ENTER
by Corion (Patriarch) on Jul 27, 2014 at 08:36 UTC | |
by pghilb (Novice) on Jul 27, 2014 at 09:18 UTC | |
by Corion (Patriarch) on Jul 27, 2014 at 09:43 UTC | |
by pghilb (Novice) on Jul 27, 2014 at 10:18 UTC | |
by Corion (Patriarch) on Jul 27, 2014 at 10:29 UTC | |
| |
|
Re: W-M-F and event.keyCode===keys.ENTER
by Anonymous Monk on Jul 27, 2014 at 03:28 UTC | |
by pghilb (Novice) on Jul 27, 2014 at 09:07 UTC |