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 8011733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:06:15+00:00 2026-06-04T19:06:15+00:00

I have a ruby test case generated by selenium and I’m running the test

  • 0

I have a ruby test case generated by selenium and I’m running the test case with WebDriver. At some point I have to pic a user from a dynamically generated list, and my user is always the first item in my list. How can I hit the DownKey to select a user from my list ? and Is it possible or not ? I’ve been searching the web for about two days and no luck

here is the code

.
.
.

@driver.find_element(:id, “email”).send_keys “xxxxxx@xxxxx.com”

@driver.find_element(:id, “pass”).clear

@driver.find_element(:id, “pass”).send_keys “123456\n”

@driver.find_element(:id, “fb_friend”).clear

@driver.find_element(:id, “fb_friend”).send_keys “Ryan Wolf”

. >>>> this is the place that my list is generated and I have to pic the first name from my list by going down and hit enter <<<<<<

.
.
.

  • 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-04T19:06:17+00:00Added an answer on June 4, 2026 at 7:06 pm

    You could do arrow down this way

    @driver.find_element(:id, "fb_friend").send_keys [:arrow_down]
    

    more options are here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing some Ruby code and have a failing Test::Unit::TestCase. Unfortunately, the failure
so i have ruby script that simply writes to a test.txt file with hello
I have a ruby on rails app running a server and sometimes it needs
I have a Ruby on Rails app running on my server, and I can't
I have the following test Ruby script: require 'tempfile' tempfile = Tempfile.new 'test' $stderr.reopen
I'm trying to test a case in our Ruby on Rails system where we
I've previously written some selenium tests using ruby/rspec, and found it quite powerful. Now,
I have the following Ruby module: module Test Constant1 = { :key1 => :value1,
I have ruby on rails installed on my ubuntu 8.10 desktop. Script/generate came up
I have Ruby on Rails 3.1 application and i use for Sphinx + Thinking

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.