[Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Alien Ruby
Hi guys, I apologize if this thread had been discussed before. I was looking for it, but I couldnt find it. here is what I'm trying to do. I define a bunch of classes and functions in a.rb file, and I'm going to write the main script which hopefully can interact/use all the functions and

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Alien Ruby
thanks for the quick respond. that was easy, huh.. I just thought too much on that one. beginner...:( ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Alien Ruby
How are you guys so helpful ? It just makes me want to keep coding all weekend. need lots of coffee then... have a great weekend, guys..!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] get the meta tag out of a page

2006-08-25 Thread Alien Ruby
Thank you so much, Jeff. This is the key, right here - ie.document.getElementsByTagName( meta ).item(i).outerHTML I couldnt figure this out what function to use by myself, but now it's worked out very well. But, my other question is why '...outerHTML.getContents' or '...outerHTML.getText' or

[Wtr-general] get the meta tag out of a page

2006-08-16 Thread Alien Ruby
Hi guys, does anyone know how to get the meta tags (meta name and content) from a page in WATIR? for e.g., ie.title will nicely spit out the title tag of a page. how about meta tag? what if we have two meta tags (names) in a page? do I need to include some other libraries? thank you in

Re: [Wtr-general] get the meta tag out of a page

2006-08-16 Thread Alien Ruby
Let me make clearer... for example, ie.title of this page will out put OpenQA Forums: Watir General but, I want something that can spits out the meta tag. like meta http-equiv=content-type content=text/html; charset=ISO-8859-1 or just the name and content? and what if they have multiple meta