/// <summary> /// Double clicks the image of the window of the input id. /// </summary> /// <param name="windowId"></param> /// <returns></returns> public ModelPage DoubleClickWindowImage(string windowId) { var windowElement = GetWindowImageElement_(windowId); SeleniumUtils.DoubleClick(Driver, windowElement); SeleniumUtils.MoveToElement(Driver, windowElement, 0, -40); ModelWindowPage windowPage = new ModelWindowPage(Driver); windowPage.WaitUntilReady(); return(windowPage); }
/// <summary> /// Opens the model window page showing the root window of the specified /// model id and returns its page object (when ready). /// </summary> /// <param name="driver"></param> /// <param name="appBaseUrl"></param> /// <param name="modelId"></param> /// <param name="testKey"></param> /// <returns></returns> public static ModelWindowPage Open( IWebDriver driver, Uri appBaseUrl, string modelId, string testKey) { ArgumentGuard.NotNull(appBaseUrl, nameof(appBaseUrl)); ArgumentGuard.NotNull(modelId, nameof(modelId)); ArgumentGuard.NotNull(testKey, nameof(testKey)); driver.Url = new Url(appBaseUrl).SubpathElement("app/models/" + modelId) .QueryElement("test", testKey) .QueryElement("accountId", Environment.GetEnvironmentVariable("APPLITOOLS_API_KEY")) .ToString(); ModelWindowPage windowPage = new ModelWindowPage(driver); windowPage.WaitUntilReady(); return(windowPage); }