Results 1 to 2 of 2

Thread: How to automate the autosuggest field.

  1. #1
    Junior Member
    Join Date
    Oct 2010
    Answers
    4

    How to automate the autosuggest field.

    Hi all,

    I am trying to automate the autosuggest filed in selenium,but un able to select the suggested value form the drop down. Please suggest.

    selenium.type("searchfield", “te”);
    All suggested values are displayed in a drop down for “te”.

    String str=selenium.getValue("searchfield");
    selenium.typeKeys("searchfield", str);
    But the text Selenium inserts isn't recognized.


    Thanks in advance,
    Lipsa



  2. #2
    Contributing Member
    Join Date
    Nov 2007
    Answers
    88

    Re: How to automate the autosuggest field.

    Check what javascript event is causing the autocomplete to fire, try this fireEvent("locator", keyUp) after typing in the value.

    Regards,
    vaasu.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact