Forum Discussion

dan_qa's avatar
dan_qa
New Contributor
9 years ago

Unable to Use ObjectLabel Property in FindChild to Set Textbox to Object

I am using:

page.FindChild(new Array("ObjectLabel"), new Array("*Solicitation Quantity:*"), 1000);

 

page is a variable referencing the system explorer and current webpage. I instantiate two new Arrays, and spied the textbox properties to determine the ObjectLabel as 'Solicitation Quantity:'. The depth is just a large enough value to ensure we dive deep enough into the hierarchy.

 

I have had no trouble using FindChild in a very similar way to find buttons and text on a webpage, it seems to be an issue specific to textboxes. 

 

Any help is appreciated.

1 Reply

  • shankar_r's avatar
    shankar_r
    Community Hero

    Can you post some Object browser of your page and Button object?