I use gauge/taiko/javascript this month and want use browser in my pc. I try to use gauge run --env="firefox" specs/ but not work. Any sample?
How can I use gauge/taiko with other browser?
1.7k views Asked by user10640938 At
3
I use gauge/taiko/javascript this month and want use browser in my pc. I try to use gauge run --env="firefox" specs/ but not work. Any sample?
To start with did you create the environment? https://docs.gauge.org/latest/configuration.html#creating-new-environment
You should not have to use the quotes with a single environment like this
After that did you configure the project to use the new environment? What you are doing is loading variables so you must provide the project with the variables needed to interact with that environment. In addition to a browser, I also need the root address of the enrivonment and specifiy whether I am in the DEV(elopment), CERT(ification), or PROD(uction) environment.
This is then used in the DriverFactory to initialize the Driver to the proper browser
I believe that there are examples that include an example of the DriverFactory that will initialize your browser driver and allow you to use that environment.