Page 1 of 1

--include flag

Posted: Mon Mar 15, 2021 2:46 pm
by Hakim

Hi,
I have one concern.
I wonder if it is possible to include many files while running testing.
I mean this:

siesta-5.5.1-standard/bin/webdriver url --include file1 file2 --browser=firefox --headless

The important part here is

--include file1 file2

.
chaining --include file1 --include file2 does not work.
Any workaround on that?


Re: --include flag

Posted: Mon Mar 15, 2021 2:55 pm
by mats

It's a regex so you can do --include "file1|file2"

Docs explain it all here: https://www.bryntum.com/docs/siesta/#!/guide/siesta_launchers


Re: --include flag

Posted: Mon Mar 15, 2021 3:07 pm
by Hakim

Thanks.
I have tried that pipe | before, but I get back this error bash: file2: command not found


Re: --include flag

Posted: Mon Mar 15, 2021 3:19 pm
by mats

You need quotes around the arg:

--include "file1|file2"

Re: --include flag

Posted: Mon Mar 15, 2021 3:29 pm
by Hakim

Oh yeah. Perfect.
That solves the issue
Thanks.