Forum Discussion
Alison_Hawke
15 years agoOccasional Contributor
I tried both methods, and neither worked.
function FindWindow(myPage)
{
// starting with a Page object, can I maximise a window?
var myWindow;
myWindow = myPage.Application.Document.Script.window;
myWindow.Maximise();
// window did not maximize, no exception or other data
}
function GetPageWithoutReloading()
{
var myPage;
myPage = Sys.Process("iexplore").Page("*");
// Triggers an exception with no description.
}
I can send you the code I'm using, I don't know what else to do. We need a tool that can let us script our application and if I can't access both Page and Window objects reliably and repeatably, we can't use TestComplete at all.
function FindWindow(myPage)
{
// starting with a Page object, can I maximise a window?
var myWindow;
myWindow = myPage.Application.Document.Script.window;
myWindow.Maximise();
// window did not maximize, no exception or other data
}
function GetPageWithoutReloading()
{
var myPage;
myPage = Sys.Process("iexplore").Page("*");
// Triggers an exception with no description.
}
I can send you the code I'm using, I don't know what else to do. We need a tool that can let us script our application and if I can't access both Page and Window objects reliably and repeatably, we can't use TestComplete at all.
Related Content
Recent Discussions
- 14 hours ago
- 2 days ago