I am automating the payment page which is having the option to select payment method. On selection of credit card payment option, one iframe is generated from the third party and loaded with dynamic ids. The iframe id is generated randomly. I'm not able to access the iframe. It is throwing the error as element is not accessible. After accessing the iframe, need to fill up the other credit card input fields.
There is only one iframe on the page. HTML Code of the iFrame:
<iframe src="assets.braintreegateway.com/hosted-fields/2.32.0/…;" frameborder="0" allowtransparency="true" scrolling="no" type="number" name="braintree-hosted-field-number" id="braintree-hosted-field-number" style="border: none; width: 100%; height: 100%; float: left;"> <!-- actual iframe here --> </iframe>