by.cssselector code example Example: by.cssselector WebElement firstName = driver.findElement(By.cssSelector("input[name='first_name']"));