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– Rovann Linhalis
it is impossible to say without seeing the signature of the method but it would even make sense...
driver.SendKeys(keys,splChar);
– Leandro Angelo