mrouse
13 years agoContributor
RunTime error Object expected?
Hello all,
I am getting a RunTime error message "Object expected" (see attached) when I run my TestComplete script. It occures when the test gets to the If statement below
Appswitchertextis = Aliases.iexplore.pageEmds.panelFullwindow.panelMaincontent.panelMainheader.textnodeAppswitchertext3.outertext;
If( !Appswitchertextis == "Schedule" )
{
Aliases.iexplore.pageEmds.panelFullwindow.panelMaincontent.panelMainheader.textnodeAppswitchertext.Click(); //.Click(147, 9)
Aliases.iexplore.pageEmds.panelFullwindow.panelMaincontent.textnodeAppswitchw.textnodeSchedule.Click(); //Click(48, 11)
}
The Appswitchertextis var does contain the "Schedule" string which is expected. (checked just before the if statement).
I don't know if the error occurs due to the If statement line or the statements in the If statement's body. All I know is it occurs when I F10 past the 1st line of the If statement line.
I looked through the fourm but couldn't find a lot on runtime errors.
Thanks for any help.
Mike
I am getting a RunTime error message "Object expected" (see attached) when I run my TestComplete script. It occures when the test gets to the If statement below
Appswitchertextis = Aliases.iexplore.pageEmds.panelFullwindow.panelMaincontent.panelMainheader.textnodeAppswitchertext3.outertext;
If( !Appswitchertextis == "Schedule" )
{
Aliases.iexplore.pageEmds.panelFullwindow.panelMaincontent.panelMainheader.textnodeAppswitchertext.Click(); //.Click(147, 9)
Aliases.iexplore.pageEmds.panelFullwindow.panelMaincontent.textnodeAppswitchw.textnodeSchedule.Click(); //Click(48, 11)
}
The Appswitchertextis var does contain the "Schedule" string which is expected. (checked just before the if statement).
I don't know if the error occurs due to the If statement line or the statements in the If statement's body. All I know is it occurs when I F10 past the 1st line of the If statement line.
I looked through the fourm but couldn't find a lot on runtime errors.
Thanks for any help.
Mike