Unable to capture the contents of the HtmlText Field
I am testing a IE6.0 enabled web application on Silktest 6.5. I have enabled the IE DOM eXtension for IE6.0 . The silk is able to identify and fill all the html text field on the web page except the one HTml Text field ,which is identified and filled by silk correctly but the web browser is not able to pick the contents of that text field.
Re: Unable to capture the contents of the HtmlText Field
Okay...I think what you're saying is that the web page doesn't respond to text being put in that field? I'm assuming that there's an OnChange call?
SilkTest's SetText method doesn't seem to fire the OnChange call, making me suspicious of how SilkTest's non-human-like interactions.
You could do something like this:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[-] winclass ApeTextField : HtmlTextField
[ ] setting DontInheritClassTag = TRUE
[+] void FlingFeces ()
[+] void Blur ()
[ ] TypeKeys ("<Tab>"
[-] void SelectAll ()
[ ] SetFocus ()
[ ] TypeKeys ("<Ctrl-Home>"
[ ] TypeKeys ("<Ctrl-Shift-End>"
[-] void ClearText ()
[ ] SelectAll ()
[ ] TypeKeys ("<Delete>"
[-] void SetText (STRING sText, BOOLEAN bLoseFocus optional)
[ ] // if it's not passed in
[-] if (bLoseFocus == NULL)
[ ] // set it to true
[ ] bLoseFocus = TRUE
[ ] // clear out the existing text
[ ] ClearText ()
[ ] // type what we need in there
[ ] TypeKeys (sText)
[ ] // if we're supposed to lose focus
[-] if (bLoseFocus)
[ ] // call the blur method
[ ] Blur ()
[ ] </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The above class, as you may notice, only uses primitives to deal with the HtmlTextField object, thus the name.
Change the class of the object in your declarations to the above class and try it.
A concerned Borland customer, a fly in the ointment, a wrench in the works.