{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/php-webdriver/issues/328","repository_url":"https://api.github.com/repos/facebook/php-webdriver","labels_url":"https://api.github.com/repos/facebook/php-webdriver/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/facebook/php-webdriver/issues/328/comments","events_url":"https://api.github.com/repos/facebook/php-webdriver/issues/328/events","html_url":"https://github.com/facebook/php-webdriver/issues/328","id":178953050,"number":328,"title":"PHP-WebDriver with MacOS Sierra 10.12 doesn’t work methods with waiting for condition, like waitForElement… and waitForElementNot...","user":{"login":"sakharovmaksim","id":17139166,"avatar_url":"https://avatars.githubusercontent.com/u/17139166?v=3","gravatar_id":"","url":"https://api.github.com/users/sakharovmaksim","html_url":"https://github.com/sakharovmaksim","followers_url":"https://api.github.com/users/sakharovmaksim/followers","following_url":"https://api.github.com/users/sakharovmaksim/following{/other_user}","gists_url":"https://api.github.com/users/sakharovmaksim/gists{/gist_id}","starred_url":"https://api.github.com/users/sakharovmaksim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakharovmaksim/subscriptions","organizations_url":"https://api.github.com/users/sakharovmaksim/orgs","repos_url":"https://api.github.com/users/sakharovmaksim/repos","events_url":"https://api.github.com/users/sakharovmaksim/events{/privacy}","received_events_url":"https://api.github.com/users/sakharovmaksim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T19:14:45Z","updated_at":"2016-10-04T06:36:09Z","closed_at":"2016-10-04T06:34:10Z","body":"OS:\r\nMacOS Sierra 10.12\r\nSelenium Version:\r\n\r\n2.53.1, 3.0.0-beta3\r\nFacebook php-adapter\r\n\r\nBrowser:\r\nChrome\r\n\r\nWhen i upgrade to macOS Sierra, i faced a problem that all WebDrivers methods with waiting until a condition, like $_webDriver->wait($timeout)->until(WebDriverExpectedCondition::presenceOfElementLocated($selector) doesn’t work correctly.\r\n\r\nThe problem is, if target selector is not visible or present now, WebDriver not trying to repeat check this selector again and again. WebDriver trying once and after timeout, just throws an Exception (NoSuchElementException).\r\n\r\nThe El Capitan (10.11) didn't have a problem.\r\n\r\nCode:\r\nreturn self::$_webDriver->wait($timeout)->until(\t\t\tWebDriverExpectedCondition::visibilityOfElementLocated(WebDriverBy::cssSelector((string) $cssSelector)),\r\n$message\r\n);\r\n\r\nLog:\r\n12:58:13.038 INFO - Executing: [find element: By.cssSelector: .l-badge_new_wrapper #uBadgeBlock #uName])\r\n12:58:24.008 WARN - Exception thrown\r\norg.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {\"method\":\"css selector\",\"selector\":\" .l-badge_new_wrapper #uBadgeBlock #uName\"}\r\n(Session info: chrome=53.0.2785.116)\r\n(Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.12.0 x86_64) (WARNING: The server did not provide any stacktrace information)\r\nCommand duration or timeout: 8 milliseconds\r\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\r\nBuild info: version: '3.0.0-beta3', revision: 'c7b525d', time: '2016-09-01 14:57:03 -0700'\r\nSystem info: host: 'Sakharov-MacBook-Pro.local', ip: '10.10.64.11', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12', java.version: '1.8.0_74'\r\nDriver info: org.openqa.selenium.chrome.ChromeDriver\r\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=true, networkConnectionEnabled=false, chrome={chromedriverVersion=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6), userDataDir=/var/folders/lj/4bqf7t556k964jh071mxq8040000gn/T/.org.chromium.Chromium.Qfcl87}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=true, version=53.0.2785.116, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\r\nSession ID: 4fb3f72ae02f3a6b4833cc3a261b21fe\r\n*** Element info: {Using=css selector, value= .l-badge_new_wrapper #uBadgeBlock #uName}\r\nat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\nat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\nat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\nat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\nat org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)\r\nat org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)\r\nat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:631)\r\nat org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:369)\r\nat org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(RemoteWebDriver.java:466)\r\nat org.openqa.selenium.By$ByCssSelector.findElement(By.java:430)\r\nat org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:361)\r\nat sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)\r\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\nat java.lang.reflect.Method.invoke(Method.java:498)\r\nat org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:103)\r\nat com.sun.proxy.$Proxy3.findElement(Unknown Source)\r\nat org.openqa.selenium.support.events.EventFiringWebDriver.findElement(EventFiringWebDriver.java:187)\r\nat org.openqa.selenium.remote.server.handler.FindElement.call(FindElement.java:48)\r\nat org.openqa.selenium.remote.server.handler.FindElement.call(FindElement.java:33)\r\nat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\nat org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)\r\nat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\nat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\nat java.lang.Thread.run(Thread.java:745)\r\n\r\n-->\r\n\r\nBrowser Version:\r\n\r\n53.0.2785.116\r\n\r\nExpected Behavior -\r\n\r\nWebDriver not trying to repeat check selector’s condition again and again.\r\n\r\nActual Behavior -\r\n\r\nWebDriver trying once and after timeout, just throws an Exception (NoSuchElementException).\r\n\r\nSteps to reproduce -\r\n\r\nTry execute waitForElement... on element, witch don’t visible or present in current time, but it will soon be seen or present.\r\nWebDriver trying once check this element, and throws Exception.\r\n\r\nPlease, fix this problem! I couldn't use WebDriver with MacOS Sierra. "},"comment":{"url":"https://api.github.com/repos/facebook/php-webdriver/issues/comments/251305337","html_url":"https://github.com/facebook/php-webdriver/issues/328#issuecomment-251305337","issue_url":"https://api.github.com/repos/facebook/php-webdriver/issues/328","id":251305337,"user":{"login":"sakharovmaksim","id":17139166,"avatar_url":"https://avatars.githubusercontent.com/u/17139166?v=3","gravatar_id":"","url":"https://api.github.com/users/sakharovmaksim","html_url":"https://github.com/sakharovmaksim","followers_url":"https://api.github.com/users/sakharovmaksim/followers","following_url":"https://api.github.com/users/sakharovmaksim/following{/other_user}","gists_url":"https://api.github.com/users/sakharovmaksim/gists{/gist_id}","starred_url":"https://api.github.com/users/sakharovmaksim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakharovmaksim/subscriptions","organizations_url":"https://api.github.com/users/sakharovmaksim/orgs","repos_url":"https://api.github.com/users/sakharovmaksim/repos","events_url":"https://api.github.com/users/sakharovmaksim/events{/privacy}","received_events_url":"https://api.github.com/users/sakharovmaksim/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T06:36:08Z","updated_at":"2016-10-04T06:36:08Z","body":"The problem fix by change etc/hosts file, like:\r\n\r\n127.0.0.1       localhost Sakharov-MacBook-Pro.local\r\n::1             localhost Sakharov-MacBook-Pro.local"}}
{"actor":{"display_login":"sakharovmaksim"}}