dimanche 19 septembre 2021

Xpath locator in checkbox

I am learning selenium and want to select check box in amazon page. I went to amazon site and searched for dresses. On the left side it displays brands and i want to select Relipop checkbox. I tried the following code and it didn't work

driver.findElement(By.xpath("//*[@id='p_89/Relipop']/span/a/div/label/i)")).click();

Could you please help me and i appreciate your effort.




Aucun commentaire:

Enregistrer un commentaire