Skip to content
This repository has been archived by the owner. It is now read-only.

Cannot create FirefoxDriver with C# binding under Mono #3804

Open
lukeis opened this issue Mar 3, 2016 · 11 comments

Comments

@lukeis
Copy link
Member

commented Mar 3, 2016

Originally reported on Google Code with ID 3804

What steps will reproduce the problem?
1.  Attempt to construct a FirefoxDriver using .Net bindings under mono

CODE:
IWebDriver Driver = new FirefoxDriver();

EXPECTED:
Firefox is booted under Selenium control

ACTUAL:
But I get an exception.

EXCEPTION:
System.ArgumentException: Path is empty
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename
unknown>:0 
  at Ionic.Zip.ZipEntry.InternalExtract (System.String baseDir, System.IO.Stream outstream,
System.String password) [0x00000] in <filename unknown>:0 

NOTE:
This code executes fine under Windows.

Selenium version: .NET 4.0 Selenium 2.21
OS: Mac OS X Lion 10.7.3
Browser: Firefox
Browser version: 12 (though any will reproduce)

Reported by danc@zoosk.com on 2012-04-25 22:49:25

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

This is due to a bug in the DotNetZip library, which hard-codes backslashes into its
path information. We'll try to get a fix placed within that library's source. Until
then, you're out of luck.

Reported by james.h.evans.jr on 2012-04-27 18:00:59

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

Reported by david.burns@theautomatedtester.co.uk on 2012-04-29 18:35:47

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

Reported by james.h.evans.jr on 2012-05-03 17:26:18

  • Status changed: Accepted
@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

Reported by barancev on 2012-05-03 18:31:48

  • Labels added: Component-WebDriver, Lang-CSharp
@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

The bug in DotNetZip can be tracked at http://dotnetzip.codeplex.com/workitem/14154

Reported by james.h.evans.jr on 2012-05-31 23:19:18

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016


Any news regarding this issue?  (DotNetZip bug #14154 was postponed)

Thanks,
Alex

Reported by alex.rotaru@altom.ro on 2013-06-11 14:12:30

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

I would like to use FirefoxDriver with C# and Mono... still no way to do this?

Thanks,
Gabor

Reported by hosszu.gabor90 on 2013-09-21 14:53:50

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

Using iomap got me around this 
http://mono-project.com/IOMap

Reported by aa@geni.us on 2013-11-26 01:13:59

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

for mac use below as per @alfredo suggestion. I also faced the same. After below works
great

export MONO_IOMAP=all

Reported by tarunlalwani on 2014-01-06 10:28:03

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

I have tried simply entering "export MONO_IOMAP=all" into my console and hitting enter
but nothing has changed. I still have the issue

 Am I doing it wrong?

Thank you!

Reported by tyler.lindell on 2015-04-02 03:41:55

@lukeis

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 17:44:49

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant
You can’t perform that action at this time.