Attribut personnalisé Selenium

driver.findElement(By.cssSelector("[foo=bar]"));
driver.findElement(By.xpath("//div[@foo='bar']")); 
Hiren Vadher