The webapp that I am testing has some 'panels' that are dynamically driven and if you select option A, text boxes A and B display and if you select option B, you will see textboxes C and D.
I am having great difficulty with getting TP to recognize that certain textboxes do not display. So, when those textboxes are not displayed, TP recognizes that they are. I am wondering if I am using the wrong method.
HTMLEditBox("Name=priceclaim:txtSvcProvStreet").Ex ists = True And _
HTMLEditBox("Name=priceclaim:txtSvcProvSuite").Exi sts = True And _
HTMLEditBox("Name=priceclaim:txtSvcProvZip").Exist s = True Then
Debug.Print "they exist"
Debug.Print "they do not exist"
I don't know if the above is pseudocode, but I usually pair a .Exists w/ a tpAttachNoWait.
What's the actual problem you're having?
I've noticed when I'm trying to do what you're doing, the only HTML item that works intuitively like that is a HTMLComboBox because it has a .Visible function. Otherwise, I try to use the surrounding HTMLTD or whatnot to check if it's visible/active. I'm not sure if the same can work for your application though.
Originally, I was checking just the edit box, which didn't help b/c csstext was empty. But, I checked the table [that the edit box is within] and it has the csstext and solved my issue. I also confirmed with my developer in that should be the property that I should be checking for.