Can not click on DOM element

I would like to click on my menu on the left, but I can not:

there with the tool of KS obejct repository,
there with the click () function
document.querySelector ( “stg-menu-item”). click ()

the DOM does not have ID, but there is a lot of class generation with Angular.

Do you have an idea ?

Try this:

Instead of clicking on the <stg-menu-item> element, try to click on the associated link element:


When you use JavaScript (rather than webdriver) to click on something, you have to make sure you click on the element that truly handles that click.

1 Like