How to verfiy presence of an <a> tag with a class in Selenium IDE - selenium-ide

Just started using Selenium IDE and having trouble verifying the presence of an <a> tag with a specific css class. I can select the <a> tag with "VerifyElementPresent | link=mylink" but how do include the check for the class?

Figured out how to do this using an xPath selector, once I discovered both Firefox and Chrome have a way to get the xPath of an element.

Related

How to get code assist for HTML tag class attribute in Eclipse?

I am using STS for Spring application developement. I want to use Bootstrap CSS on frontend.
The problem is that code assist does not work for css classes (JetBrains PHPStorm is doing it just fine)
So when I type
<button class="|
I would like to Ctrl+Space to get list of all available css classes (obviously fetched from CSS files in project).
How can I do this?? Code assist for tags and tag attributes works, but what about class attribute value?
Required feature comes with plugin wtp-web-resources but it has some bugs and is no longer maintained because it was supposed to be merged into WTP as core feature and its not done yet.

Docs JSF integrated with eclipse

I am using Eclipse Mars and my application server is Tomcat. I have an .xhtml opened with Web Page Editor
When ever I hover over a tag,e.g. f:selectItem, I just see:
Element : f:selectItem
I'd like to see the documentation about the tag, e.g:
The SelectItem tag adds a child UISelectItem component to the component associated with the enclosing tag. In the HTML renderkit, this creates a single element. It can be used with any of the select tags in the JSF HTML tag library. The body content of this tag must be empty.
JSF SelectItem Docs
Is there any new way I can configure the eclipse to do show the javadocs in tag description?

Selenium IDE - Inserting New Command

In Selenium IDE, while inserting New Command, do I have specify details for CSS and XPath for every link or button I select?
Please help me understand how I can insert commands manually in Selenium IDE using FireBug.
Short Answer:
No.
Long Answer:
No, you don't need to "just" specify a CSS or Xpath selector. You have other options like
Identifier
ID
Name
Link text

Simple HTML dom, getting xpath of found element

I was wondering if there is a way to get xpath of an element found using simple HTML DOM? Or something like CSS path?
I'm using Selenium with Simple HTML DOM to scan a page's form and submit it, however sometimes submit button does not have a name, class or ID, so xpath or CSS selector are really my only choice, could anyone suggest a solution?

Spring Form, commandName and autocomplete="off"

I want to have the autocomplete="off" attribute on a form. I need it on the form because Firefox ignores it on the individual input elements.
The spring form tag does not support autocomplete and barfs if I try to add it.
If I don't use the spring form I am unable to set the commandName attribute.
Can anyone think of a way to get both autocomplete and commandName working together?
Cheers,
Peter
The spring form:input and form:password tags do support autocomplete. And they work just fine.
Here is the Spring form tld reference.
You have at least 3 choices:
extend the original form tag by your own implementation
use the bind tag instead of the form tag, then you can write the html form tag like you wast: see http://jroller.com/habuma/entry/spring_form_tags
add the attribute by java script. for example the dojo framework willl help you