{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/41613755","id":41613755,"diff_hunk":"@@ -0,0 +1,72 @@\n+from marionette import Marionette\n+from gaiatest.apps.base import Base\n+from marionette_driver import By, Wait, expected\n+\n+class BugzillaLite(Base):\n+\n+    name = 'Bugzilla Lite'\n+    _given_username = (By.CSS_SELECTOR, \"#login input[type='email']\")\n+    _given_password = (By.CSS_SELECTOR, \"#login input[type='password']\")\n+    _button_login = (By.CSS_SELECTOR, \"#login input[type='submit']\")\n+    _profile_icon = (By.CSS_SELECTOR, \".profile\")\n+    _button_logout = (By.CSS_SELECTOR, \".btn\")\n+    _dashboard_navigator_locator = (By.ID, 'dashboardNav')\n+    _dashboard_login_locator = (By.ID, 'login')\n+    _popup_intro = (By.ID, 'intro')\n+    _button_popup_intro = (By.ID, 'intro-submit')\n+    _assigned_icon = (By.CSS_SELECTOR, '#dashboardNav .assigned')\n+    _flagged_icon = (By.CSS_SELECTOR, '#dashboardNav .flagged')\n+    _filed_icon = (By.CSS_SELECTOR, '#dashboardNav .filed')\n+    _search_bar = (By.ID, 'searchLink')\n+    _button_cancel_search = (By.LINK_TEXT, 'Cancel')    \n+    def login (self, username, password):\n+        username_element = self.marionette.find_element(*self._given_username)\n+        username_element.tap()\n+        username_element.send_keys(username)\n+        password_element = self.marionette.find_element(*self._given_password)\n+        password_element.tap()\n+        password_element.send_keys(password)\n+        button_element = self.marionette.find_element(*self._button_login)\n+        button_element.tap()\n+\n+    def logout(self):\n+        profile_element = self.marionette.find_element(*self._profile_icon)\n+        profile_element.tap()\n+        logout_element = self.marionette.find_element(*self._button_logout)\n+        logout_element.tap()\n+\n+    def followBugs(self):\n+        print'function started'\n+        flagged_element = self.marionette.find_element(*self._flagged_icon)\n+        print'flagged started'\n+        flagged_element.tap()\n+        filed_element = self.marionette.find_element(*self._filed_icon)\n+        print'filed started'\n+        filed_element.tap()\n+        assigned_element = self.marionette.find_element(*self._assigned_icon)\n+        print'assigned started'\n+        assigned_element.tap()\n+\n+    def search(self, number):\n+        searchbar_element = self.marionette.find_element(*self._search_bar)\n+        searchbar_element.tap()\n+        number_to_enter = self.keyboard.send(number)","path":"tests/python/gaia-ui-tests/gaiatest/apps/bzlite/app.py","position":57,"original_position":53,"commit_id":"dd50a5876462a43700a53c096b0c04f30764998f","original_commit_id":"74bd3fd3cd54100e177e8af1bd5470a31cd5265f","user":{"login":"JohanLorenzo","id":5907366,"avatar_url":"https://avatars.githubusercontent.com/u/5907366?v=3","gravatar_id":"","url":"https://api.github.com/users/JohanLorenzo","html_url":"https://github.com/JohanLorenzo","followers_url":"https://api.github.com/users/JohanLorenzo/followers","following_url":"https://api.github.com/users/JohanLorenzo/following{/other_user}","gists_url":"https://api.github.com/users/JohanLorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanLorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanLorenzo/subscriptions","organizations_url":"https://api.github.com/users/JohanLorenzo/orgs","repos_url":"https://api.github.com/users/JohanLorenzo/repos","events_url":"https://api.github.com/users/JohanLorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/JohanLorenzo/received_events","type":"User","site_admin":false},"body":"I see you get an StaleElementException if you send_keys. You can just put:\r\n```py\r\nself.keyboard.send(number)\r\n```","created_at":"2015-10-09T09:44:34Z","updated_at":"2015-10-09T09:44:34Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/30982#discussion_r41613755","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/41613755"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/30982#discussion_r41613755"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982","id":40035632,"html_url":"https://github.com/mozilla-b2g/gaia/pull/30982","diff_url":"https://github.com/mozilla-b2g/gaia/pull/30982.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/30982.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30982","number":30982,"state":"open","locked":false,"title":"Bug 1184154 - [Bugzilla Lite] Testing Search in Bugzilla Lite","user":{"login":"mermi","id":1905513,"avatar_url":"https://avatars.githubusercontent.com/u/1905513?v=3","gravatar_id":"","url":"https://api.github.com/users/mermi","html_url":"https://github.com/mermi","followers_url":"https://api.github.com/users/mermi/followers","following_url":"https://api.github.com/users/mermi/following{/other_user}","gists_url":"https://api.github.com/users/mermi/gists{/gist_id}","starred_url":"https://api.github.com/users/mermi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mermi/subscriptions","organizations_url":"https://api.github.com/users/mermi/orgs","repos_url":"https://api.github.com/users/mermi/repos","events_url":"https://api.github.com/users/mermi/events{/privacy}","received_events_url":"https://api.github.com/users/mermi/received_events","type":"User","site_admin":false},"body":"This is test for search in Bugzilla Lite App, we still have few problems in this test like:\r\n1- always we get us result 'no bug' such I tried different bug number I added in the testvars.json:\r\n\"bugs\": {\r\n        \"1\": \"1183782\",\r\n        \"2\": \"1183726\",\r\n        \"3\": \"1181923\",\r\n        \"4\": \"1180624\",\r\n        \"5\": \"127172\"\r\n     }\r\n2- I am searching how to get the search button of the keyboard  because we haven't button to click on for search after putting the bug number.","created_at":"2015-07-15T15:29:50Z","updated_at":"2015-10-09T09:44:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89c6767a4452558e68ec9e6d185652f28f9f0cf2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30982/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/dd50a5876462a43700a53c096b0c04f30764998f","head":{"label":"mermi:testsearchbzlite","ref":"testsearchbzlite","sha":"dd50a5876462a43700a53c096b0c04f30764998f","user":{"login":"mermi","id":1905513,"avatar_url":"https://avatars.githubusercontent.com/u/1905513?v=3","gravatar_id":"","url":"https://api.github.com/users/mermi","html_url":"https://github.com/mermi","followers_url":"https://api.github.com/users/mermi/followers","following_url":"https://api.github.com/users/mermi/following{/other_user}","gists_url":"https://api.github.com/users/mermi/gists{/gist_id}","starred_url":"https://api.github.com/users/mermi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mermi/subscriptions","organizations_url":"https://api.github.com/users/mermi/orgs","repos_url":"https://api.github.com/users/mermi/repos","events_url":"https://api.github.com/users/mermi/events{/privacy}","received_events_url":"https://api.github.com/users/mermi/received_events","type":"User","site_admin":false},"repo":{"id":21656013,"name":"gaia","full_name":"mermi/gaia","owner":{"login":"mermi","id":1905513,"avatar_url":"https://avatars.githubusercontent.com/u/1905513?v=3","gravatar_id":"","url":"https://api.github.com/users/mermi","html_url":"https://github.com/mermi","followers_url":"https://api.github.com/users/mermi/followers","following_url":"https://api.github.com/users/mermi/following{/other_user}","gists_url":"https://api.github.com/users/mermi/gists{/gist_id}","starred_url":"https://api.github.com/users/mermi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mermi/subscriptions","organizations_url":"https://api.github.com/users/mermi/orgs","repos_url":"https://api.github.com/users/mermi/repos","events_url":"https://api.github.com/users/mermi/events{/privacy}","received_events_url":"https://api.github.com/users/mermi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mermi/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":true,"url":"https://api.github.com/repos/mermi/gaia","forks_url":"https://api.github.com/repos/mermi/gaia/forks","keys_url":"https://api.github.com/repos/mermi/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mermi/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mermi/gaia/teams","hooks_url":"https://api.github.com/repos/mermi/gaia/hooks","issue_events_url":"https://api.github.com/repos/mermi/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mermi/gaia/events","assignees_url":"https://api.github.com/repos/mermi/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mermi/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mermi/gaia/tags","blobs_url":"https://api.github.com/repos/mermi/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mermi/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mermi/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mermi/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mermi/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mermi/gaia/languages","stargazers_url":"https://api.github.com/repos/mermi/gaia/stargazers","contributors_url":"https://api.github.com/repos/mermi/gaia/contributors","subscribers_url":"https://api.github.com/repos/mermi/gaia/subscribers","subscription_url":"https://api.github.com/repos/mermi/gaia/subscription","commits_url":"https://api.github.com/repos/mermi/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mermi/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mermi/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mermi/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mermi/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mermi/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mermi/gaia/merges","archive_url":"https://api.github.com/repos/mermi/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mermi/gaia/downloads","issues_url":"https://api.github.com/repos/mermi/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mermi/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mermi/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mermi/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mermi/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mermi/gaia/releases{/id}","created_at":"2014-07-09T14:48:24Z","updated_at":"2015-08-25T22:59:01Z","pushed_at":"2015-10-08T23:15:22Z","git_url":"git://github.com/mermi/gaia.git","ssh_url":"git@github.com:mermi/gaia.git","clone_url":"https://github.com/mermi/gaia.git","svn_url":"https://github.com/mermi/gaia","homepage":"https://wiki.mozilla.org/B2G","size":950745,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"4973f57cd8f9a62a95f783a24eac32da2bde99fc","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-10-06T13:28:32Z","pushed_at":"2015-10-09T09:43:26Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1647340,"stargazers_count":1991,"watchers_count":1991,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2462,"mirror_url":null,"open_issues_count":1236,"forks":2462,"open_issues":1236,"watchers":1991,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/30982"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30982"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30982/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30982/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/dd50a5876462a43700a53c096b0c04f30764998f"}}}}