void updateShareHelper(UpdateAgentHelper helper, string code, string agent, string share) { if (helper.checkPresent(code + "Click")) { helper.doubleClickElement(code + "Click"); } else { helper.doubleClickElement(code + "Edit"); } helper.SelectByText(code + "AgentDrop", agent); helper.ClickElement(code + "SaveAgent"); helper.doubleClickElement(code + "ShareClick"); helper.ClearText(code + "ShareInput"); helper.TypeText(code + "ShareInput", share); helper.ClickElement(code + "SaveShare"); //helper.ClickElement("TeamShare"); //helper.SelectDropDownByText("//*[@id='teamidvalues']", "Billy-Paul"); //helper.TypeText("MemberShare", "30"); //helper.Click("//*[@id='SalesCodes']/div[3]/a/button"); }
void updateShareHelper(UpdateAgentHelper helper, string code, string agent, string share) { if (helper.checkPresent(code + "Click")) { helper.doubleClickElement(code + "Click"); } else { helper.doubleClickElement(code + "Edit"); } helper.SelectByText(code + "AgentDrop", agent); helper.ClickElement(code + "SaveAgent"); helper.doubleClickElement(code + "ShareClick"); helper.ClearText(code + "ShareInput"); helper.TypeText(code + "ShareInput", share); helper.ClickElement(code + "SaveShare"); }