When trying Click Action I get message Permission denied to access property in web testing on Firefo
Hi Everyone,
I have got a problem with the error message quoted in the title of this topic, I went through the community and found 3 topics dealing with a similar message but all solutions proposed did not solve my issue.
So, my issue is following : On Web-testing, when I perform a "Click" action on an object, I got an overlapped window with this message :
{ "mode": "callers", "name": "Error", "message": "Permission denied to access property \"firstChild\"", "stack": [], "incomplete": true }
You can found a screenshot of this window in attachement.
It causes a error message in log that is :
There was an attempt to perform an action at point (16, 16) which is transparent or out of the window bounds.
Precisions :
- I targeted the "Click" action by running script in step by step debug mode.
- The object that I try to call click action is found due to "FindChild" method and I can see it and check its properties in object browser. So, by setting a breakpoint on the click action line in script, I checked that during script running, all properties like "Exists", "Enabled", "Visible" and "VisibleOnScreen" are True when I try to perform the click action.
- I got this error only in Firefox, my script is running well in Chrome, Edge, and Internet Explorer.
- I run TestComplete as Administrator
More information about my configuration :
- OS : Windows 10
- TestComplete 12.50.4142.7 x64
- Firefox ESR 60.2.0.6820 (64bits)
- Scripting language : VBScript
Can someone help me or has any idea to go through this issue ?
Hi Everyone,
Thanks to the SmartBear support I could go through this issue, so I share here what I have done if it can help someone.
The issue should be corrected in release 12.60 of TestComplete, but you can temporary bypass this issue using the instruction :
Sys.Browser.Page("*").contentDocument.Script.execScript("window.onerror = null")
(in my case, it is VBScript code)
Note that :
- the wildcards "*" in the Page method will execute the script on the current loaded page, but you can give a more precise URL if you can, to be sure to execute the script on the page you want
- the script has to be executed on each web pages causing issue
- When calling this instruction, make sure that the page is opened, and fully loaded (see SmartBear Documentation on Wait for web pages)
I hope it could help some of you
Regards