Page Object

Creating a Page Object
Simple PageObject
Inner PageObject

Usage in Code
Last updated
Was this helpful?


Last updated
Was this helpful?
Was this helpful?
using Mobilize.QualityMate.Automation.Entities;
using Mobilize.QualityMate.ControlInterfaces;
public class MyPageObject : PageObject
{
public IButton myButton { get; set; }
// Add other PageObject controls here
}using Mobilize.QualityMate.Automation.Entities;
using Mobilize.QualityMate.ControlInterfaces;
public class MyPageObject : PageObject // The Window
{
public MyInnerPageObject myInnerPageObject { get; set; }
// Add other PageObject controls here
}
public class MyInnerPageObject : PageObject // The Window's group controls
{
public ITextBox myTextBox { get; set; }
// Add other PageObject controls here
}public void MyMethod(UiExecutionController controller)
{
MyPageObject mainPage = controller.GetPageObject<MyPageObject>();
// Add interactions to PageObject or controls
}