Skip to content

Click is not working for pn:menuItem #632

@Mohana-Priya

Description

@Mohana-Priya

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions