Selenium Web Driver
- I'm having trouble locating an element using Xpath
. Any suggestions on a better way to locate the element below?
<div class="gwt-Label">Declined</div>
I attempted to retrieve the text in the element using the following:
findElement(By.xpath("html/body/div[2]/div[2]/div/div[3]/div/div[3]/div/div[6]/div/div[2]/div/div[5]/table/tbody/tr[1]/td[12]/div")).getText();