-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
Description
Meta
OS:
Windows 10
Selenium Version:
3.0.1
Browser:
Firefox 50
Language:
C# (dotnet)
Problem
I can't add firefox web-extension (https://developer.mozilla.org/en/Add-ons/WebExtensions) for Firefox Driver.
The extension is signed by AMO.
Code:
var profile = new FirefoxProfile();
profile.AddExtension("MyExtension.xpi");
options.Profile = profile;
var firefoxDriver = new FirefoxDriver(options);
Error:
Could not find file 'C:\Users\TestUser\AppData\Local\Temp\anonymous.9da76164678e4f169142c80ccccebc4c.webdriver-profile.staging\MyExtension.xpi\install.rdf'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Threading.CompressedStack.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at OpenQA.Selenium.Firefox.FirefoxExtension.ReadIdFromInstallRdf(String root)
PS
Firefox web-extension don't use update\install rdf file for updating\installing.
cowlicks and hheexx