Hi,
We have upgraded Jquery from 1.5.1 to 3.7.0 and our project is based on Rich faces version 4.0.0
After Jquery upgrade I upgraded htmlunit from 2.17 to 3.4.0. Now after upgrade below test
@Test
public void testServerClick() throws IOException, SAXException {
HtmlPage page = environment.getPage("/dropDownMenu_serverMode.jsf");
HtmlDivision item = (HtmlDivision) page.getElementById("form:saveAll");
assertNotNull(item);
DropDownMenuBean.setCurrent("none");
item.click();
item = (HtmlDivision) page.getElementById("form:saveAll");
assertNotNull(item);
assertEquals("action", DropDownMenuBean.getCurrent());
}
is failing with warning
WARNING: Calling click() ignored because the target element
HtmlDivision[
] is not displayed.
I verified item.isDisplayed() , it is returning false only.
I have tried page.wait or set innerheight etc., but nothing helps.
Could you please let me know how to fix this test?
Hi,
We have upgraded Jquery from 1.5.1 to 3.7.0 and our project is based on Rich faces version 4.0.0
After Jquery upgrade I upgraded htmlunit from 2.17 to 3.4.0. Now after upgrade below test
is failing with warning
WARNING: Calling click() ignored because the target element
HtmlDivision[
I verified item.isDisplayed() , it is returning false only.
I have tried page.wait or set innerheight etc., but nothing helps.
Could you please let me know how to fix this test?