// Create a new page adapter for the device. internal /*public*/ IPageAdapter NewPageAdapter() { IPageAdapter a = _pageAdapterFactory.CreateInstance() as IPageAdapter; if (a == null) { throw new Exception( SR.GetString(SR.IndividualDeviceConfig_TypeMustSupportInterface, _pageAdapterType.FullName, "IPageAdapter")); } return(a); }
public void Initialize(IPageAdapter pageAdapter, IBrowser browser) { page = pageAdapter; Browser = browser; elementSearcher = new ElementSearcher(page.ElementLocator); }