So I am trying to click a element that is not a button element, the html code is below:
<div class="menu-item-header">
<span class="header-title"><span class="icon-wrapper"><i class="icon-helper"></i></span>Help
</span> <!--When a client clicks this it redirects them to the appropriate place (this is a React website)-->
</div>
The original website looks something like this:
<div class="menu-item-header">
<span class="header-title"><span class="icon-wrapper"><i class="icon-helper"></i></span>Help
</span> <!---->
</div>
<div class="menu-item-header">
<span class="header-title"><span class="icon-wrapper"><i class="icon-helper2"></i></span>Help2
</span> <!---->
</div>
...
I have tried the following method to click the element:
WebElement element = browser.findElement(...);
element.click();
however that did not work.