Sample Code For Download Explaining Xpath Text
Sample Code For Download Explaining Xpath Text
xpath text/siblings/parent
package Tests;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class testit {
System.out.println(driver.findElement(By.xpath(".//*[@id='tablist1-tab2']/
parent::ul")).getAttribute("role"));
//
}
}