cancel
Showing results for 
Search instead for 
Did you mean: 

When trying Click Action I get message Permission denied to access property in web testing on Firefo

SOLVED
Felixg
Occasional Contributor

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Felixg
Occasional Contributor

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

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

View solution in original post

8 REPLIES 8
Marsha_R
Community Hero

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

Felixg
Occasional Contributor

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

Hi Marsha_R,

Yes I applied the entire recommanded setup, and after reading your message, I spent time to check this setup one more time and it's all compliant

tristaanogre
Community Hero

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

So, as I understand it, you get this window first window with the "Permission denied" message... you then try to click on another window that is overlapped by that first and get the second error.

 

This is expected.  Think about it. TestComplete is attempting to perform the same actions that a human is performing.  So, if an object to be clicked on is behind some other modal window or component, you can't click on it.  That's what the second message is informing you.

So, what you need to do is figure out why you're getting the first error.  Does that error message come up if you manually go through the actions without TestComplete running?  If so, then the problem is not in TestComplete but in your Web Application and you will need to resolve that.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Felixg
Occasional Contributor

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

Hi tristaanogre,

No, when the instruction with the "click" method call is performed, then the overlapped window appears.

The error message does not come up when repeating these actions manually.

 

As I said, the issue comes up only with Firefox (so it is not an application issue), but I have just found out something interesting : the issue comes up with Quantum ESR version of Firefox. I tried with Firefox Quantum ESR 60.1.0 and 60.2.0 : issue comes up. Trying with Firefox ESR 52.9.0 : issue does not come up.

 

So, I temporaly downgrade my Firefox version, but it is not a viable solution.

I think there is something changing in Firefox Quantum, that causes this issue when TestComplete try to interact with the elements composing the web page, but I can not go forward

 

 

tristaanogre
Community Hero

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

PErhaps you answered this already, but when dealing with Firefox, you need to be sure you have the proper patches applied.  There have been recent patches released by SmartBear for the latest versions of Firefox. 

https://support.smartbear.com/downloads/testcomplete/firefox-patches/

 

Have you verified that you have these applied?

 

If so... at this point, this sounds like something to raise as a question to the SmartBear customer service team.  What it sounds like, though, is you have the FireFox patch applied for ESR 52.9 but perhaps not the latest patch so I'd start checking there.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Felixg
Occasional Contributor

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

Yes I have applied the last patch for TestComple 12.50 for Firefox 60.2 support

I replaced the dll and xml as it is written in the installation guide provided with the archive, and when I restarted TestComplete, it asked me if I wanted to download and install update for Firefox 62 support, so I performed this update.

After that, I tried to do a "Check for Updates" to be sure that my software is completely up to date and it was the case

 

So I will try to contact the smartbear customer service as you suggest

 

Thanks for spending time trying to help me

Felixg
Occasional Contributor

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

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

View solution in original post

Felixg
Occasional Contributor

Re: When trying Click Action I get message Permission denied to access property in web testing on Fi

Additional information : after many experimentations with SmartBear Support Team, we find out that TestComplete 12.60 solves this issue, but only if you set the Firefox property browser.tabs.remote.autostart to true (enter about:config in URL address bar to reach the configuration menu).

 

Be careful, currently the documentation is still not up to date, and moreover, it works only with TC 12.60, not with earlier versions.

 

Hope it can help someone !

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors