I tried with given code, but I am getting the error.

nested *?+ in regexp: /DBMS/

Please help.

On Tue, Dec 15, 2009 at 12:15 PM, Wesley Chen <[email protected]> wrote:

> I give you a suggestion about this kind of test. I think the book name will
> be consistent.
> def edit_book_link(book_name)
>       return $ie.link(:text, /#{book_name}/).parent.link(:text, "Edit")
> end
> or
> def edit_book_link(book_name)
>     book_id = $ie.link(:text,
> /#{book_name}/).href.match(/bookID=\d+/).to_s.gsub("bookID", "")
>     return $ie.link(:text =>"Edit", :href =>/bookID=#{book_id}/)
> end
>
> Any problem, please show it in the email.
> I have not executed the code I provided.
>
> Thanks.
> Wesley Chen.
> For life, the easier, the better.
>
>
> On Tue, Dec 15, 2009 at 1:09 PM, Swapnal <[email protected]> wrote:
>
>> ef to click the l
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to [email protected]
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to