Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Selenium commands:assertAllButtons; assertTitle  RSS feed

Claudiu Barbulescu
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the following commands: assertAllButtons and assertTitle. Why when I run the Test Case in the Log window nothing is returned: the IDs of buttons, title of the page?
According to selenium documentation:
assertAllButtons should return the IDs of all buttons on the page. ( I verify with Firebug, for example the ID of Google Search button is: "gbqfba" and for I'm Feeling Lucky ID is: "gbqfbb"
assertTitle should return the title of the current page. Here an error is generated: "Actual value 'Google' did not match '' ( In my case title is Google). See the attached screenshots.

[Thumbnail for selenium.jpg]
[Thumbnail for selenium1.jpg]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!