Hi Shreya,

One way to overcome this problem is to have chrome driver binary in the 
project and set the path to it in the project. 

*Steps*

   1. Update your Chrome to the latest version 83.0.43 as Chrome usually 
   auto-updates
   2. Download the chrome driver binary for your browser ( Chrome 
   83.0.43...) in your system.  
   3. Put the binary somewhere in the resources 
   /src/main/resources/browser-drivers/chromedrivermac
   4. In build.gradle you can set system property to define the path
   
   systemProperties = [
   macWebdriverChromeDriver    : 
"${rootPath}/src/main/resources/browser-drivers/chromedrivermac"
   ]
   
   
   5. In GebConfig.groovy, Set the path 
   
   def setDriverExec() {
       if (SystemUtils.IS_OS_MAC_OSX || SystemUtils.IS_OS_MAC) {
           System.setProperty("webdriver.chrome.driver", 
System.getProperty("macWebdriverChromeDriver"))
   
   }
   
   }
   
   
   Varun
   
   
   
   

On Thursday, June 11, 2020 at 9:41:43 AM UTC-5, Shreya J wrote:
>
> Hi, 
>
> I have a couple of questions regarding the github code. I am just trying 
> to run the code as is to initially get an idea of whats going on. I cloned 
> the repository and tried running ./gradlew chromeTest but my Chrome version 
> is 81. I updated the driver version in the build.gradle file based on the 
> driver version for Chrome version 81 but I get an error that the DriverURL 
> is not found.
> > com.github.erdi.gradle.webdriver.repository.DriverUrlNotFoundException: 
> Driver url not found for name: "chromedriver", version: "81.0.4044.138", 
> platform: "mac", bit: "64 or 32"
>
> Do I need to specify this as an environment variable or something for my 
> IDE to know that I did download the chromeDriver with that version 
> specified? 
>
> Thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/7e274be8-f350-4f52-9545-2822d6535318o%40googlegroups.com.

Reply via email to