no Overload for method Sendkeys takes 1 argument

Asked

Viewed 40 times

0

Why am I getting...

no Overload for method Sendkeys takes 1 argument

using System;
using test2.Selenium;
using System.Collections.Generic;


namespace test2.ExtensionMethods

{
    public static class WebDriverExtension
    {

        public static void teste( this IWebDriver driver, string keys, string splChar)
        //this significa eu webdriver me chamo driver...estou fazendo uma extensão do metodo
        //escrevemos um novo metodo sem recomplicar o projeto...estamos adicionando um novo metodo
        //ele usou metodos ja existentes pra criar esse metodo novo...no caso adicionou mais metodos.
        {

            driver.SendKeys(keys);
            driver.SendKeys(splChar);

        }

    }
}
  • because it has no signature (overload) of the method sendkeys with one argument

  • it is impossible to say without seeing the signature of the method but it would even make sense... driver.SendKeys(keys,splChar);

No answers

Browser other questions tagged

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