Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use fillField in an iframe? #2866

Unanswered
ptmkenny asked this question in Q&A
Discussion options

According to the documentation on using iFrames, the commands need to be nested in within.

I have a contact form embedded in an iFrame that I want to test:

 await within({frame: "#iFrameResizer0"}, () => {
 I.see('Contact Us');
 I.fillField('#edit-message', 'This is a test message.')

I.see works, but I.fillField does not fill in the field.

When I go to the contact form page directly (when the contact form is not embedded in an iFrame) and use

I.fillField('#edit-message', 'This is a test message.')

Then the field is filled in correctly.

So what do I need to do to use fillField inside an iFrame?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /