I just downloaded Watir to try it out, but I am facing a big issue.  I
already faced this with Quick Test Professional, and we ended up
having to write a Web Extensibility for QTP in order to recognize the
UI controls.

at our organization we created our own custom ui controls, they are
basically an input field for example, encapsulated in a lot of html,
and javascript methods to interact with it. (see partial code below.)

So the problem is, how would you ask watir to fill in this form? I
tried a basic test with the WatirRecorder and it didnt work.

<gMed:Control type="TextBox" id="txtUserName" visible="true"
acceptButton="" dataField="true" enabled="true"  allowEnter="true"
mandatory="true" onpropertychange="__TextBoxOnpropertychange();"
text="" data="" propertyName="UserName" dataName="" readOnly=""
changed="false" maxLength="30" textMode="SingleLine"><table border="0"
cellpadding="0" cellspacing="0" class="TextBox" style="WIDTH:100%;
HEIGHT:20px;DISPLAY: inline; BORDER-COLLAPSE: collapse;">  <tr
id="txtUserName_Row" class="TextBoxNoFocus" style="" >      <td
width="100%" height="100%"><input type="text" id="txtUserName_TextBox"
style="WIDTH:100%; TEXT-ALIGN:left;" maxLength="30"
class="TextBoxBorderLessNoFocus" onfocus="__AutoTabKeyReset();
__TextBoxOnFocus('txtUserName');" onblur="__TextBoxOnBlur
('txtUserName');" onkeyup="if (this.valid) __AutoTab(); else
__AutoTabKeyUp();__TextBoxKeyUp('txtUserName');"
onKeyDown="__AutoTabKeyDown();return __TextBoxKeyDown('txtUserName');"
value="" onchange="__TextBoxBuild('txtUserName');"
onmouseup="__TextBoxMouseUp('txtUserName');"
onselect="__TextBoxSetSelection('txtUserName');"
onpropertychange="__TextBoxInnerOnpropertychange();" /></td><td
id="txtUserNameDropDown" style="display: none;" visible=""
class="TextBoxDropDownButton" valign="top" enabled="true" onclick="if
(this.enabled.toString()=='true'){__ButtonClick
('txtUserNameDropDown');}"></td><td id="txtUserNameAdd"
class="TextBoxAddButton" valign="top" style="display: none;"
visible="" enabled="true" onclick="if(this.enabled.toString()=='true')
{__ButtonClick('txtUserNameAdd');}"></td><td id="txtUserNameRemove"
class="TextBoxRemoveButtonDisabled" style="display: none;" visible=""
valign="top" enabled="" onclick="if(this.enabled.toString()=='true')
{__ButtonClick('txtUserNameRemove');}"></td><td id="txtUserNameSearch"
class="TextBoxSearchButton" valign="top" style="display: none;"
visible="" enabled="true" onclick="if(this.enabled.toString()=='true')
{__ButtonClick('txtUserNameSearch');}"></td><td id="txtUserNameMore"
class="TextBoxMoreButton" valign="top" style="display: none;"
visible="" enabled="true" onclick="if(this.enabled.toString()=='true')
{__ButtonClick('txtUserNameMore');}"></td></tr> <tr>            <td
id="txtUserName_ErrorSpan" class="TextBoxError">                </td>   </tr></
table><script language="javascript">
document.getElementById('txtUserName').OnFocus =
document.getElementById('txtUserName_TextBox').focus;
document.getElementById('txtUserName').SetFocus = SelectControlAndTab;
document.getElementById('txtUserName').SetCursorAtEnd =
__TextBoxSetCursorAtEndNoId;
</script></gMed:Control>




Thank ypu!!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to