Treiber finden Element von XPath
from selenium.webdriver.common.by import By
driver.find_element(By.XPATH, '//*[@id="PasteURL__HomePage"]')
Hamdi Jr
from selenium.webdriver.common.by import By
driver.find_element(By.XPATH, '//*[@id="PasteURL__HomePage"]')
driver.find_element_by_xpath('//*[@id="emailField"]')
if(driver.findElement(By.xpath("/html/body/div[2]/div/div/div/div/div/div/table/tbody/tr[6]/td[2]")).isDisplayed())
{
driver.findElement(By.linkText("logout")).getAttribute("href");
} else {
driver.findElement(By.xpath("/html/body/div/div/div/a[2]")).click();
}
driver.findElement(By.id("ui-datepicker-div"));
elementcss= driver.findElement(By.cssSelector('div.nav-search-input'))