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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:54:18+00:00 2026-05-26T21:54:18+00:00

We have an application based on RichFaces 3.3.3 . We have created automated tests

  • 0

We have an application based on RichFaces 3.3.3 . We have created automated tests with Selenium IDE that run fine. Since the RichFaces comboboxes are not real html comboboxes but an input field with a bunch of javascript, in Selenium we need to select a value with the following trick:

type      field_id "field value"
typeKeys  field_id "field value"
fireEvent field_id "blur"

In order to integrate the tests into our continuous integration system, we have transformed the test to jUnit tests that use WebDriver (Selenium 2.5.0) as the backend. Unfortunately the combobox trick stopped working.

All type and typeKeys commands are translated as shown below:

// ERROR: Caught exception [ERROR: Unsupported command [fireEvent]]
driver.findElement(By.id("patientCreateDataForm:patientBirthDateInputDate")).clear(); 
driver.findElement(By.id("patientCreateDataForm:patientBirthDateInputDate")).sendKeys("16.06.1910");

Does anyone have any working solution to test RichFaces combobox elements?

Thanks in advance!

  • 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-05-26T21:54:19+00:00Added an answer on May 26, 2026 at 9:54 pm

    The solution is as follows:

    1. click in the RichFaces combobox
    2. select the item (male or female) and copy path with help FirePath
    3. thereafter use Actions method in jUnit test. In the following example, button parameter is a combobox button id, element parameter is selected items xpath:

       private void comboboxSolution(String element, String button) {
          WebElement btn = driver.findElement(By.id(button));
          btn.click();
          WebElement myElement = driver.findElement(By.xpath(element));
          Actions builder = new Actions(driver);
          builder.moveToElement(myElement).click().perform();
      
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an iPhone application based on an OpenGL view. Now I would
I have a web-based application that notifies users of activity on the site via
I have a UINavigationBar based application - only a one navigation bar that is
I have a readline-based application with a prompt, however I'd like it to not
I have a application developed based on Compact Framework 1.0. I can run it,
I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want
I have a WPF application based on PRISM that utilizes the MVVM pattern. I
We are developing web based java application. Richfaces used as library.And we have datatable
I have a Windows application based on Java, that I should like to install
I have an application that uses the navigation-based application template in XCode. Now I

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.