Selenium atribut khusus

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