Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. FirefoxOptions firefoxOptions = new FirefoxOptions();
  2. firefoxOptions.Proxy = pro; //my proxy object
  3. firefoxOptions.AddArgument("-profile " + path); //path to the profile
  4. FirefoxDriverService ffDriverService = FirefoxDriverService.CreateDefaultService();
  5. ffDriverService.BrowserCommunicationPort = 2828;
  6. PropertiesCollection.Driver = new FirefoxDriver(ffDriverService, firefoxOptions);
  7.  
  8. 1561625708285 mozrunner::runner INFO Running command: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "-marionette" "-profile C:\Users\Usr\Desktop\fprofiles\pf1" "-foreground" "-no-remote"
  9.  
  10. "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "-marionette" "-profile C:\Users\Usr\Desktop\fprofiles\pf1" "-foreground" "-no-remote"
  11.  
  12. "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -marionette -profile C:\Users\Usr\Desktop\fprofiles\pf1 -foreground -no-remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement