|
|
**How to enter datas in IFrame** <br>
|
|
|
This applicable for codered testing in capybara/cucumber <br>
|
|
|
|
|
|
<p> **E.g. of feature** <br>
|
|
|
And I enter in iframe "#credit-card-number" with "378282246310005" <br>
|
|
|
And I enter in iframe "#expiration" with "022023" <br>
|
|
|
And I enter in iframe "#cvv" with "9001" <br>
|
|
|
<p>
|
|
|
|
|
|
<p> **Use this code on your step definition:** <br>
|
|
|
within_frame('Iframe-name') do <br>
|
|
|
find(frame_id).set(value) <br>
|
|
|
end <p>
|
|
|
|