Using Selenium WebDriver I'm not able to click on update profile picture in Facebook. The html snippet is:
<div class="_156p">Update Profile Picture</div>
How do I locate the element?
Using Selenium WebDriver I'm not able to click on update profile picture in Facebook. The html snippet is:
<div class="_156p">Update Profile Picture</div>
How do I locate the element?
You can identify element using XPATH by utilizing display text as below:
driver.findElement(By.xpath("//div[text()='Update Profile Picture']")).click();