{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/377","repository_url":"https://api.github.com/repos/mozilla/geckodriver","labels_url":"https://api.github.com/repos/mozilla/geckodriver/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/geckodriver/issues/377/comments","events_url":"https://api.github.com/repos/mozilla/geckodriver/issues/377/events","html_url":"https://github.com/mozilla/geckodriver/issues/377","id":193421941,"number":377,"title":"Conditions in checking if element exist/not","user":{"login":"woof09","id":24259555,"avatar_url":"https://avatars.githubusercontent.com/u/24259555?v=3","gravatar_id":"","url":"https://api.github.com/users/woof09","html_url":"https://github.com/woof09","followers_url":"https://api.github.com/users/woof09/followers","following_url":"https://api.github.com/users/woof09/following{/other_user}","gists_url":"https://api.github.com/users/woof09/gists{/gist_id}","starred_url":"https://api.github.com/users/woof09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woof09/subscriptions","organizations_url":"https://api.github.com/users/woof09/orgs","repos_url":"https://api.github.com/users/woof09/repos","events_url":"https://api.github.com/users/woof09/events{/privacy}","received_events_url":"https://api.github.com/users/woof09/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-05T06:35:05Z","updated_at":"2016-12-07T02:07:17Z","closed_at":"2016-12-07T02:07:17Z","body":"Hi,\r\n\r\nI am having problem figuring out this logic by using the find by element API in selenium webdriver using Python.\r\nI am trying to check if an error message is appeared. IF yes, then do A, IF not then do B.\r\nIt's always throwing me error which element doesn't exist instead of moving to B if it does.\r\n\r\nAny idea?\r\n\r\n ```\r\nif (browser_init.firefoxDriver.find_element_by_xpath(\"//div[@role='alert'][@class='alert alert-info']\").is_displayed() != 0):\r\n                print (\"Account is Suspended\")\r\n            elif (browser_init.firefoxDriver.find_element_by_xpath(\"//div[@role='alert'][@class='alert alert-info']\").is_displayed() == 0):\r\n                print (\"Account is Active\")\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/comments/265334355","html_url":"https://github.com/mozilla/geckodriver/issues/377#issuecomment-265334355","issue_url":"https://api.github.com/repos/mozilla/geckodriver/issues/377","id":265334355,"user":{"login":"woof09","id":24259555,"avatar_url":"https://avatars.githubusercontent.com/u/24259555?v=3","gravatar_id":"","url":"https://api.github.com/users/woof09","html_url":"https://github.com/woof09","followers_url":"https://api.github.com/users/woof09/followers","following_url":"https://api.github.com/users/woof09/following{/other_user}","gists_url":"https://api.github.com/users/woof09/gists{/gist_id}","starred_url":"https://api.github.com/users/woof09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woof09/subscriptions","organizations_url":"https://api.github.com/users/woof09/orgs","repos_url":"https://api.github.com/users/woof09/repos","events_url":"https://api.github.com/users/woof09/events{/privacy}","received_events_url":"https://api.github.com/users/woof09/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T02:07:17Z","updated_at":"2016-12-07T02:07:17Z","body":"hi @cgoldberg , Thank you.\r\nYep managed to figure this out using your solution as well.\r\n\r\nThanks heaps."}}
{"actor":{"display_login":"woof09"}}