Hi Ankesh,
Now am not getting the error i added OR in workarea_2 and updated code as like below.
Now the problem is ... in the page it showing 0 records am not getting mssgbox prompts seems loops is not working...
Am running on debug mode
And my innertext contains so much data just we need 1 OR record can i use regular expression in inner html .
Please have look and show the way for issue solution
Thanks,
Saisu
Now am not getting the error i added OR in workarea_2 and updated code as like below.
Code:
strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext")
Now the problem is ... in the page it showing 0 records am not getting mssgbox prompts seems loops is not working...
Am running on debug mode
Code:
strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext") .... F11 cursor moving to
If strResultMsg ="0 records returned" Then
F11 cursor moving to
Elseif strResultMsg="1 records returned" Then
F11 cursor moving to
End If
Loop Until strResultMsg="0 records returned"
F11 cursor moving to
strResultMsg ="0 records returned" Then loops not working please help me
Am pasting the code once again
Do
Browser("Browser").Page("Page").Frame("toolbar").Link("Customer Search").Click
Browser("Browser").Page("Page").Frame("workarea").WebEdit("v_value").Set GEOVoIPnumber
Browser("Browser").Page("Page").Frame("workarea").WebButton("Search").Click
strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext")
'chk for the message
If strResultMsg ="0 records returned" Then
msgbox"Please procced to build"
Exit Do ' Exit the loop
Elseif strResultMsg="1 records returned" Then
msgbox"Number Already exists in "
Browser("Browser").Page("Page").Frame("toolbar").Link("Customer Search").Click
Browser("Browser").Page("Page").Frame("workarea").WebEdit("v_value").Set GEOVoIPnumber
Browser("Browser").Page("Page").Frame("workarea").WebButton("Search").Click
strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext")
End If
Loop Until strResultMsg="0 records returned"
And my innertext contains so much data just we need 1 OR record can i use regular expression in inner html .
Please have look and show the way for issue solution
Thanks,
Saisu