Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to automate webedit box
#1
Not Solved
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)
MsgBox SchemaType
If SchemaType="SEALED" Then
Browser("BOAData").Page("CSs").Frame("Frame").WebElement("SEALED").Click
End If
If  SchemeType="OPENED" Then
Browser("BOAData").Page("CSs").Frame("Frame").WebElement("CLOSE").Click
End If

'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.
Reply
#2
Not Solved
Hi ricks_ngl

Have you tried the below code:
Code:
Browser().Page().Frame().WebEdit().Set dataTable("Schema_Type",sheet1)

Regards,
K
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to compare a certain text inside a WebEdit box? chong67 2 2,893 08-24-2012, 12:32 PM
Last Post: Ankesh
  how to automate combo box in a application using qtp ricks_ngl 0 3,314 07-20-2012, 10:59 AM
Last Post: ricks_ngl
  Default value in Edit Box when Check Box is checked nacchio 2 4,838 07-18-2012, 12:21 PM
Last Post: sree.85
  WebEdit box mv8167 3 4,463 01-18-2012, 03:18 AM
Last Post: mv8167
  whie box and black box test kiran10_rm 1 2,336 12-07-2010, 01:29 AM
Last Post: duggisrinivasarao

Forum Jump:


Users browsing this thread: 1 Guest(s)