angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Headless and GetCurrentUrl non angular timeout #5154

Open mr-mateus opened 5 years ago

mr-mateus commented 5 years ago

Hi, I'm trying to test a external link with a non angular page, and get the url, but I always get a timeout error. Bug report


1) HomePage Ações dos cards Rac - Card deve redirecionar para a página de help

Executed 1 of 8 specs (1 FAILED) (7 SKIPPED) in 34 secs. [14:04:20] I/launcher - 0 instance(s) of WebDriver still running [14:04:20] I/launcher - chrome #01 failed 1 test(s) [14:04:20] I/launcher - overall: 1 failed spec(s) [14:04:20] E/launcher - Process exited with error code 1



- Steps to reproduce the bug
You only run the test
ZeekoZhu commented 5 years ago

Try disable waitAngular

mr-mateus commented 5 years ago

@ZeekoZhu I just tried, but didn't work

golavr commented 4 years ago

year after and no answer? @mr-mateus i was able to workaround it with

const teste = await browser.driver.getCurrentUrl();

don't know why calling the driver directly make it works

fatpandaria commented 3 years ago

year after and no answer? @mr-mateus i was able to workaround it with

const teste = await browser.driver.getCurrentUrl();

don't know why calling the driver directly make it works

OMG,you saved my day! thanks