01-13-2012, 03:01 AM
Hello,
I have this piece of code with different index values for WebElement("class:=errmsg errmsgDetails").
[i][/i]
How do I capture elements with same property on the screen and then would like to run a loop to capture inner text.
For example rightnow in this case there are two occurences when I add index:=0 or index:=1 I , the getROProperty part works fine.
I have this piece of code with different index values for WebElement("class:=errmsg errmsgDetails").
[i]
Code:
Dim errormsg1
Set errormsg1=Browser("IHG").Page("Home").WebElement("class:=errmsg errmsgDetails")
If errormsg1.Exist Then
msg=errormsg1.GetROProperty("innertext")
msgbox(msg)
End If
How do I capture elements with same property on the screen and then would like to run a loop to capture inner text.
For example rightnow in this case there are two occurences when I add index:=0 or index:=1 I , the getROProperty part works fine.