Current time: 09-16-2019, 10:06 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to test a website that requires a username and password to log in???
07-04-2019, 06:20 PM
Post: #1
Big Grin How to test a website that requires a username and password to log in???
Big GrinBig Grin
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
Find all posts by this user
Quote this message in a reply
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)