Many at times in Scripting we come across scenarios where we need to count the objects in the application or even highlight a child object like highlighting a text box or check and uncheck check boxes using scripting in QTP.
Below are some of the examples where in you can do different actions. For our example we are using Flight Reservation application as reference.
Below are some of the examples where in you can do different actions. For our example we are using Flight Reservation application as reference.
4 comments:
the example given here for checking and unchecking the checkboxes is giving an error:
The operation cannot be performed
Line (8): "chd_obj(i).Set "ON"".
Please suggest how to debug?
Will check and let you know
On a webpage, I had to use:
checkbox(i).Set("ON")
Hi,
I am automating a .Net application using QTP11.
I am trying to ensure that a combobox is not empty and I can select a particular value from the combobox.
During runtime, the combobox is identified as SwfTree with SwfToolbar as parent. The recorded script is given below:
SwfWindow("mywindow").SwfToolbar("SwfToolbar").SwfTreeView("SwfTreeView").Select "Favourites;my fav".
When I rerun this recorded script, though the SwfTree and SwfToolbar are present in OR,it fails with below error:
"Can not find the "SwfTreeView" object's parent "SwfToolbar" (class SwfToolbar.
Could somebody please guide me on this?
Thank you
Post a Comment