Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect positions #16

Closed
marek-surek opened this issue Jun 27, 2016 · 4 comments
Closed

Incorrect positions #16

marek-surek opened this issue Jun 27, 2016 · 4 comments

Comments

@marek-surek
Copy link

I found bug, when you try to get positions of element.
E.g. Go to this page : http://reality.sme.sk/vsetky-ponuky/
Iterate By cssPath : #offerlist-list div.article-list
Look at position and location of returned webelements -> all are the same. PhantomJS returns positions correctly.

@asashour
Copy link
Contributor

Can you provide your complete case with code.

@marek-surek
Copy link
Author

marek-surek commented Jul 13, 2016

Hi,

It was simply something like this :

driver.get("http://reality.sme.sk/vsetky-ponuky/");
for(WebElement we : driver.findElements(By.cssSelector("#offerlist-list div.article-list"))) {
    //check those values against phantomJS driver
    we.getLocation();
    we.getSize();
}

@asashour
Copy link
Contributor

Rendering elements is outside the scope of HtmlUnit.

There are some JavaScript-level calculations for the width and height, but I guess they aren't useful in this case.

rbri added a commit that referenced this issue Nov 16, 2017
@rbri
Copy link
Collaborator

rbri commented Apr 19, 2019

will close this because HtmlUnit is a headless driver that does only limited layout calculations

@rbri rbri closed this as completed Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants