Ao compilar o codigo similar ao exibido na aula foi apresentada uma falha.
Falha:
Severity Code Description Project File Line Suppression State Error CS0266 Cannot implicitly convert type 'System.Collections.ObjectModel.ReadOnlyCollection' to 'OpenQA.Selenium.IWebElement'. An explicit conversion exists (are you missing a cast?) UltimoTeste c:\users\user\documents\visual studio 2015\Projects\UltimoTeste\UltimoTeste\Program.cs 18 Active
Severity Code Description Project File Line Suppression State Error CS0201 Only assignment, call, increment, decrement, and new object expressions can be used as a statement UltimoTeste c:\users\user\documents\visual studio 2015\Projects\UltimoTeste\UltimoTeste\Program.cs 20 Active
insira seu código aqui
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
namespace UltimoTeste { class TesteAutomatizado { static void Main(string[] args) { IWebDriver driver = new FirefoxDriver(); driver.Navigate(); driver.Navigate().GoToUrl("https://www.google.com.br"); IWebElement campoDeTexto = driver.FindElements(By.Name("q")); campoDeTexto.SendKeys("Caelum"); campoDeTexto.Submit; } } }