how to automate webedit box - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: how to automate webedit box (/Thread-how-to-automate-webedit-box) |
how to automate webedit box - ricks_ngl - 07-23-2012 Dear All, I am having a webedit box and in my web page which is having around 50 drop downs. I need to select one out of them. The code which I have now is, 1. Taking the value to select from the global data table 2. Check if the value is matching for each and every element in the web edit box i.e I have 50 if conditions 3. Select the value which is matching the value in the global data sheet I need it to be, 1. Take the value to select from the global data table 2. Select the webedit box element based on the selection My current code: Code: SchemaType=DataTable.value("Schema_Type",sheet1) 'Need to avoid hard coding. The below code is not working Code: Browser("BOAData").Page("CSs").Frame("Frame").WebElement(SchemaType).Click Could you please help me to fix this issue. RE: how to automate webedit box - K Gaurav Varshney - 07-24-2012 Hi ricks_ngl Have you tried the below code: Code: Browser().Page().Frame().WebEdit().Set dataTable("Schema_Type",sheet1) Regards, K |