How to test a website that requires a username and password to log in???
|
07-04-2019, 06:20 PM
Post: #1
|
|||
|
|||
![]() ![]() ![]() Hello! I want to [/size]and jump to a sub-page after successful login, but I don't know how to write script statements. Can someone help me? Be deeply grateful. Here's what I wrote: navigate https://smartcity.baidu.com setValue name=userName ****** setValue name=password ****** execAndWait $(document.getElementsByClassName('pass-button-submit')[0]).submit() navigate https://smartcity.baidu.com/od/regionPortrait |
|||
07-10-2019, 02:21 AM
Post: #2
|
|||
|
|||
RE: How to test a website that requires a username and password to log in???
If setValue doesn't work, try setting it using JS, its been more reliable in my testing
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)