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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -