<h3 class="menuheader expandable " headerindex="1h"><span class="accordprefix"></span>
<h3 class="menuheader expandable " headerindex="2h"><span class="accordprefix"></span>
<h3 class="menuheader expandable " headerindex="3h"><span class="accordprefix"></span>
Our application is having the above headers. Each header is having the headerindex
as an unique value to identify. I have used the below code:
WebElement Tab_selection = driver.findElement(By.cssSelector("<h3>[headerindex=2h]"));
Tab_selection.click();
But it is showing the exception:
invalid selector: An invalid or illegal selector was specified. Could you please help on that