3

I'm trying to create an automation test script using Protractor.net for an AngularJS platform, with Selenium in C#. I've created the driver using the below code.

driver = new FirefoxDriver();
Ngdriver = new NgWebDriver(driver);

And then attempted to locate and element as follows:

Ngdriver.FindElement(NgBy.Model("vm.reference")).SendKeys("Test");

However, I'm receiving an exception: Timed out waiting for async script result after 45ms.

Thanks in advance

MatthewThomas.dev
  • 1,045
  • 10
  • 24
  • Where/on which element is `ng-app` defined? Also, please show the rest of the test. Thanks. – alecxe Nov 13 '15 at 17:24

1 Answers1

4

I resolved this by using the SetScriptTimeout.

ngDriver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(10));
MatthewThomas.dev
  • 1,045
  • 10
  • 24
  • Hi, i have the same issue while running protractor script with appium, but it wasn't resolved yet ..http://stackoverflow.com/questions/37070680/timed-out-waiting-for-asynchronous-script-result-while-executing-protractor-scri – Emna Ayadi May 11 '16 at 10:41