assertTitle and verifyTitle failing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

assertTitle and verifyTitle failing

Eleo-3
Have written tests in IDE and get a fail as reported in log extract below

warn: currentTest.recordFailure: Actual value 'Home - etips v2' did not match 'Home - etips v2'

warn: currentTest.recordFailure: Actual value 'Timesheets - etips v2' did not match 'Timesheets - etips v2'

As you can see from the log entries the value and the target match.

Any ideas how to resolve this?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6199&messageID=17439#17439

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: assertTitle and verifyTitle failing

Eleo-3
Hi, this sounds like:

http://jira.openqa.org/browse/SEL-185

Are you using latest Sel IDE? Do you experience that on IE and FF? Which versions?

I guess you may workaround that by using a regexp with the command's pattern:

http://release.openqa.org/selenium-core/0.8.2/reference.html#patterns

so that the title will match the given pattern. Hope this helps.

However, this definitely sounds like a bug.

Regards,
Konstantin
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6199&messageID=17441#17441

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: assertTitle and verifyTitle failing

Prasad
This post has NOT been accepted by the mailing list yet.
In reply to this post by Eleo-3
Please use the following code
clickAndWait  link=My Watchlist
assertTitle Indian stock Market: Login to your Stockwatch

Please do not use assertTitle and in target box
title=Indian stock Market: Login to your Stockwatch

or
ElementName/LocaterName=Indian stock Market: Login to your Stockwatch i.e. Pattern

This will give u above error there is no bug in selenium for this command