0

Does anyone have any experience using atata at all? Someone recommended I use it for setting up a chrome driver automatically. I'm looking for the most basic way to detect what chrome version the user has and then set up the driver according to their local installed browser version when the program runs. Any help would be appreciated. Question is in the title.

Here are the links to it:

https://github.com/atata-framework/atata-webdriversetup https://atata.io/

dutoit077
  • 25
  • 3

1 Answers1

0

According to documentation Set Up Version Corresponding to Locally Installed Browser Version section it is:

DriverSetup.AutoSetUp(BrowserNames.Chrome);
Yevgeniy Shunevych
  • 1,136
  • 6
  • 11
  • but im a bit confused, do I first have to instantiate a new chrome driver of my own? Does it configure the drivers i have in my script automatically or do I have to feed in the drivers somewhere? If not, is there a way I can manually feed specific drivers that I want configured according to the AutoSetUp Method? – dutoit077 Apr 14 '21 at 21:20
  • Please check the documentation link above. The recommended place to perform driver(s) setup is a global set up method. After `DriverSetup` actions, you can just instantiate and use a corresponding WebDriver class, like `ChromeDriver chromeDriver = new ChromeDriver();`. – Yevgeniy Shunevych Apr 15 '21 at 12:44
  • I did check the documentation, it told me to use the global setup method and yes it showed there's an instantiation of a ChromeDriver but it didn't say whether that chrome driver automatically recieves the configurations when you call DriverSetup? Also, if it does, when you use the DriverSetup does it configure all instantiated drivers in the project or only on the same file/cs file as the DriverSetup method? – dutoit077 Apr 15 '21 at 18:22
  • `DriverSetup` just downloads an appropriate driver executable file, e.g. `chromedriver.exe`. Then adds the driver path to environment "PATH" variable, which is consumed by WebDriver classes, e.g. `ChromeDriver`. – Yevgeniy Shunevych Apr 16 '21 at 11:44