selenium-google-code-issue-archive
selenium-google-code-issue-archive copied to clipboard
**Tests not running in Firefox** Web Driver (Firefox) throwing : Caused by: org.openqa.selenium.WebDriverException: Permission denied to access property '_wrapped'
Originally reported on Google Code with ID 7931
What steps will reproduce the problem?
1. Download Firefox 32 or 32.0.1
2. Run Selenium tests written in Java in Firefox 32.0.1 using Firefox WebDriver. Basically
use the latest JAR file provided by Selenium
What is the expected output? What do you see instead?
Page loads (using driver.get method) but when you click on an element following StackTrace
is observed (thrown by org.openqa.selenium.WebDriverException):
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, browserName=firefox,
rotatable=false, locationContextEnabled=true, version=32.0.1, cssSelectorsEnabled=true,
databaseEnabled=true, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true,
applicationCacheEnabled=true, takesScreenshot=true}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:377)
at org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(RemoteWebDriver.java:445)
at org.openqa.selenium.By$ByCssSelector.findElements(By.java:436)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:340)
--ignore below: related to our Java file that called findElements() method in Selenium
jar file
at com.walmart.qa.page.GlobalNavComponent.isSubMenuCorrect(GlobalNavComponent.java:241)
at com.walmart.qa.page.GlobalNavComponent.isDeptDropdownCorrect(GlobalNavComponent.java:178)
at com.walmart.qa.AllDepartmentsTest.testAllDepartments(AllDepartmentsTest.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: org.openqa.selenium.WebDriverException: Permission denied to access property
'_wrapped'
Build info: version: '2.43.1', revision: '5163bceef1bc36d43f3dc0b83c88998168a363a0',
time: '2014-09-10 09:43:55'
Selenium version: 2.42, 2.43, 2.43.1
OS: MAC/Windows
Browser: Firefox
Browser version: Firefox 32, Firefox 32.0.1
Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!
This error has been happening since Selenium 2.42. Everything works on 2.41 if Firefox
31 is used. If using Selenium 2.41 is used, same error is observed on Firefox 30 and
below. Only Firefox 31 is working at the moment.
Reported by [email protected]
on 2014-09-18 15:49:37
Workaround that we have is to use Firefox 31 on Selenium 2.41. Even using Firefox 30
and below on Selenium 2.41 we have the same error.
Reported by [email protected]
on 2014-09-18 15:55:32
This is causing the error:
driver.findElements(By.cssSelector(css));
Line is located on GlobalNavComponent.java:241
Reported by [email protected]
on 2014-09-18 15:57:21
Reported by barancev
on 2014-09-21 16:23:06
- Labels added: Browser-Firefox
Please provide a complete executable scenario and a sample page to reproduce the issue.
Reported by barancev
on 2014-09-21 16:31:28
-
Status changed:
NeedsClarification
Hi, I am working on the sample page. Will post it when I am done.
Thanks.
Reported by [email protected]
on 2014-09-25 16:00:08
Hi, Please take a look at the below test. Please import selenium-server-standalone-2.43.1.jar
(latest) file.
Test passes using Selenium Server 2.41 jar file on Firefox 31. But it fails using on
Firefox 32.0.3 on Selenium 2.43.1 with below stacktrace. This is on both Windows and
MAC:
Exception in thread "main" org.openqa.selenium.WebDriverException: Permission denied
to access property '_wrapped'
Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:33'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true,
version=32.0.3, platform=MAC, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true,
locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true,
cssSelectorsEnabled=true}]
Session ID: e3755673-d0a3-da48-94b5-a394b9d6d58a
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:377)
at org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(RemoteWebDriver.java:445)
at org.openqa.selenium.By$ByCssSelector.findElements(By.java:437)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:340)
at selenium.test.SeleniumTest.main(SeleniumTest.java:21)
Caused by: org.openqa.selenium.WebDriverException: Permission denied to access property
'_wrapped'
Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:33'
Reported by [email protected]
on 2014-09-25 17:49:40
- _Attachment: [SeleniumTest.java](https://storage.googleapis.com/google-code-attachments/selenium/issue-7931/comment-6/SeleniumTest.java)_
Folks, do we have any updates on this? The test case above is still producing the same
error. (I also updated the selenium jar file in case there were any updates to that).
Reported by goelm02
on 2014-09-29 16:48:24
I can confirm that firefox 32.0.3 and selenium-webdriver (2.42.0) (the ruby gem) don't
work properly.
Reported by [email protected]
on 2014-09-30 21:05:43
Folks it's been a month. Any fix in the pipeline for all the Firefox 32 issues that
users reported here?
Reported by [email protected]
on 2014-10-15 12:20:26
Even am getting the above error on running the below code, any solutions for this?
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
public class Walmart {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("http://www.walmart.com");
WebElement rootNode=driver.findElement(By.xpath("//*[@id='top']/div/div/div/div/div[1]/nav/ul/li[2]/div/a"));
Actions act = new Actions(driver);
act.moveToElement(rootNode).build().perform();
}
}
Reported by hanamant.halli
on 2014-11-26 10:04:23
Hi Guys,
Even i faced the same problem with Firefox 34.0.5 and selenium 2.44.0. However i found
a workaround. Below is the same.
Before the required operation you want to perform click on any button/element on the
page by providing a try catch block and then write the required code to execute. It
executes properly.
So as i have seen this happens for the first element operation performed and works
fine for rest of the elements.
Hope this works fine.
Good Luck!!!
Reported by sriharsha.b.88
on 2014-12-18 13:34:18
Hi your workaround solution works fine...
Reported by raghuraam963
on 2015-01-09 10:32:32
Hey guys,
It's the first time I'm posting in the forum... I was having the same issue with my
Selenium WebDriver test. When trying to locate a WebElement on the page, I was getting
this error:
org.openqa.selenium.WebDriverException: Permission denied to access property '_wrapped
So followed the workaround someone posted and upgraded my Firefox from version 30 to
31 and it seems to work. Firefox 31 works with both Selenium version 2.41 and 2.45
for me.
Can someone please explain to me what was the other workaround about using the try
catch block? It didn't seem to work for me before when I had Firefox 30 running. Can
someone please provide an example code? Thank you very much.
Reported by Ms.Yalitan
on 2015-03-28 06:21:11
Reported by luke.semerau
on 2015-09-17 17:47:05
- Labels added: Restrict-AddIssueComment-Commit