in reply to Re^3: Can't Find Form with WWW::Mechanize::Chrome
in thread Can't Find Form with WWW::Mechanize::Chrome
The above should work, but you can check whether the correct element is used by inspecting it:
Thanks your help, it can find the correct element, but it doesn't login by the script. I notice that when if I comment the lines about click, I can see the input content(admin, **** ) on the chrome, but when I submit thru the $mech->click_button(id => 'loginBtn'), the contents in the form will disappear!. that's why I can't login I think.
Sorry for my poor HTML knowledge, I can't understand what happen behind this situation. Please help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Can't Find Form with WWW::Mechanize::Chrome
by Corion (Patriarch) on May 13, 2020 at 06:15 UTC | |
by xiaoyafeng (Deacon) on May 13, 2020 at 07:12 UTC |