{"action":"closed","issue":{"url":"https://api.github.com/repos/codeborne/selenide/issues/311","repository_url":"https://api.github.com/repos/codeborne/selenide","labels_url":"https://api.github.com/repos/codeborne/selenide/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/codeborne/selenide/issues/311/comments","events_url":"https://api.github.com/repos/codeborne/selenide/issues/311/events","html_url":"https://github.com/codeborne/selenide/issues/311","id":145614960,"number":311,"title":"Selenide seems to not wait until some head elements are ready","user":{"login":"jammie27","id":5836867,"avatar_url":"https://avatars.githubusercontent.com/u/5836867?v=3","gravatar_id":"","url":"https://api.github.com/users/jammie27","html_url":"https://github.com/jammie27","followers_url":"https://api.github.com/users/jammie27/followers","following_url":"https://api.github.com/users/jammie27/following{/other_user}","gists_url":"https://api.github.com/users/jammie27/gists{/gist_id}","starred_url":"https://api.github.com/users/jammie27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jammie27/subscriptions","organizations_url":"https://api.github.com/users/jammie27/orgs","repos_url":"https://api.github.com/users/jammie27/repos","events_url":"https://api.github.com/users/jammie27/events{/privacy}","received_events_url":"https://api.github.com/users/jammie27/received_events","type":"User","site_admin":false},"labels":[{"id":337003800,"url":"https://api.github.com/repos/codeborne/selenide/labels/question","name":"question","color":"bfdadc","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-04T08:14:43Z","updated_at":"2016-12-10T23:14:51Z","closed_at":"2016-12-10T23:14:51Z","body":"I tried to write a simple test to check some elements (Firefox Driver, Windows 7).\n\n```\n    public void testSize(){\n\n        open(\"https://www.point-rouge.de\");\n        //SelenideElement description = $$(\"meta\").findBy(name(\"description\")); //if i comment these lines, i can't find any alternates\n\n        //String descriptionContent = description.getAttribute(\"content\"); //if i uncomment these lines, i can see link alternate\n\n\n        ElementsCollection alternates = $$(\"head link\").filterBy(attribute(\"rel\", \"alternate\"));\n\n\n        int k = 0;\n        for(SelenideElement alternate : alternates){\n            System.out.println(k);\n           // System.out.println(alternate.getAttribute(\"hreflang\"));\n           // System.out.println(alternate.getAttribute(\"href\"));\n\n            k++;\n        }\n        System.out.println(\"alternates size - counter\");\n        System.out.println(k);\n\n        int alternatesCount = alternates.size();\n        System.out.println(\"alternates size\");\n        System.out.println(alternatesCount);\n\n\n\n\n        alternates.shouldHaveSize(0);\n\n        System.out.println(\"size 0?\");\n\n    }\n\n```\n\nIf i comment two lines above, that have nothing to do with search for alternates (in these lines i search for meta description and fill the variable with the value of attribute content), i can't find any alternates although one alternate definitely exists (and the test passes). If i uncomment these lines, i can find one alternate (and the test fails).\nDo you have any possible explanations for this behaviour?\n\nBest regards,\nElena Geller,\nShopboost GmbH\n"}}
{"actor":{"display_login":"asolntsev"}}