How do you write a reusable script that uses to run tests on chrome and firefox
This question can have many explanations, but i would suggest the following:
- Use a framework: Segregate the pages (One package), configurations (one package), your test scripts which would make the entire project generic.
- You can use run it on any platform .
If you are simply looking to run a script on chrome and chrome: FF doesn’t need any extra configuration, For chrome you just have to download the exe file and add the setproperty method.
Hope that helps out 🙂