public bool MyLoadsValidations() { try { Assert.IsTrue(VerifyTextClass()); if (_DashboardData.Entity == Constants.Entity_Carrier) { MyTasksPage objMyTasksPage = new MyTasksPage(this.testConfig); Assert.IsTrue(CheckPickupWeekData()); objMyTasksPage.Navigate(); Assert.IsTrue(CheckDeliveryWeekData()); objMyTasksPage.Navigate(); } else { Assert.IsTrue(CheckPickupWeekData()); CLAW objClaw = new CLAW(testConfig, testData); objClaw.NavigateTo("HOME"); Assert.IsTrue(CheckDeliveryWeekData()); objClaw.NavigateTo("HOME"); } return(true); } catch (Exception) { return(false); } }
public CreateSubTaskSteps(IWebDriver driver) { this.driver = driver; loginPage = new LoginPage(driver); myTasksPage = new MyTasksPage(driver); mySubTasksPage = new MySubTasksPage(driver); }
public WorlSpaceViewModel() { infoUserPage = new InfoUserPage(); taskPage = new TaskPage(); myTasksPage = new MyTasksPage(); CurrentPage = infoUserPage; }
public MyTasksViewModel(MyTasksPage page) { _page = page; Title = "Browse"; Items = new ObservableCollection <MyTaskEx>(); LoadItemsCommand = new Command(async() => await ExecuteLoadItemsCommand()); AddItemCommand = new Command(async() => await ExecuteAddItemCommand()); ItemSelectCommand = new Command <MyTaskEx>(async(item) => await ExecuteItemSelectCommand(item)); MessagingCenter.Subscribe <NewItemPage, MyTask>(this, "AddItem", async(obj, item) => { var newItem = item as MyTask; var newItemEx = new MyTaskEx(newItem); Items.Add(newItemEx); await DataStore.AddItemAsync(newItem); }); }
private bool VerifyMyLoadsCount(UIItem item, string count) { try { Assert.IsTrue(item.Click()); _DashboardPage.My_Loads_Search_Results_Headers.WaitUntilDisplayed(30); UIItem TotalResults = new UIItem("MyLoads>> Total results>>", byTotalResults, driver); UIItem CountResults = new UIItem("MyLoads>> Total results>>", byCountResults, driver); if (TotalResults.IsDisplayed()) { Assert.IsTrue(TotalResults.UIVerify("HasText." + count)); } else { Assert.IsTrue(CountResults.UIVerify("HasText." + count)); } if (_entityname == Constants.Entity_Carrier) { MyTasksPage objToNavigate = new MyTasksPage(this.testConfig); objToNavigate.Navigate(); } else { CLAW objToNavigate = new CLAW(testConfig, testData); objToNavigate.NavigateTo("HOME"); } return(true); } catch { return(false); } }
public MyTasks(TestStartInfo teststartinfo, DataManager datamanager) { _MyTasksData = new MyTasksData(datamanager); _MyTasksPage = new MyTasksPage(teststartinfo); }
public MyTaskFlows() { myTaskPage = new MyTasksPage(); }