web crawler - use htmlunit how to get modal dialog element -


i want go website https://console.mobra.in htmlunit tool, login input in modal box, how username input element or login form?

use queryselector method in htmlunit.

usernamebox = currentpage.queryselector("[placeholder='username or email address']"); passwordbox = currentpage.queryselector("[data-ng-model='user.password']"); 

to above css selector, may install chrome extension 'css selector' of using selectorgadget.

if works, please tick answer, or otherwise please leave comment below.


Comments

Popular posts from this blog

How to start daemon on android by adb -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

testing - Detect whether test has failed within fixture -