Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » DLTK Ruby & Watir
DLTK Ruby & Watir [message #8013] Sat, 23 June 2007 19:12 Go to next message
Eclipse UserFriend
Originally posted by: java.gbrun.gmail.com

i'm currently using Eclipse 3.3RC4 with DLTK (ruby) 0.9 on windows

i install both ruby & watir with installer :
ruby186-25.exe
& watir-1.4.1.exe

i can run simple script,
but didn't find out how to get the completion to work.

IE ie = IE.new()
ie.| <-- pressing Ctrl+Space

DLTK keep on saying "No completions available."


anyone out there know how to solve the prob ?

Thanks in advance
Re: DLTK Ruby & Watir [message #8077 is a reply to message #8013] Mon, 25 June 2007 06:22 Go to previous messageGo to next message
Andrei Sobolev is currently offline Andrei SobolevFriend
Messages: 17
Registered: July 2009
Junior Member
java.gbrun@gmail.com wrote:
> i'm currently using Eclipse 3.3RC4 with DLTK (ruby) 0.9 on windows
>
> i install both ruby & watir with installer :
> ruby186-25.exe
> & watir-1.4.1.exe
>
> i can run simple script,
> but didn't find out how to get the completion to work.
>
> IE ie = IE.new()
> ie.| <-- pressing Ctrl+Space
>
> DLTK keep on saying "No completions available."
>
>
> anyone out there know how to solve the prob ?
>
> Thanks in advance
Hi,
In current release of DLTK you should specify path to your gem by adding
external source folder to Ruby project.

You could do it from project preferences -> Ruby Build Path -> Libraries
-> Add external source folder.

Then completion will work.

Andrei.
Re: DLTK Ruby & Watir [message #8107 is a reply to message #8077] Mon, 25 June 2007 21:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: java.gbrun.gmail.com

> Andrei Sobolev wrote:
>
> Hi,
> In current release of DLTK you should specify path to your gem by adding
> external source folder to Ruby project.
>
> You could do it from project preferences -> Ruby Build Path -> Libraries
> -> Add external source folder.
>
> Then completion will work.
>
> Andrei.

Hi,

first of all, thanks for your advice.

i should have write that i already add the watir directory to the Ruby
Build Path libraries.

%ruby%\lib\ruby\gems\1.8\gems\watir-1.4.1


in fact, the DLTK Ruby behavior is strange :

if i stay near a ie function like goto,text_field or button,
a yellow tip window open with function definition.

that's cool!


but if i look at the Ruby documentation view, goto or text_field are ok
but button show this:
"Note: This element has no attached documentation and hence no
information could be found"

weird!


how can i have the documentation but can't use the completion (Ctrl+space) ?

strange notice : if i use the projet/clean then the scriptbuilder is
called, it's quite slow but when it heat 26% it's stopped (i dont know
if it's finnished)

any help is welcome.

G.BRUN
Re: DLTK Ruby & Watir [message #8363 is a reply to message #8107] Sun, 08 July 2007 16:05 Go to previous message
Eclipse UserFriend
Originally posted by: java.gbrun.gmail.com

help yourself!

if that can help others, i found the solution to my problem

if solved it by modifying the source

i replace :

IE ie = IE.new();

by

IE ie = Watir::IE.new();

both source run well, but only the second one works in DLTK editor
(Ctrl+Space work and Ruby documentation view is OK)

full source if you want to reproduce:

require 'watir'
include Watir
site = 'http://www.google.com'
IE ie = Watir::IE.new();
ie.goto(site);
ie.text_field(:name, "q").set("pickaxe");
ie.button(:name, "btnG").click;
if ie.contains_text("Programming Ruby")
puts "Test Passed.";
else
puts "Test Failed!";
end
ie.close();


G.BRUN
Previous Topic:IEvaluatedType representing an Array of a certain type
Next Topic:JRuby debugging?
Goto Forum:
  


Current Time: Thu Apr 25 15:35:42 GMT 2024

Powered by FUDForum. Page generated in 0.04100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top