The 'FindElementByXpath' and the event click() seems not to be working... instead.. findElement(By.xpath(ARG)); is working fine
Exemple of my code
//notworking
driver.findElementByXPath("//button[@type='button']").click();
//working
driver.findElement(By.xpath("//button[@type='button']")).click();
Cheers :)
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
Att
Leonardo Barba Galani
Arquiteto de Teste
Java, Selenium e Coca Cola (http://www.leonardobg.com.br)
---- Original Message ----
From: "Eran M." <eran...@gmail.com>
To: webd...@googlegroups.com
Cc: "QA_manager" <no_ca...@yahoo.com>
Sent: Qui, Mar 17, 2011, 10:39 AM
Subject: Re: [webdriver] Re: "findElementByXPath" possible bug
Leonardo,
Is the documentation somewhere suggesting a method like 'findElementByXPath' exists?Otherwise, I don't see a reason why you'd expect such a method to exist. The WebDriver interface contains findElement / findElements which should be passed an explicit locator (provided by the By class). The second line of code is definitely the way to go.
Eran
On Thu, Mar 17, 2011 at 9:01 AM, QA_manager <no_ca...@yahoo.com> wrote: