[wtr-general] Re: cant get an element

2010-07-20 Thread George
It looks like it's wrapped in a p tag, which should be accessible via Watir: puts @browser.p(:class, wpFieldValue).text This has worked for me in the past. -George On Jul 15, 2:18 am, ryanthescot ryanthes...@hotmail.com wrote: span class=wpFieldViewContent

[wtr-general] Find whether a tree has nodes under it

2010-07-20 Thread Ashok Prabhu
I have a web application which has a tree structure. I m using Watir to automate the application. Sometimes the test case fails where the tree group is empty (no nodes under it). Hence there is no plus sign to its left. However the application expects it to have nodes and fails. How do I find out

[wtr-general] link click no updates

2010-07-20 Thread lance
Hi, newbie to watir and have question regarding on clicking the link but page doesn't updated. During the execution I saw highlighted yellow to the title link but the page did not changed. Saw same problem on the thread but does not really fixed the problem. Below is the command and the source

[wtr-general] Calling external javascript function from cell tag attribute

2010-07-20 Thread Bruno Wüest
I have some basic experience with watir, but struggle to get a javascript function called. More specifically, I try to get firewatir execute a javascript function which is embedded in a table cell. This cell contains a function to get a table with new results from a database query. It looks like

[wtr-general] IE8 Update Broke Watir Support

2010-07-20 Thread mattchurchy
Is anyone else having problems getting Watir to work with Internet Explorer 8 after latest minor update pushed out by Microsoft. I'm now on version 8.0.7600.16385. It worked fine until the update yesterday, when `bam` it stopped working. My problem is when calling: @ie = Watir::IE.new

Re: [wtr-general] Help: cant get jSSH to work on windows 2003

2010-07-20 Thread Basim Baassiri
Eddie, Is your firewall blocking access to the port? On Mon, Jul 19, 2010 at 10:35 PM, Eddie ed...@mattermedia.com wrote: win2003 SP2 R2 x86 FF 3.6.6 jSSH XPI for FF 3.6 i am installed portable* FF as admin. in installed the XPI as admin. i start firefox with firefox.exe -jssh, as admin. i

Re: [wtr-general] Find whether a tree has nodes under it

2010-07-20 Thread Basim Baassiri
Hi Ashok Its difficult to answer your question with no code example or html output But I'm guessing if you check to see if the count (of nodes) is equal to zero. Good Luck On Tue, Jul 20, 2010 at 12:33 AM, Ashok Prabhu ashokprab...@gmail.comwrote: I have a web application which has a tree

[wtr-general] Re: Find whether a tree has nodes under it

2010-07-20 Thread Tiffany Fodor
Hi Ashok! It's difficult to help with a solution with none of your code samples or example html for the element you're trying to work with. As a guess, I'd check to see if the plus sign image exists before performing an action on the element next to it. You also might be able to use the :after?

[wtr-general] Re: link click no updates

2010-07-20 Thread Tiffany Fodor
Hi! Have you tried firing the javascript event associated with the link? ie.link(:id,navigationTree:systemTargetProvisioningTypeCommand).fire_event('onclick') I'd give this and your link click command a shot in irb to see if it works. Hope this helps! -Tiffany On Jul 20, 1:57 pm, lance

[wtr-general] Re: Help: cant get jSSH to work on windows 2003

2010-07-20 Thread Eddie
No, there was no firewall. server used only IPsec, and even with IPsec OFF, i still had the problem. I solved it by using FF 3.5.10 (and xpi 3.5). The problem that I had then was: Win32::Registry::Error in ProcessController#index The system cannot find the file specified. RAILS_ROOT:

Re: [wtr-general] Re: link click no updates

2010-07-20 Thread roland panganiban
Thank you for the responsed, yes already tried the fire_event command and still the page can't be loaded. Roland On Tue, Jul 20, 2010 at 4:44 PM, Tiffany Fodor tcfo...@comcast.net wrote: Hi! Have you tried firing the javascript event associated with the link?

Re: [wtr-general] Re: link click no updates

2010-07-20 Thread Eric Mathiesen
you should also do a ie.show_all_objects ie.show_frames If your control is located within a frame (or a nested frame) this can help out dramatically! I've spent hours trying to access a control to find out it's in a frame! On Tue, Jul 20, 2010 at 1:55 PM, Tiffany Fodor tcfo...@comcast.net

Re: [wtr-general] Re: link click no updates

2010-07-20 Thread roland panganiban
also tried that command and doesn't worked, during the execution there was highlighted yellow on the target provisioning link and little flashing on the page but the correct page doesn't want to upload. No error found for this command. On Tue, Jul 20, 2010 at 4:55 PM, Tiffany Fodor

[wtr-general] Re: link click no updates

2010-07-20 Thread Tiffany Fodor
Have you tried to use the link/span text - looks like it's 'Target Provisioning'? ie.link(:text, 'Target Provisioning').click or ie.span(:text, 'Target Provisioning').click -Tiffany On Jul 20, 3:24 pm, roland panganiban roland.pangani...@gmail.com wrote: also tried that command and doesn't

Re: [wtr-general] Re: link click no updates

2010-07-20 Thread roland panganiban
nope, also tried using the text/id or the title and getting the same response. iam thinking something is stopping on my local computer to execute this command??hmm. On Tue, Jul 20, 2010 at 5:27 PM, Tiffany Fodor tcfo...@comcast.net wrote: Have you tried to use the link/span text - looks like

Re: [wtr-general] Calling external javascript function from cell tag attribute

2010-07-20 Thread Ethan
the GetResultForPage function will be defined on the window object, not the document. I'm not sure if that js_eval will work, though, as I'm not sure how you refer to the window in firewatir. I recommend Vapir-Firefox, an updated fork of Firewatir. it will fire the correct javascript events when