• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    operadriver session not created error

    Opera for Windows
    operadriver
    1
    1
    335
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • krblaker
      krblaker last edited by

      I am using Selenium to perform some automated tests of a web service, on Opera.

      I've recently upgraded my local Opera to 80.0.4170.72. I am using operadriver 94.0.4606.61.

      My instantiation looks like this in C#):

         string operaExeLocation = 
              Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + 
              @"\AppData\Local\Programs\Opera\80.0.4170.72\opera.exe";
              
        OperaDriverService service = OperaDriverService.CreateDefaultService(@"C:\Opera\", 
           "operadriver.exe");
        
        var operaOptions = new OperaOptions
             {
                  BinaryLocation = operaExeLocation,
                  LeaveBrowserRunning = false
             };
       operaOptions.AddArgument("test-type");
       operaOptions.AddExcludedArgument("enable-automation"); 
       operaOptions.AddAdditionalCapability("useAutomationExtension", false); 
      
       IWebDriver driver= new OperaDriver(service, operaOptions);
      

      This code worked with the old version of operadriver (of course the location of the opera.exe was at the older version folder.

      Any idea how to get this to create a function. Is there something wrong with my options choices? If so, please direct me to documentation on available options (I could not find it)

      Reply Quote 0
        1 Reply Last reply
      • Locked by  leocg leocg 
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-2025