mardi 22 mars 2016

Unable to get element text using selenium webdriver

Am using a piece of code below to get the text of some particular locator.

WebElement ele=driver.findElement(By.cssSelector("Some locator"));
ele.getText();

This returns the string value,but only in IE browser it failed and worked in rest of the browsers i.e., Firefox and chrome.

Am facing this issue, org.openqa.selenium.WebDriverException: Unable to get element text (WARNING: The server did not provide any stacktrace information)

Please help me out in this and this exception in IE browser is also very inconsistent some times it passes and some times failed same code.

Aucun commentaire:

Enregistrer un commentaire