Skip to content
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

Protractor.Net doesn't work with Angular 14? #94

Open
arnonax-tr opened this issue Aug 10, 2022 · 0 comments
Open

Protractor.Net doesn't work with Angular 14? #94

arnonax-tr opened this issue Aug 10, 2022 · 0 comments

Comments

@arnonax-tr
Copy link

I took a very simple demo Angular 14 app (from a short course I took), and tried to see if I can use Protractor.Net with it. However, the following simple code fails with the below exception. There's so little going on here that I can't see how this library can work for anyone using Angular 14. Am I missing something?

This is code:

var chromeDriver = new ChromeDriver();
var driver = new NgWebDriver(chromeDriver);
driver.Url = "http://localhost:4200/home";

And this is the exception:

OpenQA.Selenium.WebDriverTimeoutException: script timeout
  (Session info: chrome=104.0.5112.81)
   at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.WebDriver.ExecuteScriptCommand(String script, String commandName, Object[] args)
   at OpenQA.Selenium.WebDriver.ExecuteAsyncScript(String script, Object[] args)
   at Protractor.NgWebDriver.ExecuteAsyncScript(String script, Object[] args)
   at Protractor.NgWebDriver.WaitForAngular()
   at Protractor.NgWebDriver.FindElement(By by)
   at ConsoleApp1.Program.Main(String[] args) in C:\temp\ConsoleApp1\ConsoleApp1\Program.cs:line 21

It happens consistently (Chrome and ChromeDriver are version 104).

Note that I got exactly the same exception in a much more complex, real application on which I tried it first, and got this small repro after thorough investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant