I got what ur trying to point sriharsha ...
But what im thinking is ..... if v give asserequals with the xpath ..
then i dnt have the necessity to write to excel .. i can directly....
verify in the site..
Lets see this in this way .. say like ..
lets not consider xpath .. lets take compare only the text presents..
for ex: i have abc in the excel .. n i need to check if the same abc
is present in the webpage ..
On Jan 6, 4:54 pm, sriharsha a <
harsha.avan...@gmail.com> wrote:
> This is how you should be doing assertions ....
> you are using getText() to get the text of an element which has text, and
> storing it in string variable.
> Are the values read from excel sheet and values in stored in string variable
> from getText() same , if yes
> use assertEquals() for assertion.
>
> hope this helps .. if not please let me know
>
> Sriharsha
>
> On Thu, Jan 6, 2011 at 5:07 PM, sai krishna <
hotdude...@gmail.com> wrote:
> > I didnt get u sriharsha ..
>
> > See v have some values in excel entered manually .. can we compare the
> > values from the excel with the values on the webpage .. ??
>
> > is this possible ??
>
> > or write the values n compare values within the excel ..
>
> > On Thu, Jan 6, 2011 at 3:34 PM, sriharsha a <
harsha.avan...@gmail.com>wrote:
>
> >> If the text ur getting is displayed to the user , you can use
> >> assertEquals() to make sure getting the correct one.
>
> >> Thanks,
> >> Sriharsha
>
> >> On Thu, Jan 6, 2011 at 11:51 AM, keshav <
keshav...@gmail.com> wrote:
>
> >>> Hey i got the solution by making use of gettext.
>
> >>> String b= selenium.getText("//h3/a"); and its working fine.
>
> >>> If there is anyother method plz reply
>
> >>> Thanks,
> >>> Keshav
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Selenium Users" group.
> >>> To post to this group, send email to
seleniu...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>>
selenium-user...@googlegroups.com<
selenium-users%2Bunsu...@googlegroups.com>
> >>> .
> >>
selenium-user...@googlegroups.com<
selenium-users%2Bunsu...@googlegroups.com>
> >> .
> >
selenium-user...@googlegroups.com<
selenium-users%2Bunsu...@googlegroups.com>
> > .