{"action":"created","issue":{"url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/492","labels_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/492/comments","events_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/492/events","html_url":"https://github.com/rtomac/robotframework-selenium2library/issues/492","id":102877729,"number":492,"title":"With Chrome the selecting the alert causes an error","user":{"login":"aaltat","id":2665023,"avatar_url":"https://avatars.githubusercontent.com/u/2665023?v=3","gravatar_id":"","url":"https://api.github.com/users/aaltat","html_url":"https://github.com/aaltat","followers_url":"https://api.github.com/users/aaltat/followers","following_url":"https://api.github.com/users/aaltat/following{/other_user}","gists_url":"https://api.github.com/users/aaltat/gists{/gist_id}","starred_url":"https://api.github.com/users/aaltat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaltat/subscriptions","organizations_url":"https://api.github.com/users/aaltat/orgs","repos_url":"https://api.github.com/users/aaltat/repos","events_url":"https://api.github.com/users/aaltat/events{/privacy}","received_events_url":"https://api.github.com/users/aaltat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-24T19:53:52Z","updated_at":"2015-08-31T20:48:30Z","closed_at":null,"body":"Ugh\r\n\r\nI was prototyping the #475 and I did notice that when I use Chrome (44.0.2403.157 m) browser and run all acceptance tests with command: ```python run_tests.py python gc```. Then many of the acceptance test do fail. But if I run then by suite, example ```python run_tests.py python gc -s Waiting```, they all do pass quite nicely. \r\n\r\nIt seems that something has changed somewhere in chrome implementation and alerts are not found and therefore they are not dismissed. From the log I see this: \r\n```\r\nAlert Should Be Present\r\nDocumentation:\t\r\nVerifies an alert is present and dismisses it.\r\nStart / End / Elapsed:\t20150824 22:24:42.149 / 20150824 22:24:42.151 / 00:00:00.002\r\n22:24:42.149\tDEBUG\tGET http://127.0.0.1:62453/session/962fa759b299b85a0f291b20fc340046/alert_text {\"sessionId\": \"962fa759b299b85a0f291b20fc340046\"}\t\r\n22:24:42.151\tDEBUG\tFinished Request\t\r\n22:24:42.151\tFAIL\tThere were no alerts\t\r\n22:24:42.151\tDEBUG\tTraceback (most recent call last):\r\n  File \"<string>\", line 2, in alert_should_be_present\r\n  File \"D:\\workspace\\robotframework-selenium2library\\src\\Selenium2Library\\keywords\\keywordgroup.py\", line 15, in _run_on_failure_decorator\r\n    return method(*args, **kwargs)\r\n  File \"D:\\workspace\\robotframework-selenium2library\\src\\Selenium2Library\\keywords\\_javascript.py\", line 22, in alert_should_be_present\r\n    alert_text = self.get_alert_message()\r\n  File \"<string>\", line 2, in get_alert_message\r\n  File \"D:\\workspace\\robotframework-selenium2library\\src\\Selenium2Library\\keywords\\keywordgroup.py\", line 15, in _run_on_failure_decorator\r\n    return method(*args, **kwargs)\r\n  File \"D:\\workspace\\robotframework-selenium2library\\src\\Selenium2Library\\keywords\\_javascript.py\", line 132, in get_alert_message\r\n    return self._close_alert()\r\n  File \"D:\\workspace\\robotframework-selenium2library\\src\\Selenium2Library\\keywords\\_javascript.py\", line 149, in _close_alert\r\n    text = self._read_alert()\r\n  File \"D:\\workspace\\robotframework-selenium2library\\src\\Selenium2Library\\keywords\\_javascript.py\", line 162, in _read_alert\r\n    raise RuntimeError('There were no alerts')\r\n```\r\n\r\nI did try with several selenium and chrome driver version but the results where always the same. The code pointing to commit: eda046eb90c31366ef467e82dc9d071b3f61889d\r\n\r\n1) I think we should perhaps change our test, that each suite would open and close its browser. I know that it will add some execution time, but it would give better tests\r\n2) Alters should be handled also with Chrome browsers.  \r\n\r\nAnd test do pass, mostly, with FF 40.0.2"},"comment":{"url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/comments/136495134","html_url":"https://github.com/rtomac/robotframework-selenium2library/issues/492#issuecomment-136495134","issue_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/492","id":136495134,"user":{"login":"pekkaklarck","id":114985,"avatar_url":"https://avatars.githubusercontent.com/u/114985?v=3","gravatar_id":"","url":"https://api.github.com/users/pekkaklarck","html_url":"https://github.com/pekkaklarck","followers_url":"https://api.github.com/users/pekkaklarck/followers","following_url":"https://api.github.com/users/pekkaklarck/following{/other_user}","gists_url":"https://api.github.com/users/pekkaklarck/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkaklarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkaklarck/subscriptions","organizations_url":"https://api.github.com/users/pekkaklarck/orgs","repos_url":"https://api.github.com/users/pekkaklarck/repos","events_url":"https://api.github.com/users/pekkaklarck/events{/privacy}","received_events_url":"https://api.github.com/users/pekkaklarck/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T20:48:29Z","updated_at":"2015-08-31T20:48:29Z","body":"1s is fine if it is polling, not sleeping. Could be even more."}}