junit - How can I get the text from a simple HTML tag using Selenium RC? -


how can text simple html tag

<h2>abcdef</h2> 

using selenium rc?

i want match exact text. if use istextpresent() returns true if put selenium.istextpresent("abc").

this in html tag <h2>.

then need following

strtext = selenium.gettext("//h2")  if strtext.equals("abcdef")      system.out.println("textmatch") else      system.out.println("text mismatch") 

Comments

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -