Nightwatch supports all arguments and capabilities that ChromeDriver provides.Ĭheck out the official ChromeDriver documentation to learn more about these capabilities. Each item in the list should be a base-64 encoded packed Chrome extension (.crx) e.g., '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome')Ī list of Chrome extensions to install on startup. Path to the Chrome executable to use (on Mac OS X, this should be the actual binary, not just the app. Arguments with an associated value should be separated by a '=' sign (e.g., ). AntBuilder just makes it slightly easier to work with downloading and unzipping files.List of command-line arguments to use when starting Chrome. I will use the ant builder available to groovy in my helper method, but you can use whatever you want. On the Mac, I also need to change my permissions so that chromedriver can execute. To do so, we must download the latest chromedriver if it does not exists.įor this project, I’m going to put the latest chromedriver in /test/drivers/chrome/chromedriver, and am going to skip the download if the file already exists. We’re going to modify the chrome section so that it sets up the latest chromedriver for mac. run as “grails -Dgeb.env=chrome test-app” So the environment for chrome looks like this: We start with the GebConfig provided in the grails-geb-example project. ( Credit Marcin Erdmann for initial implementation ). In this post, I will show you how to set up your project so that it ensures that your driver file is available for your tests. A common error encountered by Geb beginners using Webdriver with Chrome or Internet Explorer is that they forget to download and properly configure chromedriver / iedriver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |