DEVHIDE
        • Home (current)
        • About
        • Contact
        • Cookie
        • Home (current)
        • About
        • Contact
        • Cookie
        • Disclaimer
        • Privacy
        • TOS
        Login Or Sign up

        Input text in iframe with puppeteer

        591 Views Asked by Carol.Kar At 20 May 2020 at 21:13 2025-12-08T08:37:06.935000

        I am using "puppeteer": "^1.20.0", for testing.

        I have implemented the wysiwyg editor redactor as iframe:

        <div class="redactor_box">
          <ul class="redactor_toolbar">
            <li class="redactor_btn_group redactor_btn_right">
              <ul>
                <li class="redactor_btn_container_switchmode">
                  <a href="javascript:void(null);" title="Use BB Code Editor" class="redactor_btn_switchmode" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group redactor_btn_right">
              <ul>
                <li class="redactor_btn_container_removeformat">
                  <a href="javascript:void(null);" title="Remove Formatting" class="redactor_btn_removeformat" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_bold">
                  <a href="javascript:void(null);" title="Bold (Ctrl+B)" class="redactor_btn_bold" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_italic">
                  <a href="javascript:void(null);" title="Italic (Ctrl+I)" class="redactor_btn_italic" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_underline">
                  <a href="javascript:void(null);" title="Underline (Ctrl+U)" class="redactor_btn_underline" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_fontcolor">
                  <a href="javascript:void(null);" title="Text Color" class="redactor_btn_fontcolor" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_fontsize">
                  <a href="javascript:void(null);" title="Font Size" class="redactor_btn_fontsize" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_fontfamily">
                  <a href="javascript:void(null);" title="Font Family" class="redactor_btn_fontfamily" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_createlink">
                  <a href="javascript:void(null);" title="Link" class="redactor_btn_createlink" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_unlink">
                  <a href="javascript:void(null);" title="Unlink" class="redactor_btn_unlink" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_alignment">
                  <a href="javascript:void(null);" title="Alignment" class="redactor_btn_alignment" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_unorderedlist">
                  <a href="javascript:void(null);" title="• Unordered List" class="redactor_btn_unorderedlist" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_orderedlist">
                  <a href="javascript:void(null);" title="1. Ordered List" class="redactor_btn_orderedlist" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_outdent">
                  <a href="javascript:void(null);" title="< Outdent" class="redactor_btn_outdent" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_indent">
                  <a href="javascript:void(null);" title="> Indent" class="redactor_btn_indent" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_smilies">
                  <a href="javascript:void(null);" title="Smilies" class="redactor_btn_smilies" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_image">
                  <a href="javascript:void(null);" title="Image" class="redactor_btn_image" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_media">
                  <a href="javascript:void(null);" title="Media" class="redactor_btn_media" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_insert">
                  <a href="javascript:void(null);" title="Insert..." class="redactor_btn_insert" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_draft">
                  <a href="javascript:void(null);" title="Drafts" class="redactor_btn_draft" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
            <li class="redactor_btn_group">
              <ul>
                <li class="redactor_btn_container_undo">
                  <a href="javascript:void(null);" title="Undo (Ctrl+Z)" class="redactor_btn_undo" unselectable="on" tabindex="-1"></a>
                </li>
                <li class="redactor_btn_container_redo">
                  <a href="javascript:void(null);" title="Redo (Ctrl+Y)" class="redactor_btn_redo" unselectable="on" tabindex="-1"></a>
                </li>
              </ul>
            </li>
          </ul><iframe style="width: 100%; height: 264px;" frameborder="0" class="redactor_textCtrl redactor_MessageEditor redactor_BbCodeWysiwygEditor redactor_NoAutoComplete"></iframe>
          <div class="redactor_editor_drop dragDisabled"><span>Uploads are not available.</span></div><textarea name="message_html" id="ctrl_message_html" class="textCtrl MessageEditor BbCodeWysiwygEditor NoAutoComplete" style="height: 260px; display: none;" data-css-url="css.php?style=3&amp;css=editor_contents&amp;d=1589815082"
            data-dialog-url="index.php?editor/dialog&amp;style=3" data-auto-save-url="conversations/save-draft" data-options="{&quot;autoSaveFrequency&quot;:&quot;60&quot;,&quot;bbCodes&quot;:[]}"></textarea></div>
        

        I am trying to use:

                const editFrame = await page.frames().find(f => f.name() === 'redactor');
                const inputb = await editFrame.$('#html'); 
        

        However, the iframe does not have any name. Furthermore, how do I then input into the iframe.

        I highly appreciate your replies!

        javascript iframe puppeteer redactor
        Original Q&A
        0

        There are 0 best solutions below

        Related Questions in JAVASCRIPT

        • Using Puppeteer to scrape a public API only when the data changes
        • inline SVG text (js)
        • An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
        • Storing the preferred font-size in localStorage
        • Simple movie API request not showing up in the console log
        • Authenticate Flask rest API
        • Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
        • How to request administrator rights?
        • mp4 embedded videos within github pages website not loading
        • Scrimba tutorial was working, suddenly stopped even trying the default
        • In Datatables, start value resets to 0, when column sorting
        • How do I link two models in mongoose?
        • parameter values only being sent to certain columns in google sheet?
        • Run main several times of wasm in browser
        • Variable inside a Variable, not updating

        Related Questions in IFRAME

        • Why a component? Drawer of mui Does not work inside Iframe
        • How can I catch all DOMExceptions thrown in Firefox?
        • Embeded Google slides opens new tab on screen touch (mobile mode)
        • Jira helpdesk widget doesn't create an iframe when script is loaded dynamically
        • HTTP Client Hint headers are not sent from an iframe
        • Excel embedding through OneDrive: preview is correct, while the end result is not
        • SameSite None Cookie on Authentication Cookie On WordPress Website
        • Is it possible to interact with SSO between Website A and Website B?
        • SSO to Grafana embeded in iframe
        • AudioContext not heard although it is running
        • How to disable page-break before a long iframe while printing?
        • How to get a postMessage message from Duda into the embedded iframe?
        • auto login with Grafana
        • PagerDuty Integration
        • iframe hosted on CloudRun not firing onLoad event in React JS

        Related Questions in PUPPETEER

        • Using Puppeteer to scrape a public API only when the data changes
        • How to save downloaded by parser file into js buffer?
        • Trouble with Puppeteer Cluster and Excel4node: Not all data is being written to Excel
        • 403 on brightdata ws endpoint
        • How do i get the newly opened page after a form submission using puppeteer
        • Connecting puppeteer to an existing Brave Browser instance using
        • How to use multiple exception filters in the main module in nestjs?
        • Puppeteer on Kubernetes throws errors: "Navigation frame was detached", "Requesting main frame too early"
        • Inquiry: ARM Compatibility for Puppeteer
        • What’s the best way to add a coverpage for a pdf made via browsershot / puppeteer?
        • How to simulate select event during stencil tests?
        • Launch web scraper with Windows task manager "Whether user is logged on or not"
        • How to simulate a file upload during tests?
        • How to test disabled attribute of a button?
        • Renaming a file - Google API direct download link

        Related Questions in REDACTOR

        • Summernote editor and spring mvc predefined html variable
        • How to add CraftCms imperavi redactor custom list of font size options?
        • Redactor/HTMLPurifier won't allow entry update CraftCMS
        • Jquery replacement for .html() function that won't try to rewrite the html on Redactor imperavi - Xss vulnerability
        • Upload Files to ASP.NET Core. Array is always empty
        • Cannot read property 'replace' of undefined in Redactor
        • What should I put in the imageUpload of the redactor Parameter?
        • How to change image paths in Redactor editor?
        • Input text in iframe with puppeteer
        • How can i add custom shortcodes in Redactor
        • How to change Imperavi redactor's text direction dynamically using jquery
        • How to allow DIV tags in Yii2 Editor
        • Append space to <li> content
        • How to bind posted data named "file[]" to an MVC model?
        • How to get Redactor wysiwyg working with vue.js ( without jQuery )

        Trending Questions

        • UIImageView Frame Doesn't Reflect Constraints
        • Is it possible to use adb commands to click on a view by finding its ID?
        • How to create a new web character symbol recognizable by html/javascript?
        • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
        • Heap Gives Page Fault
        • Connect ffmpeg to Visual Studio 2008
        • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
        • How to avoid default initialization of objects in std::vector?
        • second argument of the command line arguments in a format other than char** argv or char* argv[]
        • How to improve efficiency of algorithm which generates next lexicographic permutation?
        • Navigating to the another actvity app getting crash in android
        • How to read the particular message format in android and store in sqlite database?
        • Resetting inventory status after order is cancelled
        • Efficiently compute powers of X in SSE/AVX
        • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

        Popular # Hahtags

        javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json

        Popular Questions

        • How do I undo the most recent local commits in Git?
        • How can I remove a specific item from an array in JavaScript?
        • How do I delete a Git branch locally and remotely?
        • Find all files containing a specific text (string) on Linux?
        • How do I revert a Git repository to a previous commit?
        • How do I create an HTML button that acts like a link?
        • How do I check out a remote Git branch?
        • How do I force "git pull" to overwrite local files?
        • How do I list all files of a directory?
        • How to check whether a string contains a substring in JavaScript?
        • How do I redirect to another webpage?
        • How can I iterate over rows in a Pandas DataFrame?
        • How do I convert a String to an int in Java?
        • Does Python have a string 'contains' substring method?
        • How do I check if a string contains a specific word?
        .

        Copyright © 2021 Jogjafile Inc.

        • Disclaimer
        • Privacy
        • TOS
        • Homegardensmart
        • Math
        • Aftereffectstemplates