2gis / Winium.Desktop

Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.
Mozilla Public License 2.0
402 stars 140 forks source link

Winium WebDriver - Compatible with Selenium 3.0.0 (Nuget) #173

Open muruga85 opened 7 years ago

muruga85 commented 7 years ago

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

mythsunwind commented 7 years ago

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.

rsvonddy commented 6 years ago

@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;
    }
}
cdos commented 6 years ago

Can we update this library to support selenium 3.11.0?

NuGet states it only supports 2.48.0.

danielthon commented 6 years ago

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)

orihomie commented 6 years ago

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

michelleXIE2014 commented 5 years ago

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

orihomie commented 5 years ago

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

jgkahua commented 5 years ago

@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?

orihomie commented 5 years ago

@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

anileapencylon commented 5 years ago

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 commented 5 years ago

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);
        }
    }
suseelagomathi commented 4 years ago

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 commented 4 years ago

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

bideee commented 2 years ago

=Do we have any updates on this maybe?