public void AppointmentType(string value) { ClickAppointmentType.Click(); CustomWait.WaitFortheLoadingIconDisappear3000(); CustomWait.FluentWaitbyXPath("AssertGetType"); CustomLib.DropDownbyName(value, Types); CustomWait.WaitFortheLoadingIconDisappear5000(); if (value == "All") { Console.WriteLine("All Types has been selected"); } else { string TypeInfo = AssertGetType.GetAttribute("title"); Console.WriteLine("First Row Type Name is:" + TypeInfo); Assert.AreEqual(value, TypeInfo); } }
public void ChangingFixedPrice(string FP, string Code, string Comment = null) { CustomWait.WaitFortheLoadingIconDisappear2000(); ((IJavaScriptExecutor)Drive.driver).ExecuteScript("arguments[0].scrollIntoView(true);", FixedPriceChange); FixedPriceChange.Click(); CustomWait.WaitFortheLoadingIconDisappear2000(); FixedPriceChange.SendKeys(Keys.Control + "A" + Keys.Delete); CustomWait.WaitFortheLoadingIconDisappear2000(); FixedPriceChange.SendKeys(FP); FixedPriceChange.SendKeys(Keys.Enter); CustomWait.WaitFortheLoadingIconDisappear2000(); Console.WriteLine(CauseCodesDeletionTitle.Text); CustomWait.WaitFortheLoadingIconDisappear2000(); CustomLib.DropDownbyName(Code, CodesDropDown); AddCommentInCauseCodeDeletion.SendKeys(Comment); OKCauseComments.Click(); CustomLib.AlertMessage(); CustomWait.WaitFortheLoadingIconDisappear3000(); }
public void GiveCustomerApproval(string DropDownAction, string Comment = null) { WorkOrderTab.Click(); CustomWait.WaitFortheLoadingIconDisappear5000(); ((IJavaScriptExecutor)Drive.driver).ExecuteScript("arguments[0].scrollIntoView(true);", CustomerApprovalCheckBox); CustomerApprovalCheckBox.Click(); CustomWait.WaitFortheLoadingIconDisappear2000(); ((IJavaScriptExecutor)Drive.driver).ExecuteScript("arguments[0].scrollIntoView(true);", Actions); Actions.Click(); CustomWait.WaitFortheLoadingIconDisappear2000(); CustomLib.DropDownbyName(DropDownAction, ActionDropdown); CustomWait.WaitFortheLoadingIconDisappear2000(); Console.WriteLine(ApproveBehalfCustomerTitle.Text); Console.WriteLine(ApproveBehalfCustomerText.Text); ApproveBehalfCustomerInput.SendKeys(Comment); ApproveBehalfCustomerSave.Click(); CustomWait.WaitFortheLoadingIconDisappear3000(); bool ValidateApproval = ApproveBehalfCustomerChecked.Displayed; Console.WriteLine("Approve Behalf of Customer is" + "_" + ValidateApproval); }
public void selectOperationGroup(string selectOperation) { AddOperationGroup.Click(); CustomLib.DropDownbyName(selectOperation, operationgroup); }
public void AddingService(string Service) { CustomLib.DropDownbyName(Service, OtherServices); }
public void AddingPackage(string selectOperation) { AddOperationGroup.Click(); CustomLib.DropDownbyName(selectOperation, operationgroup); selectJobFromTable.Click(); }