jQuery in Action, 2nd edition*
The moose likes Testing and the fly likes Selenium commands:assertAllButtons; assertTitle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Selenium commands:assertAllButtons; assertTitle" Watch "Selenium commands:assertAllButtons; assertTitle" New topic
Author

Selenium commands:assertAllButtons; assertTitle

Claudiu Barbulescu
Greenhorn

Joined: Dec 04, 2012
Posts: 13
Hi,
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.

Thanks!


[Thumbnail for selenium.jpg]

[Thumbnail for selenium1.jpg]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selenium commands:assertAllButtons; assertTitle
 
Similar Threads
Jackson - converting java object to json - Need all key keys to upper case
JSF Page Navigation Problem
No transition to next page from button click
Junit4+Eclipse+Selenium RC- Test class should have exactly one public zero-argument constructor
New to automation tesing