Hi, I need to click to a button.
The html code hasn’t button ID but I found this:
<button class="btn btn-primario btn-lg btn-block colorButtonBlue fontWhite voffset3" style="width:100%;color:white;text-align:center" data-ng-click="login()">
<!-- ngIf: language!='en' --><span data-ng-if="language!='en'" class="ng-scope" style="">ACCEDI</span><!-- end ngIf: language!='en' -->
<!-- ngIf: language=='en' -->
</button>
I tried to insert this instruction in my code by PyCharm
driver.find_element(By.CLASS_NAME, "btn btn-primario btn-lg btn-block colorButtonBlue fontWhite voffset3")
but it return me
Unable to locate element: {“method”:“css selector”,“selector”:“.btn btn-primario btn-lg btn-block colorButtonBlue fontWhite voffset3”}
- (Session info: chrome=106.0.5249.119)*
Can someone help me please??
Thanks