I'm trying to click away an Internet explorer (windows security) sign in pop dialog used for signing in. The test is a jar file containing a Silk4J script and is run with Silk Central on a different machine using the execution server. When the remote desktop session is active it works fine but when the session is minimized or closed it doesn't work. Regular DOM push buttons show no problem when using .select()
and work fine in my current setup.
Code snippet:
BrowserType browserType = BrowserType.InternetExplorer;
BrowserBaseState baseState = new BrowserBaseState(browserType, url);
browser = baseState.execute(desktop);
browser.setActive();
generalWebPage = browser.find("//BrowserWindow");
loginDialog = browser.find("//Dialog");
loginDialog.setActive();
loginDialog.<TextField> find("//TextField").setText(username);
loginDialog.<TextField> find("//TextField[2]").setText(password);
loginDialog.<PushButton> find("//PushButton[@caption='OK']").select();
Again regular DOM elements work fine while the session is NOT active. But Silk just won't hit this dialog push button. I've tried setFocus
, sendKeys(Enter key)
and even Tabs en Space.
What am I missing? Thanx in advance!
( Silk 15 and IE 11)