{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/43800566","id":43800566,"diff_hunk":"@@ -95,17 +95,18 @@ def delete_version(self, name, version):\n         self.click(locators['contentviews.next_button'])\n         self.click(locators['contentviews.confirm_remove_ver'])\n \n-    def search(self, element_name):\n+    def search(self, element_name, element_locator=None, search_key=None,\n+               katello=True, button_timeout=15, result_timeout=15):\n         \"\"\"Uses the search box to locate an element from a list of elements\"\"\"\n-        element = None\n-        strategy, value = locators['contentviews.key_name']\n-        searchbox = self.wait_until_element(common_locators['kt_search'])\n-        if searchbox:\n-            searchbox.clear()\n-            searchbox.send_keys(escape_search(element_name))\n-            self.click(common_locators['kt_search_button'])\n-            element = self.wait_until_element((strategy, value % element_name))\n-        return element\n+        Navigator(self.browser).go_to_content_views()\n+        return super(ContentViews, self).search(\n+            element_name,\n+            locators['contentviews.key_name'] or element_locator,\n+            search_key=search_key,\n+            katello=katello,\n+            button_timeout=button_timeout,\n+            result_timeout=result_timeout,\n+        )","path":"robottelo/ui/contentviews.py","position":36,"original_position":36,"commit_id":"ef43576f4a7eaa03aebb39aedc953617d45cd1d0","original_commit_id":"ef43576f4a7eaa03aebb39aedc953617d45cd1d0","user":{"login":"sthirugn","id":3309189,"avatar_url":"https://avatars.githubusercontent.com/u/3309189?v=3","gravatar_id":"","url":"https://api.github.com/users/sthirugn","html_url":"https://github.com/sthirugn","followers_url":"https://api.github.com/users/sthirugn/followers","following_url":"https://api.github.com/users/sthirugn/following{/other_user}","gists_url":"https://api.github.com/users/sthirugn/gists{/gist_id}","starred_url":"https://api.github.com/users/sthirugn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthirugn/subscriptions","organizations_url":"https://api.github.com/users/sthirugn/orgs","repos_url":"https://api.github.com/users/sthirugn/repos","events_url":"https://api.github.com/users/sthirugn/events{/privacy}","received_events_url":"https://api.github.com/users/sthirugn/received_events","type":"User","site_admin":false},"body":"May be we should standardize the `element_name` parameter across different search() definitions of entities.","created_at":"2015-11-03T20:12:17Z","updated_at":"2015-11-03T20:12:17Z","html_url":"https://github.com/SatelliteQE/robottelo/pull/2976#discussion_r43800566","pull_request_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/43800566"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/2976#discussion_r43800566"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976","id":49543950,"html_url":"https://github.com/SatelliteQE/robottelo/pull/2976","diff_url":"https://github.com/SatelliteQE/robottelo/pull/2976.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/2976.patch","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2976","number":2976,"state":"open","locked":false,"title":"[ui_search] Update the content-view entity for ui-search.","user":{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"body":"I have ran the search tests and it has passed.\r\n\r\nFor\r\na) test_cv_create\r\nb) test_cv_create_negative\r\n\r\n```\r\n(robottelo)[kbidarka@xyz robottelo]$ nosetests -m test_cv_create tests.foreman.ui.test_contentviews\r\n..\r\n----------------------------------------------------------------------\r\nRan 2 tests in 352.903s\r\n\r\nOK\r\n```","created_at":"2015-11-03T11:22:21Z","updated_at":"2015-11-03T20:12:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce45881c5d475cb57f5fe58ee8cc602d330f3980","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2976/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/ef43576f4a7eaa03aebb39aedc953617d45cd1d0","head":{"label":"kbidarkar:fix-cv-search","ref":"fix-cv-search","sha":"ef43576f4a7eaa03aebb39aedc953617d45cd1d0","user":{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"repo":{"id":14494308,"name":"robottelo","full_name":"kbidarkar/robottelo","owner":{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbidarkar/robottelo","description":"An automation testing framework for the Katello project.","fork":true,"url":"https://api.github.com/repos/kbidarkar/robottelo","forks_url":"https://api.github.com/repos/kbidarkar/robottelo/forks","keys_url":"https://api.github.com/repos/kbidarkar/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbidarkar/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbidarkar/robottelo/teams","hooks_url":"https://api.github.com/repos/kbidarkar/robottelo/hooks","issue_events_url":"https://api.github.com/repos/kbidarkar/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/kbidarkar/robottelo/events","assignees_url":"https://api.github.com/repos/kbidarkar/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/kbidarkar/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/kbidarkar/robottelo/tags","blobs_url":"https://api.github.com/repos/kbidarkar/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbidarkar/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbidarkar/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbidarkar/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbidarkar/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/kbidarkar/robottelo/languages","stargazers_url":"https://api.github.com/repos/kbidarkar/robottelo/stargazers","contributors_url":"https://api.github.com/repos/kbidarkar/robottelo/contributors","subscribers_url":"https://api.github.com/repos/kbidarkar/robottelo/subscribers","subscription_url":"https://api.github.com/repos/kbidarkar/robottelo/subscription","commits_url":"https://api.github.com/repos/kbidarkar/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbidarkar/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbidarkar/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbidarkar/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbidarkar/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/kbidarkar/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbidarkar/robottelo/merges","archive_url":"https://api.github.com/repos/kbidarkar/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbidarkar/robottelo/downloads","issues_url":"https://api.github.com/repos/kbidarkar/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/kbidarkar/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/kbidarkar/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/kbidarkar/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbidarkar/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/kbidarkar/robottelo/releases{/id}","created_at":"2013-11-18T14:14:19Z","updated_at":"2015-02-02T14:37:47Z","pushed_at":"2015-11-03T15:39:16Z","git_url":"git://github.com/kbidarkar/robottelo.git","ssh_url":"git@github.com:kbidarkar/robottelo.git","clone_url":"https://github.com/kbidarkar/robottelo.git","svn_url":"https://github.com/kbidarkar/robottelo","homepage":null,"size":11048,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SatelliteQE:ui_search","ref":"ui_search","sha":"2d48ed0e8238402ed1a4d559444ad84808735a9c","user":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"repo":{"id":4000279,"name":"robottelo","full_name":"SatelliteQE/robottelo","owner":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SatelliteQE/robottelo","description":"Robottelo is a test suite which exercises The Foreman.","fork":false,"url":"https://api.github.com/repos/SatelliteQE/robottelo","forks_url":"https://api.github.com/repos/SatelliteQE/robottelo/forks","keys_url":"https://api.github.com/repos/SatelliteQE/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SatelliteQE/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SatelliteQE/robottelo/teams","hooks_url":"https://api.github.com/repos/SatelliteQE/robottelo/hooks","issue_events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/events","assignees_url":"https://api.github.com/repos/SatelliteQE/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/SatelliteQE/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/SatelliteQE/robottelo/tags","blobs_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/SatelliteQE/robottelo/languages","stargazers_url":"https://api.github.com/repos/SatelliteQE/robottelo/stargazers","contributors_url":"https://api.github.com/repos/SatelliteQE/robottelo/contributors","subscribers_url":"https://api.github.com/repos/SatelliteQE/robottelo/subscribers","subscription_url":"https://api.github.com/repos/SatelliteQE/robottelo/subscription","commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SatelliteQE/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/SatelliteQE/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SatelliteQE/robottelo/merges","archive_url":"https://api.github.com/repos/SatelliteQE/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SatelliteQE/robottelo/downloads","issues_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/SatelliteQE/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/SatelliteQE/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/SatelliteQE/robottelo/releases{/id}","created_at":"2012-04-12T01:36:39Z","updated_at":"2015-08-04T16:49:37Z","pushed_at":"2015-11-03T15:39:17Z","git_url":"git://github.com/SatelliteQE/robottelo.git","ssh_url":"git@github.com:SatelliteQE/robottelo.git","clone_url":"https://github.com/SatelliteQE/robottelo.git","svn_url":"https://github.com/SatelliteQE/robottelo","homepage":"","size":21240,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":152,"forks":32,"open_issues":152,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/2976"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2976"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2976/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2976/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/ef43576f4a7eaa03aebb39aedc953617d45cd1d0"}}}}