How to force Autocomplete to suggest answers?

I'm trialling RubyMine 5.4 with the test framework Watir WebDriver.

Autocomplete works in 90% of cases.

Here's an example that executes correctly, but does not work with Autocomplete:, "lnkTransactions").click

Here is a step-by-step list of what happens when I type:

Type @browser plus the dot:   get many suggestions, but not "link"

Type "lin":   get 'cannot find "lin" at lower left status bar.

Type "link":  no message at lower left. The "link" now has a blue highlight. Both of these statements suggest that "link" has been accepted.

Exactly the same happens with "click"

I would be grateful for any advice.

Comment actions Permalink

There is no way to teach RM to undrstand that some library provides some functions except adding the gem in Gemfile and requiring it in your code.
Thus if RM doesn't suggest something it should it is a bug and I'd suggest to file a ticket in our tracker ( but please provide test project which reproduce the problem.

Regards, Oleg.

Comment actions Permalink

Thanks for your response.

In the example I gave earlier:

  •, "lnkTransactions").click

I know that "link" is in Watir::Container

"click" is in Watir::element

In my gemfile, I have:

  • gem 'watir'
  • gem 'watir-webdriver'

I use:

  • require 'watir'
  • require 'watir-webdriver'

So what do I need to to in order to show "link" and "click" in the autocomplete dropdown list?

Message was edited by: Old Grantonian


Please sign in to leave a comment.