I have to test .net application in watir. I have Written the Script of the Login form but while Running the Script it shows me the Error as
" Unable to locate the object,using id and UserLogin_LoginImageButton "
I Really be thankfully if somebody can help me
The ID you are trying to use to click the button doesnt match the ID of the page
check the page source to see what the Login button is called, is it's ID "UserLogin_LoginImageButton" ?
it also sounds like you need to practice on some very simple pages and examples to understand how Watir works
and My Blog
In the Html Source it is the Same id what i am mentioned But still it gives tht error
why dont know
Ya i am new to Watir
Have PM'd you
my problem has solved
I think it might be nice to share the solution with others on the forum.
Hi, is this a general forum for watir? if so, i would also like to post my query here.
Anybody knows how to get a static text (and a dynamic word after it) on a web page?
I find is so hard to get a text on a webpage [img]/images/graemlins/frown.gif[/img]
Im not sure how to get Watir on the main forums page but to answer your question...
set a variable and use the .text method.
$textonpage = $ie.text_field(:id,"field").text
I answered your question on your other thread [img]/images/graemlins/smile.gif[/img] also see here