11-21-2011, 09:34 PM
Hi Ravi,
Many thanks for your quick response
I skipped that from my requirement didn't try that
I stucked here please help me
When i searched with ID if it returns 0 records it has give amssg box and it's not giving properly ie on the page it showing 0 records however it is going to else loop -my logic should be if 0 records it has to exist loop and procced for the next steps if search returns 1 record take me to prevoius step ie customer search page ...
And each and every time it has to check the records count 0 or 1
and my code is here
after clicked on the page got the page and the page contains text like 0 records returned
so i write code like
And my logic should be each and every time after click on search it has to check every time for records whether 0 or 1 and based on that it has exit the loop and has procced .....
Any clue help me
Thanks,
Saisu
Many thanks for your quick response
I skipped that from my requirement didn't try that
I stucked here please help me
When i searched with ID if it returns 0 records it has give amssg box and it's not giving properly ie on the page it showing 0 records however it is going to else loop -my logic should be if 0 records it has to exist loop and procced for the next steps if search returns 1 record take me to prevoius step ie customer search page ...
And each and every time it has to check the records count 0 or 1
and my code is here
Code:
Browser("Browser").Page("Page").Frame("workarea").WebEdit("v_value").Set "0125672348"
Browser("Browser").Page("Page").Frame("workarea").WebButton("Search").Click
after clicked on the page got the page and the page contains text like 0 records returned
so i write code like
Code:
if result="0 records returned" Then
msgbox"Please procced to build"
Else
result="1 records returned"
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 "03245678912"
End If
And my logic should be each and every time after click on search it has to check every time for records whether 0 or 1 and based on that it has exit the loop and has procced .....
Any clue help me
Thanks,
Saisu