{"action":"created","comment":{"url":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/comments/146044013","pull_request_review_id":70938556,"id":146044013,"diff_hunk":"@@ -0,0 +1,88 @@\n+﻿// <copyright file=\"ManageProductsPage.cs\" company=\"IDT\">\n+// Copyright (c) IDT. All rights reserved.\n+// </copyright>\n+\n+namespace IDT.XGen.Main.UI.Pages.BRO\n+{\n+    using IDT.Core.Automation.Page.Base;\n+    using IDT.Core.Automation.Selenium;\n+    using IDT.Core.Automation.Utilities;\n+    using IDT.Core.Automation.Utilities.CommonAction;\n+    using IDT.Core.Automation.WebDriver;\n+    using OpenQA.Selenium;\n+\n+    /// <summary>\n+    /// This class is to handle the manage products page.\n+    /// </summary>\n+    public class ManageProductsPage : BasePage\n+    {\n+        [IDTFindBy(File = \"ManageProductsLocators\", Locator = \"LstProductType\")]\n+        private IWebElement LstProductType;\n+\n+        [IDTFindBy(File = \"ManageProductsLocators\", Locator = \"lblMessage\")]\n+        private IWebElement lblMessage;\n+\n+        /// <summary>\n+        /// Selects an option from Product type.\n+        /// </summary>\n+        /// <param name=\"option\">The option to choose.</param>\n+        public void SelectOptionFromProductType(string option)\n+        {\n+            option = option.ToUpper().Replace(\" \", string.Empty);\n+            CommonActions.SelectComboBox(this.LstProductType, option);\n+        }\n+\n+        /// <summary>\n+        /// Edits allowed for current retailer option.\n+        /// </summary>\n+        /// <param name=\"productName\">The productName to edit.</param>\n+        public void EditAllowedForCurrentRetailerOption(string productName)\n+        {\n+            CommonActions.WaitUntilLocatorExists(Utils.GetByLocator(\"BossRevolutionOrganizerLocators\", \"AlertLoadingDisplayNone\"));\n+            CommonActions.ClickElementByLocator(Utils.GetByLocator(\"ManageProductsLocators\", \"BtnEditSelectedProduct\", productName));\n+        }\n+\n+        /// <summary>\n+        /// Checks allowed for current Retailer option.\n+        /// </summary>\n+        /// <param name=\"productName\">The product name value.</param>\n+        public void CheckAllowedForCurrentRetailerOption(string productName)\n+        {\n+            By locator = Utils.GetByLocator(\"ManageProductsLocators\", \"ChkIsAllowedForRetailer\", productName);\n+            CommonActions.WaitUntilLocatorExists(locator);\n+            if (!WebDriverManager.Instance.GetWebDriver.FindElement(locator).Selected)","path":"IDT.XGen/Main/UI/Pages/BRO/ManageProductsPage.cs","position":53,"original_position":53,"commit_id":"129308c94291cacfec2cb4193eb2553594ca3bf9","original_commit_id":"0ff0ffcdea00d1caed77cbd354ca62105d4e0fcf","user":{"login":"ArielWRojas","id":32467680,"avatar_url":"https://avatars3.githubusercontent.com/u/32467680?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielWRojas","html_url":"https://github.com/ArielWRojas","followers_url":"https://api.github.com/users/ArielWRojas/followers","following_url":"https://api.github.com/users/ArielWRojas/following{/other_user}","gists_url":"https://api.github.com/users/ArielWRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielWRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielWRojas/subscriptions","organizations_url":"https://api.github.com/users/ArielWRojas/orgs","repos_url":"https://api.github.com/users/ArielWRojas/repos","events_url":"https://api.github.com/users/ArielWRojas/events{/privacy}","received_events_url":"https://api.github.com/users/ArielWRojas/received_events","type":"User","site_admin":false},"body":"Ok, I will create a method for this.","created_at":"2017-10-20T19:05:57Z","updated_at":"2017-10-20T19:05:58Z","html_url":"https://github.com/coretech/br-bdd-automation/pull/77#discussion_r146044013","pull_request_url":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/comments/146044013"},"html":{"href":"https://github.com/coretech/br-bdd-automation/pull/77#discussion_r146044013"},"pull_request":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77"}},"in_reply_to_id":146019760},"pull_request":{"url":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77","id":147831805,"html_url":"https://github.com/coretech/br-bdd-automation/pull/77","diff_url":"https://github.com/coretech/br-bdd-automation/pull/77.diff","patch_url":"https://github.com/coretech/br-bdd-automation/pull/77.patch","issue_url":"https://api.github.com/repos/coretech/br-bdd-automation/issues/77","number":77,"state":"open","locked":false,"title":"C3178: set up product in manage products","user":{"login":"ArielWRojas","id":32467680,"avatar_url":"https://avatars3.githubusercontent.com/u/32467680?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielWRojas","html_url":"https://github.com/ArielWRojas","followers_url":"https://api.github.com/users/ArielWRojas/followers","following_url":"https://api.github.com/users/ArielWRojas/following{/other_user}","gists_url":"https://api.github.com/users/ArielWRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielWRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielWRojas/subscriptions","organizations_url":"https://api.github.com/users/ArielWRojas/orgs","repos_url":"https://api.github.com/users/ArielWRojas/repos","events_url":"https://api.github.com/users/ArielWRojas/events{/privacy}","received_events_url":"https://api.github.com/users/ArielWRojas/received_events","type":"User","site_admin":false},"body":"… used for QEAUTO-85","created_at":"2017-10-20T15:40:59Z","updated_at":"2017-10-20T19:05:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"235dd521aaf219a858005a7d5d62a29972525320","assignee":{"login":"ArielWRojas","id":32467680,"avatar_url":"https://avatars3.githubusercontent.com/u/32467680?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielWRojas","html_url":"https://github.com/ArielWRojas","followers_url":"https://api.github.com/users/ArielWRojas/followers","following_url":"https://api.github.com/users/ArielWRojas/following{/other_user}","gists_url":"https://api.github.com/users/ArielWRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielWRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielWRojas/subscriptions","organizations_url":"https://api.github.com/users/ArielWRojas/orgs","repos_url":"https://api.github.com/users/ArielWRojas/repos","events_url":"https://api.github.com/users/ArielWRojas/events{/privacy}","received_events_url":"https://api.github.com/users/ArielWRojas/received_events","type":"User","site_admin":false},"assignees":[{"login":"ArielWRojas","id":32467680,"avatar_url":"https://avatars3.githubusercontent.com/u/32467680?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielWRojas","html_url":"https://github.com/ArielWRojas","followers_url":"https://api.github.com/users/ArielWRojas/followers","following_url":"https://api.github.com/users/ArielWRojas/following{/other_user}","gists_url":"https://api.github.com/users/ArielWRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielWRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielWRojas/subscriptions","organizations_url":"https://api.github.com/users/ArielWRojas/orgs","repos_url":"https://api.github.com/users/ArielWRojas/repos","events_url":"https://api.github.com/users/ArielWRojas/events{/privacy}","received_events_url":"https://api.github.com/users/ArielWRojas/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"wMercadoJala","id":14945930,"avatar_url":"https://avatars2.githubusercontent.com/u/14945930?v=4","gravatar_id":"","url":"https://api.github.com/users/wMercadoJala","html_url":"https://github.com/wMercadoJala","followers_url":"https://api.github.com/users/wMercadoJala/followers","following_url":"https://api.github.com/users/wMercadoJala/following{/other_user}","gists_url":"https://api.github.com/users/wMercadoJala/gists{/gist_id}","starred_url":"https://api.github.com/users/wMercadoJala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wMercadoJala/subscriptions","organizations_url":"https://api.github.com/users/wMercadoJala/orgs","repos_url":"https://api.github.com/users/wMercadoJala/repos","events_url":"https://api.github.com/users/wMercadoJala/events{/privacy}","received_events_url":"https://api.github.com/users/wMercadoJala/received_events","type":"User","site_admin":false},{"login":"virginiaSanabria","id":32309958,"avatar_url":"https://avatars0.githubusercontent.com/u/32309958?v=4","gravatar_id":"","url":"https://api.github.com/users/virginiaSanabria","html_url":"https://github.com/virginiaSanabria","followers_url":"https://api.github.com/users/virginiaSanabria/followers","following_url":"https://api.github.com/users/virginiaSanabria/following{/other_user}","gists_url":"https://api.github.com/users/virginiaSanabria/gists{/gist_id}","starred_url":"https://api.github.com/users/virginiaSanabria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virginiaSanabria/subscriptions","organizations_url":"https://api.github.com/users/virginiaSanabria/orgs","repos_url":"https://api.github.com/users/virginiaSanabria/repos","events_url":"https://api.github.com/users/virginiaSanabria/events{/privacy}","received_events_url":"https://api.github.com/users/virginiaSanabria/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77/commits","review_comments_url":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77/comments","review_comment_url":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coretech/br-bdd-automation/issues/77/comments","statuses_url":"https://api.github.com/repos/coretech/br-bdd-automation/statuses/129308c94291cacfec2cb4193eb2553594ca3bf9","head":{"label":"ArielWRojas:C3178_SetUpProductInManageProducts","ref":"C3178_SetUpProductInManageProducts","sha":"129308c94291cacfec2cb4193eb2553594ca3bf9","user":{"login":"ArielWRojas","id":32467680,"avatar_url":"https://avatars3.githubusercontent.com/u/32467680?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielWRojas","html_url":"https://github.com/ArielWRojas","followers_url":"https://api.github.com/users/ArielWRojas/followers","following_url":"https://api.github.com/users/ArielWRojas/following{/other_user}","gists_url":"https://api.github.com/users/ArielWRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielWRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielWRojas/subscriptions","organizations_url":"https://api.github.com/users/ArielWRojas/orgs","repos_url":"https://api.github.com/users/ArielWRojas/repos","events_url":"https://api.github.com/users/ArielWRojas/events{/privacy}","received_events_url":"https://api.github.com/users/ArielWRojas/received_events","type":"User","site_admin":false},"repo":{"id":105810681,"name":"br-bdd-automation","full_name":"ArielWRojas/br-bdd-automation","owner":{"login":"ArielWRojas","id":32467680,"avatar_url":"https://avatars3.githubusercontent.com/u/32467680?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielWRojas","html_url":"https://github.com/ArielWRojas","followers_url":"https://api.github.com/users/ArielWRojas/followers","following_url":"https://api.github.com/users/ArielWRojas/following{/other_user}","gists_url":"https://api.github.com/users/ArielWRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielWRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielWRojas/subscriptions","organizations_url":"https://api.github.com/users/ArielWRojas/orgs","repos_url":"https://api.github.com/users/ArielWRojas/repos","events_url":"https://api.github.com/users/ArielWRojas/events{/privacy}","received_events_url":"https://api.github.com/users/ArielWRojas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArielWRojas/br-bdd-automation","description":null,"fork":true,"url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation","forks_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/forks","keys_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/teams","hooks_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/hooks","issue_events_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/issues/events{/number}","events_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/events","assignees_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/assignees{/user}","branches_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/branches{/branch}","tags_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/tags","blobs_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/languages","stargazers_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/stargazers","contributors_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/contributors","subscribers_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/subscribers","subscription_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/subscription","commits_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/contents/{+path}","compare_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/merges","archive_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/downloads","issues_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/issues{/number}","pulls_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/labels{/name}","releases_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/releases{/id}","deployments_url":"https://api.github.com/repos/ArielWRojas/br-bdd-automation/deployments","created_at":"2017-10-04T19:42:17Z","updated_at":"2017-10-04T19:42:19Z","pushed_at":"2017-10-20T18:56:45Z","git_url":"git://github.com/ArielWRojas/br-bdd-automation.git","ssh_url":"git@github.com:ArielWRojas/br-bdd-automation.git","clone_url":"https://github.com/ArielWRojas/br-bdd-automation.git","svn_url":"https://github.com/ArielWRojas/br-bdd-automation","homepage":null,"size":962,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coretech:develop","ref":"develop","sha":"ab44ef33d75b4b98e557d8236a965414dc8ec1c2","user":{"login":"coretech","id":18749,"avatar_url":"https://avatars1.githubusercontent.com/u/18749?v=4","gravatar_id":"","url":"https://api.github.com/users/coretech","html_url":"https://github.com/coretech","followers_url":"https://api.github.com/users/coretech/followers","following_url":"https://api.github.com/users/coretech/following{/other_user}","gists_url":"https://api.github.com/users/coretech/gists{/gist_id}","starred_url":"https://api.github.com/users/coretech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coretech/subscriptions","organizations_url":"https://api.github.com/users/coretech/orgs","repos_url":"https://api.github.com/users/coretech/repos","events_url":"https://api.github.com/users/coretech/events{/privacy}","received_events_url":"https://api.github.com/users/coretech/received_events","type":"Organization","site_admin":false},"repo":{"id":104761739,"name":"br-bdd-automation","full_name":"coretech/br-bdd-automation","owner":{"login":"coretech","id":18749,"avatar_url":"https://avatars1.githubusercontent.com/u/18749?v=4","gravatar_id":"","url":"https://api.github.com/users/coretech","html_url":"https://github.com/coretech","followers_url":"https://api.github.com/users/coretech/followers","following_url":"https://api.github.com/users/coretech/following{/other_user}","gists_url":"https://api.github.com/users/coretech/gists{/gist_id}","starred_url":"https://api.github.com/users/coretech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coretech/subscriptions","organizations_url":"https://api.github.com/users/coretech/orgs","repos_url":"https://api.github.com/users/coretech/repos","events_url":"https://api.github.com/users/coretech/events{/privacy}","received_events_url":"https://api.github.com/users/coretech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coretech/br-bdd-automation","description":null,"fork":false,"url":"https://api.github.com/repos/coretech/br-bdd-automation","forks_url":"https://api.github.com/repos/coretech/br-bdd-automation/forks","keys_url":"https://api.github.com/repos/coretech/br-bdd-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coretech/br-bdd-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coretech/br-bdd-automation/teams","hooks_url":"https://api.github.com/repos/coretech/br-bdd-automation/hooks","issue_events_url":"https://api.github.com/repos/coretech/br-bdd-automation/issues/events{/number}","events_url":"https://api.github.com/repos/coretech/br-bdd-automation/events","assignees_url":"https://api.github.com/repos/coretech/br-bdd-automation/assignees{/user}","branches_url":"https://api.github.com/repos/coretech/br-bdd-automation/branches{/branch}","tags_url":"https://api.github.com/repos/coretech/br-bdd-automation/tags","blobs_url":"https://api.github.com/repos/coretech/br-bdd-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coretech/br-bdd-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coretech/br-bdd-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/coretech/br-bdd-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coretech/br-bdd-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/coretech/br-bdd-automation/languages","stargazers_url":"https://api.github.com/repos/coretech/br-bdd-automation/stargazers","contributors_url":"https://api.github.com/repos/coretech/br-bdd-automation/contributors","subscribers_url":"https://api.github.com/repos/coretech/br-bdd-automation/subscribers","subscription_url":"https://api.github.com/repos/coretech/br-bdd-automation/subscription","commits_url":"https://api.github.com/repos/coretech/br-bdd-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/coretech/br-bdd-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/coretech/br-bdd-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/coretech/br-bdd-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/coretech/br-bdd-automation/contents/{+path}","compare_url":"https://api.github.com/repos/coretech/br-bdd-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coretech/br-bdd-automation/merges","archive_url":"https://api.github.com/repos/coretech/br-bdd-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coretech/br-bdd-automation/downloads","issues_url":"https://api.github.com/repos/coretech/br-bdd-automation/issues{/number}","pulls_url":"https://api.github.com/repos/coretech/br-bdd-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/coretech/br-bdd-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/coretech/br-bdd-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coretech/br-bdd-automation/labels{/name}","releases_url":"https://api.github.com/repos/coretech/br-bdd-automation/releases{/id}","deployments_url":"https://api.github.com/repos/coretech/br-bdd-automation/deployments","created_at":"2017-09-25T14:37:04Z","updated_at":"2017-09-26T19:10:30Z","pushed_at":"2017-10-20T18:56:46Z","git_url":"git://github.com/coretech/br-bdd-automation.git","ssh_url":"git@github.com:coretech/br-bdd-automation.git","clone_url":"https://github.com/coretech/br-bdd-automation.git","svn_url":"https://github.com/coretech/br-bdd-automation","homepage":null,"size":1246,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":16,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77"},"html":{"href":"https://github.com/coretech/br-bdd-automation/pull/77"},"issue":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/issues/77"},"comments":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/coretech/br-bdd-automation/statuses/129308c94291cacfec2cb4193eb2553594ca3bf9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ArielWRojas"}}