Development Python

Insert credit card number with selenium – Python3.8

i’m using selenium with python to register into a website.
My problem is that when i need to insert the credit card number and the security number, though i copy the xpath of the field, wait for the field to be visible and clickable, python raise a timeout exception becouse he didn’t find any field with that xpath. The html code of the field is that:

<input id="cardnumber" autocomplete="cc-number" type="tel" pattern="[0-9]*" placeholder="1111 2222 3333 4444" data-encrypted-name="number" class="form-control">

Leave a Reply

Your email address will not be published. Required fields are marked *