Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

selenium test script text validation

Posted on 2013-12-19
1
Medium Priority
?
940 Views
Last Modified: 2013-12-24
Basically in search.xhtml i search on Vendor Name 'xyz' and in next resulsts.xhtml page i get 2 results with say 3 columns

Vendor Name            vendor address            vendor city
xyz                                  123 main st                Minneapolis
xyz                                   123 Broad St              Boston

I want to validate Vendor Name in the first column is coming 'xyz' itself not some other incorrect value. How do I validate that using selenium regression script. Is there is a assert for that. How do i add command for this validation.

please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
mccarl earned 2000 total points
ID: 39730793
I know I sound like a broken record, but using Webdriver API will give you all this ability, to "assert" anything you want. There isn't much point getting this going with your recorded scripts, as you will need to move away from that to Webdriver for the reasons given in your other questions.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question