New answers tagged

0

You can locate this element by using either of these methods: xpath: //div[@id='info-usuario']//div[@class='clearfix']//p[1] css selector: div#info-usuario > div.clearfix > p Locating an element using css selector is considered more reliable than xpath in any of the automated testing services as it works with multiple browsers.


0

If you are asking about this post button - try below code to click on post button. for this- WebElement postBtn = driver.findElement(By.xpath("//button[contains(.,'Post')]")); postBtn.click(); OR WebElement postBtn = driver.findElement(By.xpath("//button[@class='_1mf7 _4jy0 _4jy3 _4jy1 _51sy selected _42ft']")); postBtn.click();



Top 50 recent answers are included