Solved

selenium test script text validation

Posted on 2013-12-19
1
824 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
1 Comment
 
LVL 35

Accepted Solution

by:
mccarl earned 500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

One of the most important skills a software quality assurance engineer can possess is the ability to write clear and concise test case descriptions. Regardless of whether the test case is to be executed programmatically or manually, a well written d…
I worked at a US software company that used offshore contractors for ten years and offshore employees for three years. We had a positive experience and you can too.   When I interviewed people for positions in the US, I would tell them that we wor…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

820 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