Write a script for given number is positive or negative of editbox in a webpage?

Ans:
dataEditbox=Trim(Browser("Google").Page("Google").WebEdit("q").GetROProperty("value"))

If dataEditBox<0 Then

    msgbox "edit box has negative value"

else

    msgbox "edit box has positive  value"

End If

Subscribe to TestingQ.Net

To receive daily posted Interview Questions
Just enter your email address below and click 'Subscribe'

Enter your email address: