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

sql - invalid in the select list because it is not contained in either an aggregate function -

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

How to start daemon on android by adb -