Current time: 08-22-2019, 02:36 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could not script a click
11-19-2016, 11:11 AM
Post: #1
Could not script a click
Dear friends,
Over a week, I tried to script a testing to click an item on this page:
https://democlass.rmit.edu.vn
I ran either this script:
navigate https://democlass.rmit.edu.vn/#/home
clickAndWait innerText=Học sinh

or this script:
navigate https://democlass.rmit.edu.vn/#/home
clickAndWait innerHtml=Học sinh

but the result is "content breakdown" after the second command.
I tried to stimulate the click option "I am a student" but not sure the script was correct.

Anyone help?
I appreciate your kind response.
RMITVN
Find all posts by this user
Quote this message in a reply
11-20-2016, 06:03 AM
Post: #2
RE: Could not script a click
This should work for you

navigate https://democlass.rmit.edu.vn/#/home
execAndWait document.querySelectorAll(".hocsinh")[0].click()

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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