Write a script for given number is positive or negative of editbox in a webpage? - TestingQ.com

-->Exclusive Portal for Testing Jobs

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



To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address:

Make sure to activate your subscription by clicking on the activation link sent to your email