[wtr-general] Re: Cannot access element through iframe?

2010-08-24 Thread Chan Nguyen
On Tue, Aug 24, 2010 at 4:18 PM, Chan Nguyen wrote: > > Since the > > 'iframe' in my case has many elements inside, so I'm afraid I will be > > missing something. > > If you want your question answered, you have to do all the hard work, and > explain what you

[wtr-general] Re: Cannot access element through iframe?

2010-08-24 Thread Chan Nguyen
Hello Zelijko, As for the HTML sample, I think I already posted above. Since the 'iframe' in my case has many elements inside, so I'm afraid I will be missing something. Further, I'm a newbie to Web programming, so everything still seems vague to me at this time. Here are the one that I cleaned up

[wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Chan Nguyen
Hi Kevy again, Initially, I tried text string, but it did not work so I switch to use "value". The problem I think is that "frame" does not have "set" or "select_list" method. Anyway, great thanks for your reply. On Aug 20, 6:52 am, Super Kevy wrote: > Why are you using the value rather then the

[wtr-general] Re: Cannot access element through iframe?

2010-08-20 Thread Chan Nguyen
Hi Kevy, Thanks for your reply. I think frame "Main_Body" does exists, in fact, it worked for 2 pages but not all. I guessed the other page elements must be hidden or something else, so the frame does not recognize it. When I view the HTML source, it's obvious that 100% of the main body elements i

[wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
Lead Developer, Watir,http://watir.com > > On Thu, Aug 19, 2010 at 4:04 PM, Chan Nguyen wrote: > > Hi Basim, > > > Great thanks for your answer, but it still does not work. The same > > error occurred: > > C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/

[wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
boBox" ).select_value( "MOBL" ) > > Basim > > On Thu, Aug 19, 2010 at 5:05 PM, Chan Nguyen wrote: > > I'm so frustrated with iframe using Watir. I really don't want to give > > up on 'watir' but it seems too difficult to get the job done :

[wtr-general] Re: Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
I'm so frustrated with iframe using Watir. I really don't want to give up on 'watir' but it seems too difficult to get the job done :( ! I really need an advice, please help. What's other alternative for Web Testing Automation? On Aug 19, 9:38 am, Chan Nguyen wrote: &g

[wtr-general] Cannot access element through iframe?

2010-08-19 Thread Chan Nguyen
Hi everyone, I run into an issue when accessing a ComboBox through frame, I got this error message : C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in `method_m issing': document (WIN32OLERuntimeError) OLE error code:80070005 in Access is denied. HRESULT error c

[wtr-general] Re: Undefined method `contains_text' using Watir-webdrive

2010-08-17 Thread Chan Nguyen
Hi, Is anyone there share me a hint where did I miss ? Thanks, On Aug 13, 10:32 pm, Chan Nguyen wrote: > :( ! > But now I ran into another issue : > undefined method `text' for # 0x..fb749fb58 browser=:firefox> (NoMethodError) > Could you give me a 'last' help ^_^?

[wtr-general] Re: How to verify a result in a pop-up message dialog?

2010-08-17 Thread Chan Nguyen
ir,http://watir.com > > On Fri, Aug 13, 2010 at 1:49 PM, Chan Nguyen wrote: > > Hi Kevy, > > Is there any other way to work around this problem without touching > > AutoIt? > > > On Aug 13, 12:16 pm, Super Kevy wrote: > > > You may consider the AutoIT exte

[wtr-general] Re: Differences between Watir, FireWatir, Webdriver ?

2010-08-14 Thread Chan Nguyen
Thanks Pallavi and Chris for clear explanation, I actually found out that webdriver are more consistent with watir then firewatir. firewatir does not regconize "frame nested" element and it run very slow comparing with webdriver. Here are the errors: ---

[wtr-general] Differences between Watir, FireWatir, Webdriver ?

2010-08-13 Thread Chan Nguyen
Hi everyone, I came across 3 *watir, and I think they're compatible with each other. My IE script that I wrote broke when using FireWatir and Webdrive :(. I just want to know what are significant differences between those three? Thanks ! ps: Why don't people make them become consistent and unique

[wtr-general] Re: Undefined method `contains_text' using Watir-webdrive

2010-08-13 Thread Chan Nguyen
:( ! But now I ran into another issue : undefined method `text' for # (NoMethodError) Could you give me a 'last' help ^_^? On Aug 13, 10:24 pm, Chan Nguyen wrote: > Great thanks Ethan ;) ! > > On Aug 13, 8:58 pm, Ethan wrote: > > > contains_text is deprecated

[wtr-general] Re: Undefined method `contains_text' using Watir-webdrive

2010-08-13 Thread Chan Nguyen
Great thanks Ethan ;) ! On Aug 13, 8:58 pm, Ethan wrote: > contains_text is deprecated and omitted from watir-webdriver. > seehttp://github.com/jarib/watir-webdriver/issues/closed#issue/7 > > On Fri, Aug 13, 2010 at 23:43, Chan Nguyen wrote: > > Hi everyone, > > When I

[wtr-general] Undefined method `contains_text' using Watir-webdrive

2010-08-13 Thread Chan Nguyen
Hi everyone, When I used watir with IE under Windows, everything worked fine. But when I tried with FF under Linux, the complier complained that : undefined method `contains_text' for # (NoMethodError) And my code snippet is : main_frame = browser.frame( :id, "Main_Body" ) if main_frame.contains_

Re: [wtr-general] Re: Check out the Watir Stack Exchange site!

2010-08-13 Thread Chan Nguyen
I think Watir should have its own land ( a forum ). I tried both Selenium, Watin and WebTest, but I'm in love w/ Watir. On Fri, Aug 13, 2010 at 1:22 PM, Chuck van der Linden wrote: > Too radical? I don't know. > > I agree something better is needed, google groups is not well suited > to a 'suppo

[wtr-general] Re: How to verify a result in a pop-up message dialog?

2010-08-13 Thread Chan Nguyen
Hi Kevy, Is there any other way to work around this problem without touching AutoIt? On Aug 13, 12:16 pm, Super Kevy wrote: > You may consider the AutoIT extension for reading the content of the > popup window > > On Aug 13, 11:06 am, Chan Nguyen wrote: > > > Hi Arihan

[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
ng needed there) > > you should ridicule your developers for being so old school, and not > keeping up with modern web design and development.  (grin) > > well ok maybe not ridicule, but I'd still give them some good natured > ribbing about how their outdated design is making

[wtr-general] Re: How to verify the browser contains text in another page?

2010-08-13 Thread Chan Nguyen
k to see if it exists? if browser.link( :id, "Module_3__ctl1__ctl0_hprOnlineHelp" ).exists? or if browser.link( :href, "http://media.rapmlsstg.com/help/ 10.01.01/" ).exists? For your first solution, I'm a little vague about "assuming you've attached to the new page&quo

[wtr-general] Re: How to verify a result in a pop-up message dialog?

2010-08-13 Thread Chan Nguyen
wrote: > is this a browser popup or window popup. > > if its browser pop up then its straight forward but if its window popup > then  you have to handle it differently > > Cheers > A > > On Fri, Aug 13, 2010 at 4:45 PM, Chan Nguyen wrote: > > Hi everyone, > &

[wtr-general] How to verify a result in a pop-up message dialog?

2010-08-13 Thread Chan Nguyen
Hi everyone, My situation is that I fill in a form then click search button. The result box will pop up with number of searches found. I want to verify the result in this textbox but I really have no idea how? Anyone could share me a hint? Thanks, -- Before posting, please read http://watir.com/

Re: [wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
Thanks again Željko. Simple enough, add "Trusted Sites" under Internet Explore Option ;) ! Sweet On Fri, Aug 13, 2010 at 7:17 AM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Fri, Aug 13, 2010 at 4:11 PM, Chan Nguyen wrote: > > Access is denied.

[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ input_elements.rb:568:in `clear' from C:/NetBeans Project/RubyApplication2/lib/main.rb:16 On Aug 13, 7:00 am, Chan Nguyen wrote: > Hi Željko again, > Thanks for your clear answer ;) ! I will keep this in mind "On

[wtr-general] Re: Unable to locate checkbox element ?

2010-08-13 Thread Chan Nguyen
Hi Željko again, Thanks for your clear answer ;) ! I will keep this in mind "Only Frame" ^_^ ! On Aug 13, 12:33 am, Željko Filipin wrote: > On Fri, Aug 13, 2010 at 5:59 AM, Chan Nguyen wrote: > > So this problem is only with "frame"? > > Yes. > > > I

Re: [wtr-general] Re: Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
ral&q=%3Ciframe%3E&qt_g=Search+this+group >> >> Or check the tutorial: >> http://wiki.openqa.org/display/WTR/Printable+Tutorial >> and >> http://wiki.openqa.org/display/WTR/Printable+Tutorial#PrintableTutorial-Frames >> >> On Aug 12, 4:34 pm, Chan Nguyen w

Re: [wtr-general] Re: Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
and > http://wiki.openqa.org/display/WTR/Printable+Tutorial#PrintableTutorial-Frames > > On Aug 12, 4:34 pm, Chan Nguyen wrote: > > Hi Ethan, > > > > Can you show me an example, I saw a Frame in Firebug. I couldn't copy the > > whole HTML when viewing with

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
nesting with most elements is no issue, but there is some mention of a > frame there. if it's inside a frame, then you'll need to access the frame > first, then the checkbox in the frame. > > On Thu, Aug 12, 2010 at 18:42, Chan Nguyen wrote: > >> This is wha

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
ot;).clear I think the reason that it failed because it's nested really deep. I can see a huge slope when viewing with Firebug. Is there another way to get around this issue? Thanks On Thu, Aug 12, 2010 at 3:28 PM, Chan Nguyen wrote: > Hi Arihan, > Yes, I checked the id name carefully

Re: [wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
ou have used i* > cblModules_0* > > > On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen wrote: > >> Hi everyone, >> I followed a very simple example in Watir tutorial website >> http://wiki.openqa.org/display/WTR/Checkboxes. >> Here is the element HTML code: >> &g

[wtr-general] Re: Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
if you're trying to check the checkbox you have listed there. > > On Aug 12, 2010, at 5:15 PM, Chan Nguyen wrote: > > > Hi everyone, > > I followed a very simple example in Watir tutorial website > >http://wiki.openqa.org/display/WTR/Checkboxes. > > Here is t

[wtr-general] Unable to locate checkbox element ?

2010-08-12 Thread Chan Nguyen
Hi everyone, I followed a very simple example in Watir tutorial website http://wiki.openqa.org/display/WTR/Checkboxes. Here is the element HTML code: Then I tried browser.checkbox( :id, 'icblModules_0' ).clear but the compiler keeps complaining : C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/

[wtr-general] Re: How to verify the browser contains text in another page?

2010-08-12 Thread Chan Nguyen
ext.include? > ("string_to_verify")) > rescue >   # log the failure if it fails. > end > > For some info on exception handling, check > outhttp://ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html(or > your favorite .rb reference doc). > > Hope it hel

[wtr-general] Re: How to access a href link which is a java script?

2010-08-12 Thread Chan Nguyen
5/classes/Watir/Element.html#M000557 > > Hope it helps. > > orde > > On Aug 12, 1:43 pm, Chan Nguyen wrote: > > > Hi, > > I used Firebug to locate the element, it's a text link. And here is > > element's HTML: > > Customize Home Page > > I

[wtr-general] How to access a href link which is a java script?

2010-08-12 Thread Chan Nguyen
Hi, I used Firebug to locate the element, it's a text link. And here is element's HTML: Customize Home Page I tried : ie.link( :class, "sWhiteLink" ).click but Watir does not regconize it? Any idea? Thanks, -- Before posting, please read http://watir.com/support. In short: search before you ask

[wtr-general] How to verify the browser contains text in another page?

2010-08-12 Thread Chan Nguyen
Hi everyone, I encountered a problem that when clicking on a link, it will open a separate page. In other words, I will have 2 pages, so if I want to verify the web is doing correctly? What should I do? 1. Verify text in a new opened page? 2. Verify some condition in current page? For both 1 & 2, I

[wtr-general] Re: How to click on a span id?

2010-08-12 Thread Chan Nguyen
e. > > On Aug 12, 2010 8:31 AM, "Chan Nguyen" wrote: > > I want to go to this pagehttp://norcalmls.rapmlsstg.com/ > And then click on "Find Properties - BAREIS MLS"; however I don't know > how :( ? I tried: > > browser.link( :id, "findarealtor&qu

[wtr-general] How to click on a span id?

2010-08-12 Thread Chan Nguyen
I want to go to this page http://norcalmls.rapmlsstg.com/ And then click on "Find Properties - BAREIS MLS"; however I don't know how :( ? I tried: browser.link( :id, "findarealtor" ).click But compiler said: Unable to locate element? Any idea? Thanks, -- Before posting, please read http://

Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-07-28 Thread Chan Nguyen
).fire_event "onmousedown" browser.cell( :text => "Quick" ).fire_event "onmouseup" Can I ask you about :text property? In the worst scenario without any information about element, you have to use :text? How about when we have exactly the same text in a pa

Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-07-28 Thread Chan Nguyen
e.rb:36:in `gem_original_require' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from C:/NetBeans Project/RubyApplication2/lib/main.rb:3 :( Further, the menu popped up but the "Quick Search" was not clicked. Thanks, Chan Nguyen On Wed, Jul 28, 2

Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-07-28 Thread Chan Nguyen
Hi Zeljko, Yes, Quick Search Page did not open. I'm running Windows Server 2003, FF 3.6.8, ruby 1.8.7. I don't have Watir-webdriver installed. Thanks, Chan Nguyen On Wed, Jul 28, 2010 at 8:50 AM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Wed, Jul 28, 20

Re: [wtr-general] Re: How to access element in a table ?

2010-07-28 Thread Chan Nguyen
Hi Basim, Could you help me explain why table[7][1] is a Quick Search ? I'm a bit confused about this case. Thanks, Chan Nguyen On Wed, Jul 28, 2010 at 8:29 AM, Chan Nguyen wrote: > Hi Basim, > > Thanks a lot for your clean explanation. ;) > > > On Wed, Jul 28, 2010 at

Re: [wtr-general] Re: How to access element in a table ?

2010-07-28 Thread Chan Nguyen
nts > > > On Wed, Jul 28, 2010 at 10:49 AM, Chan Nguyen wrote: > >> Hi Basim, >> >> >> If your credentials contain sensitive information, I strongly recommend >> changing the password as google has probably already indexed this thread >> >> Thank

Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-07-28 Thread Chan Nguyen
Hi Zeljko, I tried your solution, but it did not work out :( ! And can I ask you what's difference between => and , in those context? On Wed, Jul 28, 2010 at 7:57 AM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Wed, Jul 28, 2010 at 4:54 PM, Chan Nguyen wrote:

Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-07-28 Thread Chan Nguyen
Hi Zeljko, Thanks a lot for your help. I found out that the document for Watir still had very few examples. Could you write some more about how to deal with JavaScript, and other advanced features? That would be awesome for Watir community and for me too ^_^. Thanks, Chan Nguyen On Wed, Jul 28

Re: [wtr-general] Re: How to access element in a table ?

2010-07-28 Thread Chan Nguyen
"onmouseup" > > If your credentials contain sensitive information, I strongly recommend > changing the password as google has probably already indexed this thread > > Good Luck! > > Basim Baassiri > > > On Wed, Jul 28, 2010 at 10:34 AM, Chan Nguyen wrote:

Re: [wtr-general] Re: How to access element in a table ?

2010-07-28 Thread Chan Nguyen
on each individual option of Search( Quick Search, Custom Search ) to test, but I could not find a way to make it work. If you have a chance, would you mind taking a look at it? On Wed, Jul 28, 2010 at 7:33 AM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Wed, Jul 2

Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-07-28 Thread Chan Nguyen
-- And this is a table with one row and 8 columns. The first element [1][1] is Search, which will call the JS to process all the search options. When you move your mouse over "Search", you will see all the others options. I want to clic

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Chan Nguyen
t; td is now the cell at row 2, column 1 of your table. >> >> There's more information on the Table class in the Watir API >> reference: >> >> http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Table.html >> >> Hope this helps! >> >> -Tiffany

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Chan Nguyen
iable: > > my_cell = ie.table(:id, "uwmMainMenu_MainM" )[2][1] > my_cell.link(:text, 'Quick Search').click > > > -Tiffany > > On Jul 27, 2:25 pm, Chan Nguyen wrote: > > Hello Tiffany, > > Thanks for your help. I actually did go through that example, b

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Chan Nguyen
rds')[2][1] > > td is now the cell at row 2, column 1 of your table. > > There's more information on the Table class in the Watir API > reference: > > http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Table.html > > Hope this helps! > > -Tiffany > >

Re: [wtr-general] How to access element in a table ?

2010-07-27 Thread Chan Nguyen
y and use firebug to identify element > http://getfirebug.com/downloads > > <http://getfirebug.com/downloads>Basim > > > On Tue, Jul 27, 2010 at 3:17 PM, Chan Nguyen wrote: > >> down vote favorite >> >> >> Hi everyone, >> >> I'

[wtr-general] How to access element in a table ?

2010-07-27 Thread Chan Nguyen
down vote favorite Hi everyone, I'm current writing a test script for our MLS( Multiple Listing System ) systems. The website is mainly written in C# .NET. Here is the screenshot that I got: http://i235.photobucket.com/albums/ee62/rox_rook/Ex-1.gif And this is the HTML source: Search

[wtr-general] Re: How can I fill in a form with username and password ?

2010-07-27 Thread Chan Nguyen
Got it solved, just use ie.text_field( :id, "username" ).set "some user name" Thanks everyone for reading this thread ;) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.goo