How to write a IF statement to make sure the HtmlTextField (ex:Name, Address, Phone number...)exists before fill in it.
I try to use window.HtmlTextField("#no").Exists()
But it's not working.
Anyone know the solution?
Thank you, guys
Try like this
if(Browser("browsertag").HtmlTextField("#TagId").E xists()) Then
If you are actually waiting for it to load and that wait might be significant, then try this:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">// Make sure to change #5 to whatever is relevant
int catchtries = 1
// do whatever
// don't forget this:
if (catchtries < 20)
LogError("Never caught textfield"
break</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
Hi, kthotapa, Chris:
Yes, I did use....
But it's still not working....
its because of using Silktest international for double bytes webpage?
Anyway, Thanks for your helps