Error on Object variable or with block variable not set

  • Thread starter Thread starter Kartikey
  • Start date Start date
K

Kartikey

Can any one tell me, whilw running automation script in test partner,
how to select a checkbox from Grid(GUI Object).

My Grid contain hale no of rows and 3 columns. 1) Check Box 2)
Description 3) Detail
i am able to select Grid from window. But within the grid i am not
able to select check box.


Dim l_objGrid As TGUIObject


Set l_objGrid = TestPartner.GUIObject("ClassName=SS32X25_Spread
Label='" & a_strGridTitle & ":'")

error comes when following code comes in picture

l_intMaxRows = l_objGrid.Object.MaxRows

Please tell me why it giving an error as above. I tried a lot by
setting reference library.
Note: Previously it was running fine with Activex. But now i want to
run it with GUI Object
 
I'm not familiar with Test Partner etc, but is this supposed to be VBA code
or some flavour of .Net ?

NickHK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top