I get error “button with locator not found” when using this xpath
/html/body/app-root/body/div/div[1]/app-site-header/div/div[2]/div[2]/p-menubar/div/p-menubarsub/ul
I’ve tried clicking it using class locator, the HTML is
<span class="p-menuitem-icon my-menu-icon ng-star-inserted"></span>
My code
//*[contains(@class,“my-menu-icon”)]/html/body/app-root/body/div/div[1]/app-site-header/div/div[2]/div[2]/p-menubar/div/p-menubarsub/ul
This does not work either. I’ve also tried:
Wait Until Page Contains
Wait Until Element Is Visible
Wait Until Page Contains Element
Everything else is working so I know my environment should be ok.
Env.
Python 3.6.7