Or, since vb is already a string, then even cleaner syntax would be:
ie.link(:text, Regexp.new(vb)).click
Also, Netbeans for example doesn't mess syntax highlighting up with
the /#{vb}/ solution.
Jarmo
On Mar 24, 9:31 pm, vladimir...@hotmail.com
vladimir...@hotmail.com wrote:
Thank you, Bret.
Another way, that probably won't mess up your editor's highlighting, is
this:
ie.link(:text, Regexp.new(#{vb})).click
Bret
vladimir...@hotmail.com wrote:
Thank you, Wesley.
It works although editor highlights everything after # in ie.link
(:text, /#{vb}/).click as comments.
Amaizing :-)
Thank you, Bret. This syntax is cleaner.
On Mar 24, 7:55 am, Bret Pettichord b...@pettichord.com wrote:
Another way, that probably won't mess up your editor's highlighting, is
this:
ie.link(:text, Regexp.new(#{vb})).click
Bret
vladimir...@hotmail.com wrote:
Thank you, Wesley.
try this;
var = /vb/
ie.link(:text, var).click
On Mon, Mar 23, 2009 at 9:46 PM, vladimir...@hotmail.com
vladimir...@hotmail.com wrote:
I have a link with the following text: vb (User-44, vb:DocuShare)CPX.
It works when I use the statement:
ie.link( :text, /vb/ ).click
But for the
Thank you, Rich.
What you propose has no difference with ie.link( :text, /vb/ ).click
As I wrote, it works.
Unfortunately, I cannot use it.
I develop a function that has a parameter var.
It takes the text that goes into regular expression.
This is equivalent to
var = vb
ie.link( :text,
Thank you, Wesley.
It works although editor highlights everything after # in ie.link
(:text, /#{vb}/).click as comments.
Amaizing :-)
On Mar 23, 8:51 pm, Wesley Chen cjq@gmail.com wrote:
Try
ie.link(:text, /#{vb}/).click
Thanks.
Wesley Chen.
On Tue, Mar 24, 2009 at 11:36 AM,