New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinAppDriver Timing Out after Delphi 11 application launched #131

Closed
taran311 opened this Issue Jan 19, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@taran311

taran311 commented Jan 19, 2017

Hello,

I have started using WinAppDriver, and found that it is perfectly capable of attaching to my application written in Delphi 5 and interacting with elements. However when using an updated version of the Application written in Delphi 2007 (Delphi 11) I encounter the following error when initialising the webdriver as an IOS Instance...

Test method Automation.Features.CustomerFeature.AddCustomer threw exception: 
OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://127.0.0.1:4723/session timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.
    at System.Net.HttpWebRequest.GetResponse()
   at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
 --- End of inner exception stack trace ---
    at OpenQA.Selenium.Appium.Service.AppiumCommandExecutor.Execute(Command commandToExecute)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Appium.iOS.IOSDriver`1..ctor(Uri remoteAddress, DesiredCapabilities desiredCapabilities)

this error is thrown on the following line
Driver = new IOSDriver<IOSElement>(new Uri("http://127.0.0.1:4723"), appCapabilities).StoreIt();

Whole method...

public static RemoteWebDriver Driver { get; set; }

        public static void Init()
        { 
            var appCapabilities = new DesiredCapabilities();
            appCapabilities.SetCapability("app", UrlHelper.GetAppPath());
            Driver = new IOSDriver<IOSElement>(new Uri("http://127.0.0.1:4723"), appCapabilities);
        }

Additional Info

  • The application does utilise WinForms
  • Written in Delphi 2007 (Delphi 11)
  • Starts up the program but doesn't attach to the program

@taran311 taran311 changed the title from WinAppDriver Timing Out Launching Delphi 11 App to WinAppDriver Timing Out after Launching Delphi 11 App Jan 20, 2017

@taran311 taran311 changed the title from WinAppDriver Timing Out after Launching Delphi 11 App to WinAppDriver Timing Out after Delphi 11 application launched Jan 20, 2017

@taran311 taran311 closed this Jan 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment