jarmo / RAutomation

RAutomation
MIT License
100 stars 33 forks source link

Support for masked input fields #10

Closed snscaimito closed 11 years ago

snscaimito commented 13 years ago

On .NET there is a masked input field that appears to be an edit control. With the currently version of RAutomation validation attached to the control is not trigged. Setting the 'text' of the control removes the mask, as the mask is stored as the control's text.

jarmo commented 13 years ago

Do you also have any ideas how to make it work properly?

snscaimito commented 13 years ago

Not yet.

On Mar 16, 2011, at 3:14 PM, jarmo wrote:

Do you also have any ideas how to make it work properly?

Reply to this email directly or view it on GitHub: https://github.com/jarmo/RAutomation/issues/10#comment_881946

myungs commented 13 years ago

Well we found one way around this issue was to #set_focus to the field, and then #send_keystrokes

jarmo commented 12 years ago

There is also problem with password fields (e.g. IE basic authentication window) when trying to set the password value with TextField#set. The problem is that TextField#value will retrieve an empty string regardless of the value in that field thus causing #set to get TimeoutError because it checks if entered text and value are the same. I've fixed it in here https://github.com/jarmo/RAutomation/commit/0acefa6c7a8a27ea526f6ebc486a2ba02facfd63

jarmo commented 11 years ago

@leviwilson any ideas regarding this matter?

leviwilson commented 11 years ago

@jarmo send_keys works for me (I use it in my Text accessor in my mohawk gem).

leviwilson commented 11 years ago

@jarmo also, this cucumber feature illustrates it working.

jarmo commented 11 years ago

Cool, i will close this issue then.