How can I use the waitchild method here to check if the object is available or not. OR any otherway.
i am testing a web application and using a datadriven framework which takes inputs from the couple of excel sheet.
1. One excel sheet contains the Full names of the objects and variables mapped to this full name.
2. other excel sheet contains the mapped names and the actions to be performed on the objects.
the frame work creates a command using both the excels to be executed using the mapped name of the object.
I am building a command to execute from "Func_BuildCommandLine" passing an excel sheet as a parameter
'Build the strCommandLine
strCommandLine = func_BuildCommandLine(Driver2) sys.Refresh()
that function returns value of strCommandLine = "Call Sys.Browser("iexplore").Page("*").Form("aspnetForm").Panel("divHeaderAndContent").Panel("contentWrapper").Panel("LoginBar").Table(0).Cell(2, 1).SubmitButton("ContentPlaceHolder1_cmdSubmit").Click"
and later the command is executed as
'Execute the Command Line right here
Execute(strCommandLine)
Before executing the Command I need to make sure the object exists as sometimes it takes more time to load the page and the test is timeout before the object is loaded.
is there any way to make sure the object is available to click or perform any action.
Is there any method which takes the full name as parameter and checks its availability before performing the action