cancel
Showing results for 
Search instead for 
Did you mean: 

Exception when writing to password input field

__
Level 4
While intensively testing a process, about 1/7 times an exception gets thrown: Internal : Failed to perform step 1 in Write Stage 'Write Password' on page 'Login' - Unable to cast COM object of type 'mshtml.HTMLDocumentClass' to interface type 'mshtml.IHTMLDocument3'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3050F485-98B5-11CF-BB82-00AA00BDCE0B}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). This exception occurs right after writing to a username field (which succeeds 100% of the time). The password field is spied and is identified using the ID HTML-attribute. I tried to set the Element Type to HTML Edit and HTML Element, both give the same exception. Changing Data Type from Text to Password also gives the same exception. I tried to remove the element and spy it again but the same exception comes back (still about 1/7 times). Does anyone know what's wrong here?
2 REPLIES 2

John__Carter
Staff
Staff
Hi Jordi - try introducing a small pause, to make BP work at a more 'human-like' speed. There might be some underlying functionality in the app that isn't being given enough time to complete. Also, some apps don't respond to the Write stage because they are expecting keyboard input - if that's the case try sendkeys, again, to make BP more 'human'.

__
Level 4
The solution was to update BP to the latest version. Didn't get the error anymore 🙂