[wtr-general] Re: background testing

2008-10-14 Thread wesley chen
$HIDE_IE=true --:) Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Befo

[wtr-general] Re: How to capture data from a web page in Watir?

2008-10-15 Thread wesley chen
I think the html code you provided is too little and not reasonable. If you want to capture so little data on this page, you can use regular expression. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message b

[wtr-general] Re: How can i attach popup window in Watir 1.5

2008-10-15 Thread wesley chen
def get_new_win() # get a handle if one exists aa = Win32API.new("user32", "GetForegroundWindow",[] , 'L') hwnd = aa.call if (hwnd) # yes there is a popup return Watir::IE.attach(:hwnd, hwnd) else return nil end end ie1=W

[wtr-general] Re: How to call ruby script from another ruby script

2008-10-15 Thread wesley chen
1. Create rb file 1: test1.rb class Test1 def get_s(str) puts str end end test1=Test1.new test1.get_s("test1 rb") 2. Create rb file 2: test2.rb require 'watir' class Test2 def test2(str) puts str end end test2=Test2.new test2.test2("In test2") 3. Create rb file 3:

[wtr-general] Re: background testing

2008-10-15 Thread wesley chen
Sound great, I will have a try of virtualbox. Hi, Paul, which VM is the best in your opinion? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Wat

[wtr-general] Re: How to verify button enable/disable property

2008-10-16 Thread wesley chen
Would you try wait_until {frm_strip.button(:id, "btnAddDeals").enabled?} Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to

[wtr-general] Re: How to locate the element with node(child node, father node) or directory attributes?

2008-10-17 Thread wesley chen
Hi, Bret, When we use parent, we can go to one level parent node, but if I would like to go to the root node directly, how to make it? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Re: Watir and FunFX, can't find flex object.

2008-10-20 Thread wesley chen
When you ask this kind of problem, would you please provide us with the detailed html information, or url, or pictures? That will be easy for your question and you can study it with target. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---

[wtr-general] Re: How to upload a file in Chinese operation system?

2008-10-27 Thread wesley chen
Hi, Apple, Thanks very much, I will try your comment later in my machine. In Chinese operation system, we can only upload the attachment by the method of autoit? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You receive

[wtr-general] Re: How to upload a file in Chinese operation system?

2008-10-28 Thread wesley chen
Hi, Wiston, Your script won't work, it just open the choose file dialog and then hang. Would you please retest the script again? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Attaching another frame to my ie object

2008-10-29 Thread wesley chen
1. Put something into the document frame field: ie.frame(:id, "").document.body.focus ie.send_keys("str") 2. Put the html out in the document frame field: puts ie.frame(:id, "").document.body.innerHtml (or innerText) 3. elements in frame ie.frame(:name, //).link(:id,//).click If you have any other

[wtr-general] Re: Watir does not work with Orkut JS hacks

2008-10-29 Thread wesley chen
You just need use focus, such as: ie.frame(:id, //).document.body.focus ie.send_keys(...) Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General"

[wtr-general] Re: Firewatir support for cookies

2008-10-31 Thread wesley chen
That's great!, I think it is quite useful. Thanks. Wesley Chen. If you think I can help you, please tell me, I will try my best. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group.

[wtr-general] Re: Firewatir support for cookies

2008-11-01 Thread wesley chen
e the page passed. Do you think so? Thanks. Wesley Chen. If you think I an help you, please tell me, I will try my best. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this

[wtr-general] Re: How can I get the text in the frame text field?

2008-11-01 Thread wesley chen
ment.body.innerHtml to put the content in the frame out, How can I make it use other method? Any suggestion would appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General&

[wtr-general] Re: How can I get the text in the frame text field?

2008-11-02 Thread wesley chen
Hi, Tony, I get the checkbox unchecked in Tool | Internet options, and I turn to my site, it works. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to

[wtr-general] How to transfer the data to the format we want?

2008-11-02 Thread wesley chen
How to convert the data to the format we want? When I want to change 1234.789 to 1234.78, I can use: sprintf("%.2f", 1234.789) But if I want to change 1234.789 to 1,234.78, how can I make it? Any suggestion would be appreciated. Thanks. W

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-04 Thread wesley chen
the FF, when I use Watir::Browser.attach(:title, / /), what do I need to require? Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send emai

[wtr-general] Re: Microsoft Sharepoint & Watir

2008-11-10 Thread wesley chen
I think it is not hard to cope with your problem. Would you please provide us with the code or the html page? Thanks. Wesley Chen. On Mon, Nov 10, 2008 at 5:31 PM, Keith Johnston <[EMAIL PROTECTED]>wrote: > makes the cell (with the document na

[wtr-general] wait_until doesn't work.

2008-11-10 Thread wesley chen
efined. Then, I require 'watir' and include Watir, use watir_until, it said that, no such file to load: safariwatir What's the problem? Do I have to uninstall the watir and rubygem and then install again? Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You

[wtr-general] Re: wait_until doesn't work.

2008-11-10 Thread wesley chen
I got it work following Tony's help. Example: Watir::Waiter.wait_until { ff.text.include?("china")} Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" gro

[wtr-general] Re: Microsoft Sharepoint & Watir

2008-11-10 Thread wesley chen
Hi, Keith, In fact, somebody has met the problem as you referred, please go to http://groups.google.com/group/watir-general/browse_thread/thread/59fac3f95c6bb799/ec4b133621759c8c?lnk=gst&q=fire_event#ec4b133621759c8c Thanks. Wesley Chen. --~--~-~--~~~---~--~~

[wtr-general] Re: How to get the system date to my text field.

2008-11-11 Thread wesley chen
Yes, require 'time' is not required in Watir. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@goo

[wtr-general] Any doc and articles about performance test with watir?

2008-11-12 Thread wesley chen
test, load test? Documents and articles are also quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to wat

[wtr-general] Re: Locating elements in a lightViewIFrame class?

2008-11-13 Thread wesley chen
It works for click the close div in the Pop up dialog, I think you can also click something other elements if you rewrite the Li method. ie.image(:src,/yellow_thumb/).click ie.div(:class, "lv_Button lv_Close").click Thanks. Wesley Chen. --~--~-~--~~~---~--

[wtr-general] It displays error message when I use method bring_to_front.

2008-11-13 Thread wesley chen
eate WIN32OLE object from `AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x8007007e I am sure the code can work in few days ago, Have I made something wrong? I just uninstall watir 1.5, watir 1.6.1 and keep watir 1.6.2 in m

[wtr-general] Re: It displays error message when I use method bring_to_front.

2008-11-14 Thread wesley chen
Thanks Tony, it works! Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, pleas

[wtr-general] Re: Adding Date

2008-11-17 Thread wesley chen
You may try: require 'watir' puts Date::today.succ.strftime("%d-%b-%Y") Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this grou

[wtr-general] Re: Text field Numeric Issue

2008-11-18 Thread wesley chen
ie.frame is a win32ole object, table can't be its method, so you can't locate the object in frame with ie.frame( ).table Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir Gen

[wtr-general] Re: Text field Numeric Issue

2008-11-18 Thread wesley chen
Sorry, I have made a mistake, ignore what I said. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@google

[wtr-general] Re: HTML report class

2008-11-19 Thread wesley chen
Thanks John, The code works quite well. I think we can change the code, make it more beautiful and adapt to our project. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General"

[wtr-general] Re: following object is not identified in watir

2008-11-19 Thread wesley chen
urn false end end upload_file($ie, "c:\\123.txt") Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to wa

[wtr-general] Re: Unable to enter message in Hotmail!

2008-11-20 Thread wesley chen
Hi, Margam, Please try code below: ie.div(:id, "RichTextEditor_surface").focus ie.send_keys("hello") Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General"

[wtr-general] Re: Is it possible to run all tests one by one

2008-11-24 Thread wesley chen
Of course you can! You can run the test step by step, add exception handle. Such as the code below. require 'watir' require 'watir/testcase' class Test1 http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at

[wtr-general] Re: How to click dijit button char

2008-11-24 Thread wesley chen
We can't see the effect when we click the ▼ through your html. Would you please provide us html page more detailed that, it shows what happens when we click the arrow? Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subsc

[wtr-general] Re: get text from page (regex) & assign to variable

2008-11-25 Thread wesley chen
You have to: workspace.text_field(:id,"NUM_prcsdProductId").set(* pproduct_no.to_s*) Because the pproduct you created is just a matchdata, not a string, you have to change the format manual. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received th

[wtr-general] Re: How to check a text_field focus status

2008-11-25 Thread wesley chen
en tell from if ie.text_field( ).value.eql?("hello") do something, next step else do something other, next step end Expect it could help. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: Frame access

2008-11-30 Thread wesley chen
Try ie.frame(:id,...).frame(:id, ...).table(:index,...).click Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to wat

[wtr-general] Re: "Find Pop-up text and close" function is not working

2008-11-30 Thread wesley chen
In face, you absolutely can search quite great solutions for the problem in the group. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, sen

[wtr-general] Security Information pop-up turns up two times, how to deal with the input between the two pop-up turning up?

2008-11-30 Thread wesley chen
me").set("[EMAIL PROTECTED]") ie.text_field(:id,"password").set("11") ie.image(:src,/images\/log-in.gif/).click @@autoit.WinWait "Security Information", "" @@autoit.Send("!y") Any suggestion would be appreciated. Thanks. Wesley

[wtr-general] Re: Security Information pop-up turns up two times, how to deal with the input between the two pop-up turning up?

2008-12-02 Thread wesley chen
I tried both your suggestion, but it doesn't work. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@g

[wtr-general] Re: How to click the ► on the page?

2008-12-02 Thread wesley chen
wo method below can work: ie.cell(:id,/td0/).click ie.element_by_xpath("//td[contains(@onclick,'workoutNum')]/").click Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" g

[wtr-general] Re: How works file_field set method

2008-12-04 Thread wesley chen
).set(filepath) end ie=Watir::IE.attach(...) upload_file(ie,"c:\\Calendar_Day_Add+1.jpg") upload_file(ie, "c:\\TC_TRAIN_3156.xls",2) Thanks. Wesley Chen. On Thu, Dec 4, 2008 at 10:49 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi, > > I try to find all over

[wtr-general] Re: Dealing with Java script pop up -- Please help

2008-12-04 Thread wesley chen
le,/javascript/) ie.link(:text,/click/i).click_no_wait popup_clicker(ie,"OK") Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, s

[wtr-general] Re: Methods

2008-12-04 Thread wesley chen
require 'watir' require 'rubygems' require 'watir/testcase' # First, you have to require 'watir/testcase' class Test1 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/wat

[wtr-general] Re: do not know how to give input to a text box, which does not have a standard class or property in its HTML

2008-12-10 Thread wesley chen
Try the comment below: ie.frame(:id,//).document.body.focus ie.send_keys("hello") Thanks. Wesley Chen. On Thu, Dec 11, 2008 at 10:32 AM, Vijay <[EMAIL PROTECTED]> wrote: > Developer toolbar', it focuses on the tag in the below 'html > --~--~-~--~~-

[wtr-general] Re: do not know how to give input to a text box, which does not have a standard class or property in its HTML

2008-12-11 Thread wesley chen
:), Welcome. Thanks. Wesley Chen. On Thu, Dec 11, 2008 at 5:04 PM, Vijay <[EMAIL PROTECTED]> wrote: > > Wesley, > > Thank you so much for your reply. Your code worked like a gem and > solved the problem. > > Thanks, > Vijay. > > On Dec 11, 11:50 am, &qu

[wtr-general] Re: persistant 'about:blank' window on Vista.

2008-12-28 Thread wesley chen
Thanks. Wesley Chen. On Sat, Dec 27, 2008 at 10:40 PM, aidy lewis wrote: > > Hi, > > I am not currently at home, so I am on a Vista machine. > > Has anyone seen a persistant 'about:blank' ie window on Vista? > > require 'watir' > Watir::Browse

[wtr-general] Re: persistant 'about:blank' window on Vista.

2008-12-28 Thread wesley chen
ie=Watir::IE.attach(:title,//) ie.goto("www.gmail.com") Thanks. Wesley Chen. On Mon, Dec 29, 2008 at 9:52 AM, wesley chen wrote: > > Thanks. > Wesley Chen. > > > > On Sat, Dec 27, 2008 at 10:40 PM, aidy lewis wrote: > >> >> Hi, >> >&

[wtr-general] Re: row_count incorrect value returned

2009-01-06 Thread wesley chen
Would you please provide us with the source code? Thanks. Wesley Chen. On Sat, Jan 3, 2009 at 7:32 AM, dmitry...@gmail.com wrote: > > Also I should mention that this table is dynamic, so a user can upload > and delete images etc. from it on the front end. > > On Jan 2, 5

[wtr-general] Re: Multiple Attributes Issue

2009-01-08 Thread wesley chen
I think text_field doesn't support multiple attributes in this release. Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 3:32 AM, Moochie wrote: > > > $ie.text_field(:id=>'diagnosis_date',:index=>index) > > Creates a error > > send:{index=2, :id+>diagn

[wtr-general] Re: Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-09 Thread wesley chen
n Watir::IE.attach(:hwnd, hwnd) else return nil end end if (ie2=new_window) ie2.button( ).click end Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 2:42 PM, asheesh misra wrote: > ipt code opens a new browser window (withou --~--~-~--~~~---~-

[wtr-general] Re: About Javascript Popups/Dialogue Box

2009-01-09 Thread wesley chen
ndowsButton_hwnd(hwnd, "#{button}") w=nil end end Expect the code above can help some of you guys. Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 2:44 PM, Wilson Xu wrote: > Hi guy,whether it can work or not? > > > On Fri, Jan 9, 2009 at 2:36 PM, wrote: >

[wtr-general] Re: Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-09 Thread wesley chen
Would you please provide all your code? I think your code is not good enough. And I don't know what you ask me in this issue. Expect I can help you. end Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 6:27 PM, asheesh misra wrote: > Hi Wesley, > > Very many thanks for th

[wtr-general] Re: Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-09 Thread wesley chen
ie2 Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 10:15 PM, wesley chen wrote: > Would you please provide all your code? I think your code is not good > enough. > And I don't know what you ask me in this issue. > > Expect I can help you. > > end > > > Thanks. &

[wtr-general] Re: Please help - getting error 'Unable to locate element'

2009-01-10 Thread wesley chen
Really warm heart man! Support you. Thanks. Wesley Chen. On Sat, Jan 10, 2009 at 10:04 PM, gem dandy wrote: > > Hello H2006, > > If you can't identify the element with the IE Developer toolbar > or Firebug (my favorite), Give Webmetrics a try. It's basically > a Wat

[wtr-general] Re: Full Screen [F11] FireFox

2009-01-11 Thread wesley chen
$ie.maximizeor $firefox.maximize Thanks. Wesley Chen. On Mon, Jan 12, 2009 at 12:22 AM, Dhanalaxmi wrote: > > Hi All > > Using following > ie.getIE.parent.FullScreen = true > > internet explorer window can be made full screen. > How should i achi

[wtr-general] How to deal with two security information pop-up with Watir script?

2009-01-11 Thread wesley chen
Watir Script? Open a browser --> Input the URL --> click "Yes" on Security Pop up ---> Input account information ---> click "Yes" again on the Security Pop up. Appreciated to your help. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You rec

[wtr-general] Re: Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-12 Thread wesley chen
rch')]/").click Thanks. Wesley Chen. On Mon, Jan 12, 2009 at 3:29 PM, asheesh misra wrote: > Hi, > > Here is the code that I am trying: > #--- Ruby code starts here > require 'watir' > require 'date' > require 'time' &g

[wtr-general] Re: watir click_no_wait hangs my code

2009-01-12 Thread wesley chen
If you write the code as above, you can never print out the text.The click_no_wait method is waiting for a pop up, if no pop up, it will wait all the time. Thanks. Wesley Chen. On Mon, Jan 12, 2009 at 3:30 PM, mbaruah wrote: > > In my ruby(1.8.6)/watir code I am currently making

[wtr-general] Re: Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-12 Thread wesley chen
Both below comment can locate the image button, too. ie.button(:xpath,"//[contains(@onclick,'ocationCode')]").click ie.button(:xpath,"//button[contains(@onclick,'ocationCode')]").click Thanks. Wesley Chen. On Mon, Jan 12, 2009 at 4:09 PM, wesley chen

[wtr-general] Re: How to deal with two security information pop-up with Watir script?

2009-01-12 Thread wesley chen
Excellent! When I follow your advise and change the setting, both the two security pop ups are avoided, :), Really appreciate to you. Thanks. Wesley Chen. On Tue, Jan 13, 2009 at 1:52 AM, Michael Hwee wrote: > Wesley, > Just set the configuration to get rid of it. > > Goto: Inte

[wtr-general] Re: Access an object

2009-01-13 Thread wesley chen
We can't use "set", "exists?" and many other methods after comment :element_by_xpath Thanks. Wesley Chen. On Wed, Jan 14, 2009 at 12:46 AM, TCBlues wrote: > > Thanks for your answer. > > In the case the object is a textField or a listField

[wtr-general] Re: Access an object

2009-01-14 Thread wesley chen
Thanks very much. I study from you again, :) Thanks. Wesley Chen. On Wed, Jan 14, 2009 at 11:59 AM, Richard Lawrence wrote: > > You don't get back the specific object type from element_by_xpath, so > some methods don't work. But this works: > > b = Watir::IE.new > b

[wtr-general] Re: Clicking a JavaScript image button

2009-01-15 Thread wesley chen
require 'watir' ie=Watir::IE.start(your address) ie.image(:id,/btnLogin_imgButton/).click Thanks. Wesley Chen. On Thu, Jan 15, 2009 at 8:04 PM, Oded wrote: > > Hello all, > I'm fairly new to Watir, I'm trying to click on a certain image button > with no su

[wtr-general] Re: Code hangs after a div click

2009-01-15 Thread wesley chen
What's the detail information about your div? When the div is clicked, what will happen? Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 9:14 AM, Michael Hwee wrote: > > > Try click_no_wait() > > > > - Original Message > From: "zeng0...@gmail.com"

[wtr-general] Re: Clicking a JavaScript image button

2009-01-15 Thread wesley chen
mousedown") or... ie.image(:id,/btnLogin_imgButton/).click Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 3:29 AM, Oded wrote: > > I've tried this previously to posting the thread, > this gives the same result as the thing I posted, resulting in no > error nor action. > >

watir-general@googlegroups.com

2009-01-16 Thread wesley chen
, "Skip for now >>").click > which did not work. I believe the character is actually ». > > Solutions? > > Thanks, > Jeremy > > > > -- Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: using a table cell variable

2009-01-16 Thread wesley chen
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:99:in `[]' > > > This will work the though > > browser.table(:id, /Search_ItemDetail_SpoolGrid/)[15][3].text > > Aidy > > > > -- Thanks. Wesley Chen. --~--~-~--~~~---~--~~ Yo

[wtr-general] Re: Issue with using arguments within Open Office (column, row) code

2009-01-19 Thread wesley chen
Why don't you put your solution here and let more people learn from you? Why do you let others consult to you privately? Thanks. Wesley Chen. On Tue, Jan 20, 2009 at 2:26 AM, dmitry...@gmail.com wrote: > > Thanks guys for the comments guys, I already got it to work. Turned >

[wtr-general] Re: Recognizing the Search Text Box

2009-01-20 Thread wesley chen
Please try the code below. require 'watir' $ie=Watir::IE.attach(:title,//) $ie.text_field(:name,'q').flash $ie.text_field(:name,'q').set("Google search") $ie.button(:value,/Search/).click Thanks. Wesley Chen. On

[wtr-general] Re: Recognizing the Search Text Box

2009-01-21 Thread wesley chen
Try code below: require 'watir' $ie=Watir::IE.start("http://www.lijit.com/users/seatanaka";) $ie.form(:id,/pvssearchbox_form/).text_field(:name,'q').set("wahine") $ie.button(:value,/Search/).click Thanks. Wesley Chen. On Thu, Jan 22, 2009 at 5:20 AM,

[wtr-general] Re: Issue with using arguments within Open Office (column, row) code

2009-01-21 Thread wesley chen
Thanks, when we put our opinion here, we may study more from others suggestion. Thanks. Wesley Chen. On Thu, Jan 22, 2009 at 12:46 AM, dmitry...@gmail.com wrote: > > Hey Wesley, Sure thing. Will put up the solution here tonight. :) Just > wanted to make sure I explain it clear as it&#

[wtr-general] Re: Recognizing the Search Text Box

2009-01-21 Thread wesley chen
You're welcome. Thanks. Wesley Chen. On Thu, Jan 22, 2009 at 3:34 PM, ST wrote: > > This code worked! Thanks so much for your help and quick replies, > Wesley! > > On Jan 21, 6:30 pm, wesley chen wrote: > > Try code below: > > require 'watir' >

[wtr-general] Re: Eclipse is displaying the execution summary

2009-02-04 Thread wesley chen
Maybe, Netbeans may be a good choice. I use it and find it really convenient. Thanks. Wesley Chen. On Thu, Feb 5, 2009 at 1:10 AM, Bret Pettichord wrote: > > I used to use eclipse this way, and have had similar troubles and now > just run my tests from the command line. I still us

[wtr-general] Re: Handle 2 text boxes with same name

2009-02-09 Thread wesley chen
try: @ie.text_field(:name => 'ngids', :index=> 2).set('ATP00594978') Thanks. Wesley Chen. On Mon, Feb 9, 2009 at 2:04 PM, Venugopal Devarakonda < venugopal.devarako...@gmail.com> wrote: > Hi: > > The attached the snap shot of my webpage which has 2

[wtr-general] How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread wesley chen
Is anybody familiar with the functions? Really appreciate to your help. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir

[wtr-general] Re: How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread wesley chen
columns, so we'll use the transpose method to # convert it to an array of rows @data = @data.transpose end def close @connection.Close end end db = SqlServer.new('localhost', 'user_id', 'user_p

[wtr-general] Re: How to get the data in a SQL 2005 database table with ruby?

2009-02-11 Thread wesley chen
Hi, Aidy, Thank you for your reply. I tried yours but failed. 1. Would you please provide an example about how to use the methods you provide? 2. Before run the methods you provide, do I need pay extra attention on something? Expect to yours. Thanks. Wesley Chen. On Thu, Feb 12, 2009 at 12:25

[wtr-general] Re: How to Include a ruby Program inside another Ruby Program

2009-02-12 Thread wesley chen
Try require File.dirname(__FILE__)+'/../***.rb Thanks. Wesley Chen. On Fri, Feb 13, 2009 at 12:46 PM, malar wrote: > > Hi, > I have to include a ruby program inside another ruby program. > i used the following command, > > require ' logintest.rb&#x

[wtr-general] Re: Variable expansion inside XPath syntax

2009-02-12 Thread wesley chen
You may try this: levelone_dropdown = 'Accounts' $browser.element_by_xpath("//dl/dt[contains(text (),'#{levelone_dropdown}')]").click Thanks. Wesley Chen. On Fri, Feb 13, 2009 at 12:52 PM, Jason wrote: > > I seem to get myself stuck every Friday evening w

[wtr-general] Re: problem in clicking span

2009-02-13 Thread wesley chen
Would you please provide more detail html information? Thanks. Wesley Chen. On Fri, Feb 13, 2009 at 7:32 PM, jam wrote: > > Hi, > > Iam having a menu which is getting identified as a link. when I click > it iam getting a sub menu. where the submenu items are getting > id

[wtr-general] How to make the regular expression support chinese?

2009-02-16 Thread wesley chen
the browser window by regular expression with chinese in it? Appreciated to any help. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send

[wtr-general] Re: Radio button

2009-02-16 Thread wesley chen
Why don't you try $ie.radio(...).checked? Thanks. Wesley Chen. On Tue, Feb 17, 2009 at 2:44 PM, jam wrote: > > Hi, > > how to check whether radio button is set or not. I tried with set?. > does't work. How to d

[wtr-general] Re: How to check whether table cell is enabled or not?

2009-02-17 Thread wesley chen
Is it OK object.disabled? Thanks. Wesley Chen. On Wed, Feb 18, 2009 at 2:22 PM, Prince3105 wrote: > > Hi Experts, > > I am a newbie to watir, in my application i have a scenario to check > whether the table cells are enabled or not, after committing. > > I used obj.enable

[wtr-general] Re: Want to deactivate the option of receiving mails from watir group

2009-02-19 Thread wesley chen
I will unsubscribe you right now. Thanks. Wesley Chen. On Fri, Feb 20, 2009 at 1:31 PM, Parul Upadhyay wrote: > Hi friends, > > I need ur help regarding my account with watir. > > I want to unsubscribe my mail Id as I get around 50-60 mails per day and > even more than 50-

[wtr-general] Re: Want to deactivate the option of receiving mails from watir group

2009-02-19 Thread wesley chen
Sorry, I can't find the email of: parul.upadh...@infogain.com in the group. Thanks. Wesley Chen. On Fri, Feb 20, 2009 at 1:38 PM, Dharmendra wrote: > Hi Parul,For this you need to send a mail to > watir-general-unsubscr...@googlegroups.com > for this you will get a confirm

[wtr-general] Re: Hiding the browser

2009-02-20 Thread wesley chen
Add $HIDE_IE=true before your IE process has been created. Thanks. Wesley Chen. On Sat, Feb 21, 2009 at 1:59 AM, Jason Shelton wrote: > All, > > Is there a new way of hiding the browser with Watir? It seems that > ie.visible = false no longer works. Thanks alot. &

[wtr-general] Re: Unable to open IE window

2009-02-23 Thread wesley chen
goes well. Thanks. Wesley Chen. On Tue, Feb 17, 2009 at 4:32 AM, Ben wrote: > > Hi Jaz, > > No... I didn't contact Daniel Berger yet because I wanted to do some > more tests. I added more debug info to the involved gems and I found > that the problem occurs at lin

[wtr-general] Re: Hiding the browser

2009-02-23 Thread wesley chen
There are many kinds of pop up window. Which kind would you like to forbid? You can search on the net about how to avoid the pop up by setting in Internet -> Option. You many make a summary about it. That would be helpful to all of us. Thanks. Wesley Chen. On Mon, Feb 23, 2009 at 10:27

[wtr-general] Re: Unable to open IE window

2009-02-24 Thread wesley chen
, 2.1.1) activesupport (2.2.2, 2.1.1) with dependent attributes then select the old version After that, I won't need restart my system and uninstall ruby, I find: require 'watir' $ie=Watir::IE.new can work. You may have a try. If you failed, you can do as the previous letter. Than

[wtr-general] Re: Unable to open IE window

2009-02-24 Thread wesley chen
Sorry, we can also remove the old version of actionmailer (2.2.2, 2.1.1) actionpack (2.2.2, 2.1.1) activerecord (2.2.2, 2.1.1) activeresource (2.2.2, 2.1.1) activesupport (2.2.2, 2.1.1) We can remove all the 2.1.1 version because the 2.2.2 dependent with each other with 2.2.2 Thanks. Wesley Chen

[wtr-general] Re: $ie.maximize

2009-03-03 Thread wesley chen
If you install Ruby in your c:\, please run command: regsvr32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3.dll Thanks. Wesley Chen. On Tue, Mar 3, 2009 at 5:23 PM, Vikas Tulashyam wrote: > > Hi Friends, > I am not able to use the maximize method of IE class. Pleas

[wtr-general] Re: Add date

2009-03-03 Thread Wesley Chen
Hi, Prince, please try the code below: require 'watir' def date_validation( source, count, operation) start_date = source date = Date.strptime(start_date, '%d-%b-%Y') if operation == "a" or operation=="A" date += count elsif operation == "d" or operation=="D" date-

[wtr-general] Re: Sleep function

2009-03-04 Thread wesley chen
If you want to sleep 5 mins, please try the code below: require 'watir' t=Time.now while (Time.now-t)<1 sleep 300 end puts "OK" Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[wtr-general] Re: link tag

2009-03-05 Thread wesley chen
Try the code below $ie.links.collect { |link| puts link.href } Thanks. Wesley Chen. On Thu, Mar 5, 2009 at 8:07 PM, TCBlues wrote: > > Hallo, > I have this on the html: > > How is possible to get access to this tag? I need to get the href. > > It's not possible thro

[wtr-general] Re: script for div class using ruby watir

2009-03-06 Thread wesley chen
I tried you methods, they are all OK. Thanks. Wesley Chen. On Fri, Mar 6, 2009 at 10:05 PM, suresh babu wrote: > > > > > > > > > > > > > > Iam trying to click on add button using Ruby

[wtr-general] How to change the array to a string?

2009-03-10 Thread wesley chen
Suppose I have an array arr1 like: ["2", "3", [2, 3, "2"]] When I use: p arr1, I will get: ["2", "3", [2, 3, "2"]] I would like to save the ["2", "3", [2, 3, "2"]] as a string "

[wtr-general] Re: How to change the array to a string?

2009-03-10 Thread wesley chen
Hi, LFldnl, Thank you very much, that's exactly what I want. Thanks. Wesley Chen. 2009/3/10 LFIdnl > ["2", "3", [2, 3, "2"]] > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] How to shrink to fit in Excel?

2009-03-10 Thread wesley chen
When I practice on excel methods, I can make the columns a:d to autoFit by: @@worksheet.columns("a:d").AutoFit Is there any method shrink to fit? Can anybody provide the documents or url talking about MS excel methods? Appreciate to any suggestion. Thanks. W

<    1   2   3   4   >