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
Post a Comment