This is my HTML structure:
<div id="divImporte">
<p class="btn01">
<input type="button" name="Enviar Tasas" value="Enviar Tasas">
</p>
</div>
And this is the ways how i try to select the input:
first way:
const buttonTasas = await page.$$("input[type='button'][value='Enviar Tasas']");
second way:
const buttonTasas = await page.waitForSelector("input[type='button'][value='Enviar Tasas']");
and then click it:
if (buttonTasas && buttonTasas.length > 0) {
await buttonTasas[0].click();
}
i got this error:
"Error: Node is either not clickable or not an HTMLElement"
How can i solve? thanks