Hi,
Since v2.25 behaviour for DomElement.click() method has been changed and now it is different in comparsion with real browsers. Seems that there is extra visibility check which is not required.
Please find the patch with test for exposing this problem and removing extra validation.
Test cases added in SVN.
The only change:
assertEquals(URL, URL)instead of(String, URL)Any updates on this issue?
Hi Anton,
sorry for comming back that late to this issue. Have done some debugging and it looks like a bug in the HtmlUnit Driver. Do you use the driver or pure HtmlUnit?
Thanks for a response, I will double check it and provide more details later
looks like we have some more problem here. Working on more test cases at the moment and will fix it after that.
Thanks
Do you need help with investigation or additional tests writing?
Thanks RBRi. I think the fixes for #1939 are definitely improvements and solves the problem for Javascript, but what about
DomElement.click()which still has visibility check?Should these two lines of code behave differently? First still has visibility check as at trunk @ r15041 while second doesn't.
Personally, I think visibility check at this layer makes HtmlUnit difficult to use, and feels kind of superflous because application code is already at a stage where it's decided it wants to click it, regardless of (or despite of) visibility.
Last edit: Atsushi Nakagawa 2017-12-25