Winium.Desktop icon indicating copy to clipboard operation
Winium.Desktop copied to clipboard

Winium WebDriver - Compatible with Selenium 3.0.0 (Nuget)

Open muruga85 opened this issue 6 years ago • 14 comments

Can we have Winium Webdriver in Nuget compatible with Selenium >=3.0.0

muruga85 avatar Jul 21 '17 09:07 muruga85

I opened a pull request with selenium 3 support in April, but nobody reacted on it. See #164

You can check the branch out and build it yourself. I tested it with selenium 3.3 and 3.4.

mythsunwind avatar Sep 14 '17 13:09 mythsunwind

@mythsunwind - I'm new working with Winium, have been working with Selenium (Python and Java) for a year or so and we're using Selenium 3.4. I'm seeing a lot of strange behavior where the driver (windriver below) is null right after setting it which is killing the test (@ windriver = new WiniumDriver(service, options);). Is this the behavior that I would be seeing if compatibility was the issue? My java code is below. I have been googling for days and trying different tweaks and I'm at my wit's end.

public class Winium {
    public static WiniumDriver windriver;
    public static WiniumDriverService service;
    public static DesktopOptions options;

    public WiniumDriver setUpEnvironment() throws IOException {
        String winiumDriverPath = "C:\\[filepath to driver]\\Winium.Desktop.Driver.exe";
        File driverpath = new File(winiumDriverPath);
        service = new WiniumDriverService.Builder().usingDriverExecutable(driverpath).usingPort(9999).withVerbose(true).withSilent(false).buildDesktopService();
        options = new DesktopOptions(); //Instantiate Winium DesktopOptions
        options.setDebugConnectToRunningApp(true); //Setting to true to use the existing Chrome browser opened in the Step file. 
        service.start(); //Build and start a Winium Driver service.
        windriver = new WiniumDriver(service, options);
        return windriver;
    }
}

rsvonddy avatar Sep 28 '17 18:09 rsvonddy

Can we update this library to support selenium 3.11.0?

NuGet states it only supports 2.48.0.

cdos avatar Mar 23 '18 18:03 cdos

I'm still waiting for it

The problem is that the library Winium.WebDriver from NuGet is at the first release version of Winium (0.1.1) while the driver itself is at the latest (1.6.0)

danielthon avatar Aug 01 '18 16:08 danielthon

Hi, any news on updating Selenium dependency? Like for 3.12 or higher

orihomie avatar Sep 05 '18 11:09 orihomie

The same here. Have to do some work-around.

michelleXIE2014 avatar Apr 02 '19 18:04 michelleXIE2014

Hey, check out my branch- I've updated it about a half of year ago

orihomie avatar Apr 05 '19 04:04 orihomie

@orihomie Just throwing this out there, but do we know about latest Winium releases, seems the latest commits were in 2016. You mentioned you updated your packages, can we just pull it down to test?

jgkahua avatar Apr 22 '19 15:04 jgkahua

@orihomie Just throwing this out there, but do we know about latest Winium releases, seems the latest commits were in 2016. You mentioned you updated your packages, can we just pull it down to test?

Hi, sure

orihomie avatar Apr 23 '19 08:04 orihomie

Hi, I am running few test using Winium . For some reason after running the test my application (.exe) that I am using crashes. So I can't continue the test. Could someone provide some ideas please. Thanks

anileapencylon avatar Jul 25 '19 08:07 anileapencylon

Forgot to mention I am also using Extent Reports in Visual studio. I am using the below: [OneTimeSetUp] public void BeforeClass() { try { //To create report directory and add HTML report into it

            extent = new ExtentReports();
            var dir = AppDomain.CurrentDomain.BaseDirectory.Replace("\\bin\\Debug", "");
            DirectoryInfo di = Directory.CreateDirectory(dir + "\\Test_Execution_Reports");
            var htmlReporter = new ExtentHtmlReporter(dir + "\\Test_Execution_Reports" + "\\Automation_Report" + ".html");
            extent.AddSystemInfo("Application", "CXPro 1.01B351");
            extent.AddSystemInfo("User Name", "Product Development");
            extent.AttachReporter(htmlReporter);
        }
        catch (Exception e)
        {
            throw (e);
        }

        try
        {
            var service = WiniumDriverService.CreateDesktopService(@"C:\Users\anil.Pallithekethil\Downloads\Winium.Desktop.Driver");
            var options = new DesktopOptions { ApplicationPath = @"C:\CXpro101324\Port32Ex.exe" };
            driver = new WiniumDriver(service, options);

            Thread.Sleep(5000);

           // driver.FindElementByName("OK").Click();
        }
        catch (Exception e)
        {
            throw (e);
        }
    }

anileapencylon avatar Jul 25 '19 08:07 anileapencylon

Hi Team, can you please help me to get Winium.desktop driver for Selenium 3.141.0( Selenium with c#)

Unable to resolve dependencies. 'Selenium.WebDriver 3.141.0' is not compatible with 'Winium.WebDriver 0.1.1 constraint: Selenium.WebDriver (= 2.48.0)'.

suseelagomathi avatar Jan 27 '20 15:01 suseelagomathi

I'm still waiting for it

The problem is that the library Winium.WebDriver from NuGet is at the first release version of Winium (0.1.1) while the driver itself is at the latest (1.6.0)

Any update Version 1.6.0. Upgrading my framework to 3.141. Winium is not working. can you please help

suseelagomathi avatar Jan 27 '20 15:01 suseelagomathi

=Do we have any updates on this maybe?

bideee avatar Aug 11 '22 22:08 bideee