I
I
ide11332020-02-05 19:56:55
Python
ide1133, 2020-02-05 19:56:55

Can't autofill CVV, can't see the field?

There is a field where you need to fill in CVV cards, PY refuses to accept it in any way. Tried searching with by_id, сlass, xpaxh... No luck

cvv = driver.find_element_by_id('cardCvc-input')
cvvk = 000
cvvk.send_keys(cvv)


HTML:
<form _ngcontent-ng-cli-universal-c1="" class="form-group ng-dirty ng-invalid ng-touched" id="card-panel-form" method="POST" novalidate="" role="form"><input _ngcontent-ng-cli-universal-c1="" autocomplete="off" cccvc="" class="form-control ng-dirty ng-invalid ng-touched" id="cardCvc-input" maxlength="4" minlength="3" name="cardCvc" pattern="[0-9]{4}|[0-9]{3}" required="" type="tel"><label _ngcontent-ng-cli-universal-c1="" class="form-control-placeholder" for="cardCvc-input">CVV *</label></form>
<input _ngcontent-ng-cli-universal-c1="" autocomplete="off" cccvc="" class="form-control ng-dirty ng-invalid ng-touched" id="cardCvc-input" maxlength="4" minlength="3" name="cardCvc" pattern="[0-9]{4}|[0-9]{3}" required="" type="tel">

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2020-02-05
@dimonchik2013

he finds two of you

A
Andrey_Dolg, 2020-02-06
@Andrey_Dolg

How does your code work? =)
According to the subject, give output what selenium sees.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question