The webdriver may fail due to version of Chrome being greater than version of chrome driver bundled with Siesta. It should show this error message in this case however:
nickolay@frontier:~/workspace/Bryntum/siesta$ bin/webdriver lh/siesta/examples/browser
[ERROR] Setup failed: Error: Can't create first page, runner: a Siesta.Launcher.Runner.WebDriverNodeJS, exception: SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 84
In such case you can download a matching ChromeDriver version from here: https://chromedriver.chromium.org/downloads
and place the binary file into /siesta/bin/binary/chromedriver/__you_arch__
As about Puppeteer - this is very strange, it works fine on my machine.
Perhaps you've ran npm install after unpacking Siesta archive? No need to do that.
Re: tests launchers with siesta 5.5.1
Posted: Tue Oct 13, 2020 5:08 pm
by Hakim
Okay, thanks for the reply.
I had to remove node from my machine completely before it works About Webdriver
I downloaded the binary and replaced the old driver but I had to realize that if my current version of chrome is greater or less than 84, webdriver won't still work on chrome. Here an extra work is needed to downgrade your chrome version
Re: tests launchers with siesta 5.5.1
Posted: Tue Oct 13, 2020 5:18 pm
by pmiklashevich
Is your issue solved?
Re: tests launchers with siesta 5.5.1
Posted: Wed Oct 14, 2020 10:04 am
by Hakim
Hi pmiklashevich,
Not entirely. Now it is about the coverage report:
with this cmd :
siesta-5.5.1-standard/bin/webdriver https://localhost:1841/myApp/test/Siesta/test.html --include UT --coverage-report-format=HTML --coverage-report-dir /myApp/test/Siesta/report201014
,
I get this result
in which there are no percentages. Note: just want to remind you the current version of extjs being used in case of version compatibility:
ext-7.3.0
. Not sure about what's going on yet
Do I need an extra flag in the cmd above?
thanks
Re: tests launchers with siesta 5.5.1
Posted: Wed Oct 14, 2020 2:27 pm
by nickolay
I had to remove node from my machine completely before it works
This is strange - Siesta does not use the nodejs from the OS, it uses the nodejs which is bundled into the package.
I downloaded the binary and replaced the old driver but I had to realize that if my current version of chrome is greater or less than 84, webdriver won't still work on chrome. Here an extra work is needed to downgrade your chrome version
Well, yes, the versions of Chrome and ChromeDriver need to match, thats how it works. In general you usually need to download new ChromeDriver binary after every Chrome upgrade.