How to read and save an html text using Selenium RC? -


in website i'm testing, create new customer. once customer created new id assigned customer, not stored form field in customer webpage rather on top page pure text (customer 601619 - name1)

i have html tag

<h1> customer 601619 - name1 </h1> 

my question how retrieve customer id using java selenium rc

thanks in advance

use following code

string str = seleniumobj.gettext("//h1"); system.out.println(str); 

the above code prints customer 601619 - name1 in console


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -