Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to validate mandatory filed (*) in web application using
#1
Not Solved
There are 10 fields present in the application out of which 7 fields are mandatory. The Mandatory fields have (*) symbol as Web Element are present after the filed. Eg. First Name * (First Name is Web Element). Now how to validated * symbol is present after the mandatory fields.
Reply
#2
Not Solved
get all the objects name using child object methods.
get property of each one using getroprop
verify for "*"

Code:
str = Browser("My Account - Manage Subscripti").Page("My Account - Manage Subscripti").WebElement("* First name").GetROProperty("innerhtml")
For i=1 To Len(str)
    b= Mid(str,i,1)
If b="*" Then
msgbox "mandatory field"
End If
Next

Hope it helps..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 14.53 not able to record steps of web application rupesh doshi 3 2,838 10-10-2019, 01:50 PM
Last Post: rupesh doshi
  How to identify SVG elements from web application Sanjana1987 0 1,933 02-07-2017, 08:30 AM
Last Post: Sanjana1987
  Not able to set value in application web edit box tanuj dewangan 4 3,682 07-29-2016, 03:58 PM
Last Post: harshadevadas
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,880 09-13-2015, 12:06 AM
Last Post: ADITI1992
Smile Need to validate a .txt file and .jpeg image. aman8604 0 2,329 04-09-2015, 11:33 AM
Last Post: aman8604

Forum Jump:


Users browsing this thread: 1 Guest(s)