I need to get tooltip from standard element, for example:
<input class="some_class" type="number" value="0" name="some_name"/>
I have no attributes which set tooltip on this element like "title" or maybe "alt" or something else. Browser generates tootltips by itself and it is default feature. For example, if i will set text value to this input i will get tooltip "Please enter a number" in Firefox.
Question is how to get text of this tooltip from java code using Selenium?
I guess that i need to make MouseOver event over my input and tooltip will be shown. I can do it. But i can't understand how to get text of this showing tooltip from code. What XPath expression maybe should i write to get access to this tooltip? Or maybe there is some core method for these purposes?
Here is the cssSelector for the tooltip:
I found it here, maybe it helps you: http://www.useragentman.com/blog/2012/05/17/cross-browser-styling-of-html5-forms-even-in-older-browsers/