Chromedriver.exe error using Coypu for Selenium

Asked

Viewed 261 times

1

I’m making an app, to test this framework unit test. However, it indicates an error that cannot find the path where Chromedriver.exe is, the same is found in the folder I indicated.

Here follows my code:

using System;
using Coypu;
using Coypu.Drivers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;

namespace Coybu
{
[TestFixture]
public class UnitTest1
{
    [Test]
    public void TestMethod1()
    {
        //Aqui indico o caminho onde se encontra o GoogleDrive.exe
        IWebDriver drive = new ChromeDriver("C:/Google");

        var sessionConfig = new SessionConfiguration()
        {
            Browser = Browser.Chrome,
            AppHost = "minhaurl.com",
            Driver = typeof(Coypu.Drivers.Selenium.SeleniumWebDriver)
    };

        var browser = new BrowserSession(sessionConfig);


        browser.Visit("/usuario/login");
    }
}

}

  • Try to give a Clean and After a Build, It helps to update the app by taking the crashes, Many times the code is correct and is occurring a bug and after giving a build it updates and comes back to work normally. Give a Build and see if it solves.

  • Keep on making the same mistake

  • The name you are setting is the name that is the correct exe? Try taking from the C directory and put in a folder for example the users folder and arrow and see if you can find the file.

  • I already did that. It loads Googledrive.exe in the folder I indicated, but this error appears.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.