{"action":"opened","issue":{"url":"https://api.github.com/repos/codeborne/selenide/issues/214","labels_url":"https://api.github.com/repos/codeborne/selenide/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/codeborne/selenide/issues/214/comments","events_url":"https://api.github.com/repos/codeborne/selenide/issues/214/events","html_url":"https://github.com/codeborne/selenide/issues/214","id":104667100,"number":214,"title":"There is no shouldBe(empty)/shouldNotBe(empty) methods for ElementsCollection","user":{"login":"vinogradoff","id":6568032,"avatar_url":"https://avatars.githubusercontent.com/u/6568032?v=3","gravatar_id":"","url":"https://api.github.com/users/vinogradoff","html_url":"https://github.com/vinogradoff","followers_url":"https://api.github.com/users/vinogradoff/followers","following_url":"https://api.github.com/users/vinogradoff/following{/other_user}","gists_url":"https://api.github.com/users/vinogradoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vinogradoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinogradoff/subscriptions","organizations_url":"https://api.github.com/users/vinogradoff/orgs","repos_url":"https://api.github.com/users/vinogradoff/repos","events_url":"https://api.github.com/users/vinogradoff/events{/privacy}","received_events_url":"https://api.github.com/users/vinogradoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-03T10:51:30Z","updated_at":"2015-09-03T10:51:30Z","closed_at":null,"body":"The case is, I should have n>0 elements of the same kind on the screen, and then iterate through them checking their children properties. The number of elements is dynamic.\r\n\r\n     $$(\".element\") - doesn't search for it for the moment\r\n     $$(\".element\").size() - is always 0, which is logical consequence of that, and it is okay\r\n    \r\nI see only $$(\".element\").shouldHave(texts,exactTexts, size) - nothing of that can help me to see if the number > 0, as texts and sizes are not static.\r\n\r\nPlease add the shouldBe(empty), shouldNotBe(empty) functionality to collections \r\n\r\nor shouldNotHaveSize(int), as shouldBe(empty)==shouldHaveSize(0)."}}