testing if my textField exist in my webpage

0 views
Skip to first unread message

simoben

unread,
Jul 2, 2008, 5:41:24 AM7/2/08
to watij
Hello everybody.

I want to test if my textField exist in my web page but my expression
seems not function


if
(ie.frame(1).htmlElements().textField(name,"NUM_PLACEUR").exists()) {

ie.frame(1).textField(name,"NUM_CARTE_OUV").set("122");
}

When i use this expression for textField not located in a frame, it
work well.

For exemple if (ie.textField(name,"aaa").exists())
{ ie.textField(name,"aa").set("ok"); }
This one work.
But if my textField or my selectList is in the frame the if expression
does not work.
Without if, i can fill my textField. But once i want to test if the
textField exists, it doesn't work.

Some help please
Reply all
Reply to author
Forward
0 new messages