Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9007871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:48:20+00:00 2026-06-16T01:48:20+00:00

I’m using Selenium WebDriver on Ruby 1.8.7 on an Ubuntu 12.04 desktop. I have

  • 0

I’m using Selenium WebDriver on Ruby 1.8.7 on an Ubuntu 12.04 desktop. I have a script that dumps the contents (as a string) of a bunch of data files one file at a time into a form. The data files range in size from 44kB to 92kB. I can manually copy and paste the contents into the textarea without error. However, when I use my Ruby script with send_keys on the element the script stalls, fails, and never reports an error.

I know I have the correct element and that send_keys in general works because I’ve sent ‘hello world’ to the textarea. I also know I’m grabbing the input file correctly because I can break it up line by line and send entire contents of the file to the textarea one line at a time without error.

The line by line send_keys is doable but fairly slow. I’m assuming that the issue is some form of send_keys limitation on the number of bytes/chars/etc. and that my input files have exceeded that limitation. However, my Google searches have turned up nothing in this regard.

Does anyone know what the limitation here is (send_keys or otherwise)? Ideally if it were a send_keys limitation of 1000 chars I would break the input file up 1000 chars at a time and loop thru until the entire file was sent using send_keys. (And that would certainly be faster than sending it 1 line at a time.) Is there an alternative to send_keys, that I’m unaware of, that can send a string of this size?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:48:21+00:00Added an answer on June 16, 2026 at 1:48 am

    You could use the clipboard gem and then just use the keyboard shortcut to paste on this element.

    Clipboard.copy(data)
    $driver.find_element(:id, "elementFoo").send_keys [:control, 'v']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small JavaScript validation script that validates inputs based on Regex. I
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have an autohotkey script which looks up a word in a bilingual dictionary
i got an object with contents of html markup in it, for example: string
I have thousands of HTML files to process using Groovy/Java and I need to
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.