-
-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Description
I use the following code:
HtmlPage page1 = webClient.getPage("https://***");
HtmlForm form = page1.getFormByName("form");
HtmlTextInput user = form.getInputByName("User");
user.setValueAttribute("username");
HtmlPasswordInput pwd = form.getInputByName("Pwd1");
pwd.setValueAttribute("password");
HtmlParagraph paragraph = (HtmlParagraph) page1.getByXPath("//p[@class='txt_center b_mrgn9 t_mrgn9']").get(0);
DomElement dom = paragraph.getFirstElementChild();
HtmlPage page2 = dom.click();
log.info("page2网页html:{}", page2.asXml());
page2 is same as page1.
In actual operation, after clicking the submit button, a new window pops up. How do I get the information of the pop-up window?
Thanks a lot!
Metadata
Metadata
Assignees
Labels
No labels
