Reputation: 420
I am new to protractor & using Protractor-net. Getting an "Asynchronous script timeout: result not received in 0 seconds" exception when running Protractor-net scripts.
https://github.com/bbaia/protractor-net
Does this mean the parameter passing to identify angular element is wrong?
Found this solution to solve this - https://github.com/angular/protractor/issues/117
How do I achieve the same in protractor-net?
Upvotes: 3
Views: 4597
Reputation: 16201
You need to set async timeout to increase the timeout if you don't want it to be 0
and do it wherever the driver
is instantiated.
It is particularly essential due to the nature of Angular's asynchronous behavior.
[SetUp]
public void SetUp()
{
//driver = new PhantomJSDriver();
driver = new ChromeDriver();
//SetScriptTimeout is the asysn script timeout
driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(5));
}
See this
Upvotes: 6