The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 12-06-2019, 06:01 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
Post Reply 


Messages In This Thread
How to test a website that requires a username and password to log in??? - ChengJ - 07-04-2019 06:20 PM

Forum Jump:


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