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

about $$().size() bug #565

Closed
zhupengfarmer opened this issue Jun 30, 2017 · 3 comments
Closed

about $$().size() bug #565

zhupengfarmer opened this issue Jun 30, 2017 · 3 comments

Comments

@zhupengfarmer
Copy link

image
image
print $$().size() is 0
But i can $$().get(0) to get elememnt

@zhupengfarmer
Copy link
Author

image

if First findelement by id work
List<SelenideElement> pageList1 = $("#work").$$(By.className("ul-0")); System.out.println(pageList1.size());

it worked.

@zhupengfarmer
Copy link
Author

if Change the order
System.out.println($$(By.className("ul-0")).get(0).$$("li").shouldHave(sizeGreaterThan(0)).size()); //如果存在多页,进行翻页测试 List<SelenideElement> pageList = $$(By.className("ul-0")); System.out.println($$(By.className("ul-0")).size()); System.out.println($$(By.className("ul-0"))); System.out.println(pageList.size());

it worked..........

@bentys
Copy link

bentys commented Jul 26, 2017

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants