0
Hi, I’m trying to find a button by Document.querySelector but I’m not getting it. I tried looking for it with the command:
document.querySelector("button.tabindex[class='btn btn-inverse btn-large pull-right']");
The command is wrong??
In the button element it says so:
<button tabindex="-1" class="btn btn-inverse btn-large"> Botao1 </button>
I can use this: const button = Document.querySelector('button.btn.btn-inverse.btn-large[tabindex="-1"]') and then button.click(); ??
– lololololo
@lololololo in this case,
querySelector
will return aHTMLButtonElement
, then yes.– Renan Gomes
I can trade the const for the var?
– lololololo
var
,const
orlet
? Which to use?– Renan Gomes
Okay, thank you very much <3
– lololololo