Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page Validation for Web Application
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
I am assuming the scenario as: There is a webpage with fields User Name, Place and DOB. User Name is required field and other 2 are optional. Here when user selects Save button without entering data for Usert ID, system should display error as "Please enter User Name" (Developer calls error function/script at this point).
1. Check the data in that field is empty
Code:
Data1=Browser("").Page("").WEbEdit("name:=Usert ID").GetROProperty("value")
2. Fetch the Error message if displayed on the WebPage. (User descriptive programming here)
By using 1 and 2 we can validate the scenario.
Reply


Messages In This Thread
RE: Page Validation for Web Application - by KavitaPriyaCR - 10-08-2010, 03:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,508 10-01-2019, 10:44 AM
Last Post: shilpi952
  DP Web Browser/Page issues rstimers 1 2,452 08-14-2015, 12:37 PM
Last Post: venkatesh9032
  webfile web object not identified at runtime in a java application saila123 1 2,821 02-11-2015, 08:23 PM
Last Post: Kirill
Smile find out of spelling error in Web application deveshbhatt29 1 2,215 01-10-2014, 05:10 PM
Last Post: Maheep_bhambri
Question Capture Entire Web page through QTP learnQtptips 2 11,934 07-25-2013, 05:24 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)