How to select an element of type aria-controls

0

IhavetriedinallwaystoexecutetheWedDriver'sClick()methodonthebuttonelement

//*[@id="pedigree-controls"]/div[2]/div/div/button (destacado em azul (dropbtn))

However, for some reason, perhaps because it is an aria-controls and contain a span class I can not.

Does anyone know of any way to get to this element?

Driver.FindElement(By.CssSelector("li[aria-controls='pedigree_select']")).Clicks();
    
asked by anonymous 31.03.2018 / 18:48

1 answer

0

I was able to solve it! I could find the element but did not perform any action on it (click for example). This was happening because the page was built with Polymer and consequently I had to treat the divs by layer until I got to the element.

    
04.04.2018 / 23:38