0
I have been trying in every way to execute the Weddriver Click() method on the button element
//*[@id="pedigree-controls"]/div[2]/div/div/button (destacado em azul (dropbtn))
However, for some reason, perhaps because it is an Aria-Controls and contains a span class="visually-Hidden" I can’t.
Does anyone know any way to get to that element?
Driver.FindElement(By.CssSelector("li[aria-controls='pedigree_select']")).Clicks();
I don’t know about Selenium but jQuery can’t have quotes in pedigree_select. It would work like this:
$("li[aria-controls=pedigree_select]")
maybe in your case this might help.– David Dias