Current time: 10-17-2019, 12:53 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to setvalue for the text field which has multiple layer(i.e. HTML5 page)
08-30-2014, 08:15 PM (This post was last modified: 08-30-2014 08:31 PM by andydavies.)
Post: #4
RE: Not able to setvalue for the text field which has multiple layer(i.e. HTML5 page)
You can do a similar thing for that too e.g.

execAndWait document.getElementsByClassName("button-submit")[0].click();

obviously you'll need to adjust the index if there's more than one element with that class

I tend to write WPT scripts by testing the DOM code from a browser's dev tools console and then use execAndWait in WPT

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 


Messages In This Thread
RE: Not able to setvalue for the text field which has multiple layer(i.e. HTML5 page) - andydavies - 08-30-2014 08:15 PM

Forum Jump:


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