[wtr-general] Re: Selecting a drop down option on a Calendar does not refresh the Calendar. (It should refresh the calendar)

2012-04-04 Thread Chuck van der Linden
with CompanyKey: a8 LoginName: admin Password: password Click on the timesheet tab, you will see the calendar on the left hand section of the page. On Friday, 24 February 2012 00:39:46 UTC+5:30, Chuck van der Linden wrote: On Feb 22, 8:25 pm, sridhar249 sridhar...@gmail.com wrote: Hi Chuck

[wtr-general] Re: Silverlight Support

2012-04-04 Thread Chuck van der Linden
Flex is a bit of a different animal.Silverlight is a tad more open so there is more hope for it (at least IMHO) Do you have an example (perhaps on a demo site) of the sort of Silverlight stuff you are trying to interact with? (in the long run, it looks like HTML5 seeks to replace most of

[wtr-general] Re: Web-driver is not able to locate where as watir 2.0 able to

2012-04-04 Thread Chuck van der Linden
Anything that inherits stuff from Element (which Div does, along with just about every other html element) should have the click method. http://rubydoc.info/github/watir/watir-webdriver/Watir/Container#div-instance_method It may be that the div is not what is looking for the click, but some

[wtr-general] Re: send_keys is not working in watir 2.0

2012-04-04 Thread Chuck van der Linden
I believe that watir 2.0 uses RAutomation and not AutoIt http://rubydoc.info/gems/watir/2.0.4/Watir/IE#send_keys-instance_method On Saturday, March 31, 2012 9:30:02 PM UTC-7, srinivasarao jyothi wrote: Hi There, i am facing the following problem(might be i am not loading all the required

[wtr-general] Re: Error:1.9.1/net/http.rb:644:in `initialize': An operation on a socket could not be performed because the system lacked sufficient buffer space

2012-04-04 Thread Chuck van der Linden
it looks a lot to me like that error is in the webdriver code, you might need to ask the webdriver folks about this. On Thursday, March 29, 2012 9:42:56 AM UTC-7, srinivasarao jyothi wrote: Hi All, Can someone help me on the following. When i tried to run my watir- webdriver script from

Re: [wtr-general] Re: did name get removed as a way to identify a link

2012-03-30 Thread Chuck van der Linden
now as watir-webdriver does. I myself haven't used name for link even when using html4. Hopefully there's not many things which will break. Also, don't forget that Watir 3 will not be itself fully backwards compatible. Jarmo On Mar 26, 10:19 pm, Chuck van der Linden sqa...@gmail.com

Re: [wtr-general] Re: Not able select options from dynamic select text box

2012-03-30 Thread Chuck van der Linden
. Thanks for your help, really making my job easy. regards Srinivasa rao On Tue, Mar 27, 2012 at 12:32 PM, Chuck van der Linden sqa...@gmail.com wrote: 1) are you trying to use Watir or Watir-webdriver for this? in my experience with such controls, watir-webdriver works best 2

[wtr-general] Re: What is the different between watir and watir-webdriver?

2012-03-30 Thread Chuck van der Linden
You will have both options Watir or Watir-Webdriver. You just want to 'require' only one of them at the top of your script. Or you can get fancy and use an environment variable, or config file along with some conditional logic to have a script load either one (but only) depending on the

[wtr-general] Re: webdriver plugin permission information bar

2012-03-30 Thread Chuck van der Linden
I just click the always run' button and ensure that any images used for test systems were created after that operation has taken place. Or relax the browser security on test systems (not like people are commonly surfing to places with malware on those boxen) If that's an issue for your IT

Re: [wtr-general] Re: locating element within a frameset using PageObject

2012-03-30 Thread Chuck van der Linden
) works for me using webdriver but not with page-object - don't know how to specify frameset. It's not in the page-object documentation. On Tuesday, March 27, 2012 9:32:26 AM UTC-7, Chuck van der Linden wrote: 1) can you show us the HTML? 2) in what you tried above I would not expect

[wtr-general] Re: Problem with inputting data into text area - Please help me get the Watir command to fill information in the form correctly

2012-03-30 Thread Chuck van der Linden
Without x-path (yes please! it's so much easier to read this way) b.frame.button(:id = 'button3').click b.frame.button(:id = 'btnSubmitCopyPaste').click On Friday, March 23, 2012 7:01:52 AM UTC-7, Hal Casteel wrote: == HTML of my form: the relevant part - (html

Re: [wtr-general] Flex and Flash along with Watir

2012-03-30 Thread Chuck van der Linden
Flash is just flat out not very automation friendly. (and it has lately been a bit of a vulnerability vector, with a lot attacks based on exploiting overflows and other vunerabilities) One reason a LOT of people (other than adobe of course) are hoping the new video stuff in HTML 5 can allow

[wtr-general] RubyMine with Watir, Cucumber, and Page objects

2012-03-30 Thread Chuck van der Linden
OK so at the conference I was pretty much convinced (especially during the workshop) that I should be ditching notepad++ and going with RubyMine. Question is, are there any tricks I need to know about to getting it setup to work with watir for automation projects? Does it just know about

[wtr-general] Re: locating element within a frameset using PageObject

2012-03-27 Thread Chuck van der Linden
1) can you show us the HTML? 2) in what you tried above I would not expect it to work since you are neglecting the second item in the nesting (the frameset with id = 'treeMain') did you try that same sort of thing in webdriver to see if it would work? e.g. @browser.frame(:id =

[wtr-general] Re: Fire event doesn't seem to work

2012-03-27 Thread Chuck van der Linden
, March 27, 2012 6:40:28 AM UTC-7, Litha K wrote: Hi, Many thanks for replying to my query. I have upgraded to version 0.5.4, however when I do browser.link(:id, 'men).hover it returns nil. Any thoughts please? Thanks, Jay On Mar 27, 3:07 am, Chuck van der Linden sqa

[wtr-general] Re: did name get removed as a way to identify a link

2012-03-27 Thread Chuck van der Linden
. I myself haven't used name for link even when using html4. Hopefully there's not many things which will break. Also, don't forget that Watir 3 will not be itself fully backwards compatible. Jarmo On Mar 26, 10:19 pm, Chuck van der Linden sqa...@gmail.com wrote: Are we being strict

Re: [wtr-general] Trying to run script on a VM with Windows XP Pro and getting errors for file paths

2012-03-27 Thread Chuck van der Linden
do I need to install an earlier version of ruby? roll back ruby? no. Install dev-kit yes! http://rubyinstaller.org/add-ons/devkit/ I'd also recommend looking into PIK if you are on windows, it's a great way to manage ruby versions and have multiple versions installed. On Tuesday,

Re: [wtr-general] ERROR: Failed to build gem native extension.

2012-03-27 Thread Chuck van der Linden
What's on line 6 of this file: c2p_test_whats_new_dev.rb On Tuesday, March 27, 2012 11:00:59 AM UTC-7, Shlomit Gazit wrote: So I moved back now to the new ruby installation 193 with the new watir and it is successfully installed watir. I am trying to run now watir tests I have, which I used

[wtr-general] Re: What is the different between watir and watir-webdriver?

2012-03-27 Thread Chuck van der Linden
That depends on what version of Watir you are talking about. with 3.0, about to be released, there differences are very small, and the really BIG difference is how the browser is driven. Watir uses Win32OLE stuff to drive the browser, and thus only supports IE. Watir-Webdriver uses, well as

[wtr-general] Re: did name get removed as a way to identify a link

2012-03-26 Thread Chuck van der Linden
Are we being strict about HTML5 for this stuff, because as near as I can tell, it was a valid optional attribute for an anchor tag as of HTML4 (http://www.w3schools.com/tags/tag_a.asp) which means it would be perfectly valid HTML for many a website that was not yet upgraded to HTML5 to be

[wtr-general] Re: Validating Image is clickable

2012-03-15 Thread Chuck van der Linden
On Tuesday, March 13, 2012 8:40:21 PM UTC-7, Joe Fl wrote: Hi, I need to confirm this tag [a class=person-inline-profile ] is available to know the image is clickable. I have included the html code below. I have tried the following and returns as 'false'.

[wtr-general] Re: right click and select item from menu in watir-webdriver

2012-03-14 Thread Chuck van der Linden
Is the (context?) menu that appears on right click something your app provides or provided by the browser? why use keyboard commands at that point? are you specifically testing for accessability? why not click on a specific item once the secondary menu is presented? Can you show us HTML?

Re: [wtr-general] How often do you need to reach database on your projects?

2012-03-13 Thread Chuck van der Linden
can you run the tests from a machine that is already in that subnet, perhaps remoting into that system? That might be easier than trying to run them from a remote system and having to talk to the db over vpn. On Thursday, March 8, 2012 5:16:49 PM UTC-8, Joe Fl wrote: I am on project that

[wtr-general] Re: dumping the visible page to watir-webdriver

2012-03-13 Thread Chuck van der Linden
Is stuff still loading at the point it times out? (you could use something like fiddler2 or wireshark to tell if there are outstanding requests waiting for a response from the server) On Tuesday, March 13, 2012 3:02:06 PM UTC-7, Rick wrote: Am quite frustrated running into the timeout when

[wtr-general] Re: need help on table rows columns operations

2012-03-07 Thread Chuck van der Linden
On Monday, March 5, 2012 9:56:30 AM UTC-8, Bhavesh wrote: Hi, How can i operate on cells on the table. I have 1 table, inside that i have many columns and multiple rows like : ID CaseName Status ActivitiesCreationDate Supervisor

Re: [wtr-general] Creating a simple Watir test framework incl Reporting functionality

2012-03-07 Thread Chuck van der Linden
On Monday, March 5, 2012 7:37:45 AM UTC-8, Željko Filipin wrote: On Sun, Mar 4, 2012 at 9:49 AM, Contador stevejbartholo...@gmail.com wrote: Hi, I'm newish to Test Automation, Watir and Ruby; I am a tester with responsibility to functionally test a website. I wish to harness some of

[wtr-general] Re: capturing browser version

2012-03-01 Thread Chuck van der Linden
You could set an environment variable on the test system and read from that easily enough. But that depends on the system being setup properly and is easier to break if someone goes and runs the tests against a system without that env variable set On Thursday, March 1, 2012 8:40:23 AM UTC-8,

[wtr-general] Re: screenshots with watir (not webdriver)

2012-02-29 Thread Chuck van der Linden
the actual full text of the error is generally more helpful than just knowing the type of error.. for example we might learn which line in which file is trying to require 'watir/ie' I'm curious why you would require 'watir/ie' and not just 'watir' I've seen that in some old scripts around here,

[wtr-general] Re: Windows 8 and IE 10

2012-02-28 Thread Chuck van der Linden
Sounds like a webdriver issue, do they officially support IE10 yet? You might try the watir 3.0rc and see if that works on IE10, I'm not sure if anyone has tried that yet however. On Feb 27, 5:02 pm, Dan dfra...@gmail.com wrote: I've got the developer preview of Windows 8 running inside Virtual

[wtr-general] Re: Watir information resources

2012-02-25 Thread Chuck van der Linden
On Feb 25, 1:18 pm, fistfullofpesos alexusorti...@gmail.com wrote: Hello, new to Watir, and looking for general information resources on watir. Specifically looking to automate a script that would allow entering items into a text field and recording the responses in a log. Having trouble

[wtr-general] Re: screenshots with watir (not webdriver)

2012-02-24 Thread Chuck van der Linden
On Feb 24, 1:35 am, Jarmo Pertman jarm...@gmail.com wrote: I can't remember and can't find anything in changelog either. But it was done by someone else and at least feels like long time ago. Jarmo On Feb 23, 9:02 pm, Chuck van der Linden sqa...@gmail.com wrote: 1) how can I view the rdoc

[wtr-general] Re: screenshots with watir (not webdriver)

2012-02-23 Thread Chuck van der Linden
how long is a long time ago? the rdoc for 2.0.4 has it listed (http:// rubydoc.info/gems/watir/2.0.4/Watir/ScreenCapture), and I did not notice anything in the release notes for 3.0 about it being removed or altered. On Feb 23, 4:57 am, Jarmo Pertman jarm...@gmail.com wrote: Yes, since that

[wtr-general] Re: Selecting a drop down option on a Calendar does not refresh the Calendar. (It should refresh the calendar)

2012-02-23 Thread Chuck van der Linden
On Feb 22, 8:25 pm, sridhar249 sridhar...@gmail.com wrote: Hi Chuck, browser.select_list(:how, 'what').fire_event('onchange') is not working. (It does not refresh the calendar) Here is my code: b.span(:id, sideMenu).div(:id, sideMenutimesheet_ctl00).select_list(:index, 0).set(May) sleep

[wtr-general] Re: Problem with access to nested iframe

2012-02-22 Thread Chuck van der Linden
On Feb 21, 11:41 am, Eric Mathiesen mathiese...@gmail.com wrote: This situation sounds like your team needs to come up with a plan for the maximum allowed wait before that time renders.  Set a wait timer and if it fails after the wait statement fail the test.  It's worked for me in the past.  

[wtr-general] Re: screenshots with watir (not webdriver)

2012-02-22 Thread Chuck van der Linden
yes there is a screenshot method. see http://rubydoc.info/gems/watir/2.0.4/Watir/ScreenCapture#screen_capture-instance_method On Feb 22, 10:50 am, hillary weimar1...@gmail.com wrote: is there a built in method for taking screenshots with watir? either 2.0 or 3.0. -- Before posting, please

[wtr-general] Re: screenshots with watir (not webdriver)

2012-02-22 Thread Chuck van der Linden
to want to specify a path for the file as well as the name. filename has to be unique, directory where you saving it has to exist or is it more like this @browser.text_field(:id = 'something').set screen_capture('temp.jpg',true,false) On Feb 22, 2:40 pm, Chuck van der Linden sqa

[wtr-general] Re: Selecting a drop down option on a Calendar does not refresh the Calendar. (It should refresh the calendar)

2012-02-22 Thread Chuck van der Linden
On Feb 22, 4:07 am, sridhar249 sridhar...@gmail.com wrote: I have the a ruby script (you can get it fromhttp://tinyurl.com/82q6cdp), which will login to my application and select a dropdown option on a page. When the dropdown option is changed manually it will refresh the calendar based on the

[wtr-general] Re: Capture the state of an element in time?

2012-02-22 Thread Chuck van der Linden
On Feb 22, 1:52 pm, Željko Filipin zeljko.fili...@gmail.com wrote: On Wed, Feb 22, 2012 at 3:45 PM, Jamison Dance jerga...@gmail.com wrote: Is there any way to capture the current state of an element? Sure, try this: browser.element.html I think both watir and watir-webdriver gems

[wtr-general] Re: Is there a wait_while_visible or wait_until_hidden or something similar?

2012-02-21 Thread Chuck van der Linden
Are you using Watir or Watir-webdriver, and what version? but none worked which means what? it didn't wait? you got errors? The method you wrote is in ways similar to what the wait methods are doing (except they also have a timeout), so it's a bit strange that they would fail and this would

[wtr-general] Re: Problem with access to nested iframe

2012-02-21 Thread Chuck van der Linden
sounds like the contents of the page or of a frame are being updated and that is making one of your variables 'stale' in that it no longer references the current instance of the page and/or frame instead of creating two objects and three lines of code, try doing it all at once on a single line

[wtr-general] Re: Problem with access to nested iframe

2012-02-21 Thread Chuck van der Linden
:36 am, Sandra sandra.wed...@googlemail.com wrote: thanks for your answer, but same error occurs with statement in one line :( On 21 Feb., 18:31, Chuck van der Linden sqa...@gmail.com wrote: sounds like the contents of the page or of a frame are being updated and that is making one

[wtr-general] Re: Accessing ul in watir

2012-02-20 Thread Chuck van der Linden
to handle such ul element. Thanks for all your help. Thanks Mihir On Sun, Feb 19, 2012 at 5:16 PM, Chuck van der Linden sqa...@gmail.comwrote: I suspect you are working with a custom control that is implemented with javascript and styles.  It appears to create what looks like

[wtr-general] Re: Accessing ul in watir

2012-02-19 Thread Chuck van der Linden
I suspect you are working with a custom control that is implemented with javascript and styles. It appears to create what looks like a standard select list to the user, via the use of divs, an un-ordered list (UL) and list items (LI) Since the image you presented has only the first item in the

[wtr-general] Re: Upgrading anxiety

2012-02-18 Thread Chuck van der Linden
)     Unable to resolve dependencies: watir requires commonwatir (= 1.6.2); firewa tir requires commonwatir (= 1.9.2) C:\ thanks Lisa On Fri, Feb 17, 2012 at 11:41 AM, Chuck van der Linden sqa...@gmail.comwrote: I posted steps I was using earlier in this thread.  (if you don't still have

[wtr-general] Re: Trying to go back to watir 1.6.2, won't install correctly

2012-02-18 Thread Chuck van der Linden
anyone to do so, it would be a ton of work. If I could go back and tell my 2004 self something, it would be, Go with Selenium, and let the programmers write the scripts in Java. Though Selenium did not actually work very well back then! -- Lisa On Fri, Feb 17, 2012 at 11:34 AM, Chuck van der

[wtr-general] Re: Is there a wait_while_visible or wait_until_hidden or something similar?

2012-02-18 Thread Chuck van der Linden
I would also do the checking at the level of this div div id=spinner style=visibility: hidden; Since that is what appears to be controlling the visibility. Don't worry about what is inside it, just look at the div since I'm willing to bet that is the thing which is having the visibility

[wtr-general] Re: Trying to go back to watir 1.6.2, won't install correctly

2012-02-17 Thread Chuck van der Linden
The other than might bite you is if you are using something like the RUBYLIB environment variable to assist ruby with finding helper methods you may have located in a specific directory. That can also cause the same error when you are trying to require the file that holds those methods. Sorry to

[wtr-general] Re: Upgrading anxiety

2012-02-17 Thread Chuck van der Linden
I posted steps I was using earlier in this thread. (if you don't still have the mail, just view the thread using the google-groups website). I have not yet had time to extract them and post them someplace else such as the wiki or my far too neglected testing blog On Feb 16, 1:48 pm, Lisa

[wtr-general] Re: Ie7 rich text editor issue

2012-01-18 Thread Chuck van der Linden
Sendkeys is not implemented at the level of the frame object in Watir. See http://rubydoc.info/gems/watir/2.0.4/Watir/IE#send_keys-instance_method On Jan 16, 6:28 pm, Joe Fl joeflec...@gmail.com wrote: Hi, I am working with IE7 and need to add a comment to rich text editor that is

[wtr-general] Re: New Rich text editor in our web app

2012-01-18 Thread Chuck van der Linden
on it in this location [user/josephfleck/Sites/with/qa_automation/common]. Would I use relative path because on the Windows VM the path is not the same. On Fri, Jan 13, 2012 at 5:16 PM, Chuck van der Linden sqa...@gmail.com wrote: I would only make a gem if you feel it would be of benefit

[wtr-general] Re: watirgrid and watir-webdriver-performance together?

2012-01-18 Thread Chuck van der Linden
seems like maybe the watirgrid is not starting up stuff based on watir- webdriver-performance since the method it thinks is missing is from that version of watir, and would be 'missing' in ordinary watir or watir-webdriver but I'm not enough of an expert in watirgrid to help you beyond stating

[wtr-general] Re: Watir with a remote desktop

2012-01-18 Thread Chuck van der Linden
I had thought that the current versions of Loadrunner were up on current web tech, but it's been years since I used it. If you are running windows servers, then the loadtest tools that come with the 'ultimate' version of dev studio are generally the way to go. It does most of what loadrunner

[wtr-general] Re: Watir-webdriver seeing a null style attribute as display: none;

2012-01-18 Thread Chuck van der Linden
I would use a developer tool to backtrace the CSS rules for that element. The style could be coming from CSS rules. That is especially common for stuff that is displayed or hidden according to mouse hover where that is controlled via a CSS psuedoclass If that is the case, there was a .hover

[wtr-general] Re: Not able to select table data inside an table which is having no unique identity.

2012-01-18 Thread Chuck van der Linden
For the first three things you listed, I see nothing with 'reportType' listed in the HTML you posted, so I have no idea what those are trying to do. For the the next three things you list, There's more than one table row in that table with the class of item which would cause two of those three to

[wtr-general] Re: Watir 3.0.rc1 breaks select_value of a select list

2012-01-18 Thread Chuck van der Linden
I note this change listed which might impact that SelectList code rewritten, causing changes in its API However I don't see much in the way of details. Given that select_value is present in watir-webdriver I'm pretty sure those changes did not include removing that method (nor did your error

[wtr-general] Re: Watir-webdriver seeing a null style attribute as display: none;

2012-01-18 Thread Chuck van der Linden
for me) and i could not find it in the docs On Wed, Jan 18, 2012 at 5:17 PM, Chuck van der Linden sqa...@gmail.comwrote: I would use a developer tool to backtrace the CSS rules for that element.  The style could be coming from CSS rules.  That is especially common for stuff

[wtr-general] Re: Watir 3.0.rc1 Released

2012-01-16 Thread Chuck van der Linden
be increased. Jarmo On Jan 14, 1:38 am, Chuck van der Linden sqa...@gmail.com wrote: Cool, that makes sense. Figured there was a darn good reason, just wanted to know what it was. Might it be possible to group the changelog items to make it clear 1) what are 'breaking changes' to existing

[wtr-general] Re: tightness of coupling between watir and watir-webdriver?

2012-01-16 Thread Chuck van der Linden
, Jan 14, 2012 at 12:26 AM, Chuck van der Linden sqa...@gmail.com wrote: I've not had a chance to read it yet (it's on my list) but I think Zeljko's book on Watir contains a bit of history about how the tool developed. https://github.com/zeljkofilipin/watirbook/blob/master/about.mdhttps

[wtr-general] Re: Watir with a remote desktop

2012-01-15 Thread Chuck van der Linden
What sort of performace are you trying to measure? Watir will return page load times for any action that causes a page load. So it can be used for simple performance tests. For a bit more detailed measurements, see the watir-webdriver- performance gem

[wtr-general] Re: Testing a Table being populated by a data base

2012-01-15 Thread Chuck van der Linden
to start with yu need to show us a lot more of the html for the stuff you are trying to work with. For example you speak of a table, but the code you provided below is for a select list element, not a table. so I can't understand what it is you want to do, are you trying to choose an item in a

[wtr-general] Re: How to check the existence of scrollbar

2012-01-15 Thread Chuck van der Linden
scrollbars are typically provided by the browser, when contents in a text area exceed the space given. I think there are CSS controls for this, so you might be able to examine the CSS attributes to see if they are enabled or not It might help to consult with one of your developers to really

[wtr-general] Re: New Rich text editor in our web app

2012-01-13 Thread Chuck van der Linden
with these would be a better alternative. What would I need to do for both? On Thu, Jan 12, 2012 at 5:31 PM, Chuck van der Linden sqa...@gmail.com wrote: Meh just realised you gave me what I needed,,  Ignore the other response. Where is common/helpermethods installed?   is that your

[wtr-general] Re: tightness of coupling between watir and watir-webdriver?

2012-01-13 Thread Chuck van der Linden
Here's how I understand things. The 'coupling' is that they both try to implement the same API. The API was originated by Watir, but more recently watir-webdriver has been at the foerfront there and Watir has been in catchup mode. The API is now codified in 'watirspec' which allows both tools

[wtr-general] Re: watirgrid and watir-webdriver-performance together?

2012-01-13 Thread Chuck van der Linden
details of the error might help to determine the cause of the problem On Jan 13, 1:13 pm, Dan dfra...@gmail.com wrote: Can watirgrid and watir-webdriver-performance be used together?  I've got something like the below going, but I get a NoMethodError.  All of the providers have up to date

[wtr-general] Re: Watir 3.0.rc1 Released

2012-01-13 Thread Chuck van der Linden
+1 Great work. out of curiosity, why the bump to the major version number? On Jan 13, 1:37 am, Dan Claudiu Pop danclaudiu...@gmail.com wrote: +1 On Jan 13, 10:43 am, Ivan Kabluchkov ikabluch...@gmail.com wrote: Jarmo, thanks for your job :) -- Before posting, please read

[wtr-general] Re: Watir 3.0.rc1 Released

2012-01-13 Thread Chuck van der Linden
So what if any are the remaining big differences between the two? the handling for JS popups?? On Jan 13, 10:39 am, Jarmo Pertman jarm...@gmail.com wrote: Yes, there aren't any changes for watir-webdriver users, because that is a completely different gem, but this version should make it quite

[wtr-general] Re: New Rich text editor in our web app

2012-01-12 Thread Chuck van der Linden
On Jan 12, 7:54 am, Joe Fl joeflec...@gmail.com wrote: Sorry I setup a windows vm and the error above happens when I try and run the script. On Jan 12, 10:06 am, Joe Fl joeflec...@gmail.com wrote: how do I handle this? C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in

[wtr-general] Re: New Rich text editor in our web app

2012-01-12 Thread Chuck van der Linden
= 'multi_add_discussion_reusable_data.txt' helper.delete_file_text(name_of_file) #Setting variable name with script name script_name = File.basename(__FILE__,.rb) Thank you, Joe On Jan 6, 7:51 pm, Chuck van der Linden sqa...@gmail.com wrote: well on a PC you can do that with either AutoIt, or Rautomation.   Not so

[wtr-general] Re: ObsoleteElementError when selecting elements with RegEx

2012-01-11 Thread Chuck van der Linden
On Jan 10, 4:11 pm, Christopher Stasonis staso...@gmail.com wrote: A little more context is in order.  I have a function that returns an Element Collection, ie def getDivs @browser.divs(:class, /.*myClass.*/) end On each page refresh I call this function to check that they contain some

[wtr-general] Re: ObsoleteElementError when selecting elements with RegEx

2012-01-10 Thread Chuck van der Linden
Sounds like the page contents may be getting updated at some point (perhaps by client side code) after your first call. are you creating an object and then trying multiple operations against the object? eg something like this stuff = @browser.div(:class, /.*myClass.*/) stuff.link(:how,

[wtr-general] Milestone for the Watir tag on Stack Overflow

2012-01-09 Thread Chuck van der Linden
Well, we just had our 500th question with a 'Watir tag on it posted over on Stack Overflow. http://stackoverflow.com/q/8796067/409820 Tempting to suggest we should vote the heck out of it just because it's #500, but that might not be considered proper by the SO folks. -- Before posting, please

[wtr-general] Re: clicking multi links with same attribut

2012-01-08 Thread Chuck van der Linden
On Jan 8, 9:40 pm, prabhi kumar prabhian...@gmail.com wrote: i have a webpage with many number of ul containing many number of li. problem is i need to click all li with same class name in all ul. how can i do it. when i tried browser.li(:class, tor).click when i run it it clicks the fir li of

[wtr-general] Re: Clicking an image inside the tinyMCE Editor with Watir-Webdriver

2012-01-08 Thread Chuck van der Linden
well the only other thing I can suggest is a closer examination of the editor and see if it is in fact reacting to the click, or maybe some other action such as the mousedown. there may be a lot more going on than meets the eye, and for things to work the mouse may need to be in a specific

[wtr-general] Re: watir::IE multiple windows always connect to same session

2012-01-08 Thread Chuck van der Linden
if you open multiple IE sessions manually do they share cookies? if so this is a fundimental IE thing and there's not much we are likely to be able to do about it. On Jan 8, 12:09 pm, Barry barry...@gmail.com wrote: Nobody has this problem? All your IE windows have different sessions with

[wtr-general] Re: unable to click the span through watir. 选项

2012-01-06 Thread Chuck van der Linden
There is a trailing space in the class name in the HTML you posted in your original method. (unless that is a typo) That could be causing you problems if you are trying to identify the object using class. There is no event listener defined in the HTML, so it must be elsewhere in your code.

[wtr-general] Re: unable to click the span through watir. 选项

2012-01-06 Thread Chuck van der Linden
On Jan 5, 7:25 pm, Tiffany Fodor tcfo...@comcast.net wrote: Hi Finley, I don't think you can specify more than two parameters for an element. That should actually be fine. recent watir and watir-webdriver are very good about allowing multiple attributes to be used to create what is in effect

[wtr-general] Re: New Rich text editor in our web app

2012-01-06 Thread Chuck van der Linden
On Jan 6, 6:51 am, Joe Fleck joeflec...@gmail.com wrote: Hi, I have found it does work but won't if the browser is not in my admitted focus.  I am using a MAC BookPro.  Has anyone else experienced this? Thank you, Joe Most 'send keys' operations emulate typing at the keyboard, and are

[wtr-general] Re: Clicking an image inside the tinyMCE Editor with Watir-Webdriver

2012-01-06 Thread Chuck van der Linden
Thanks for the link to the demo, that helps immensely. Unfortunately the 'real job' has been very busy lately as well as 'real life' and so I've not had a chance to look at this. As an aside, unless you are working for the people who make this editor, why test someone else's product? is that a

[wtr-general] Re: Clicking an image inside the tinyMCE Editor with Watir-Webdriver

2012-01-06 Thread Chuck van der Linden
You might have a look at Sikuli I've used it for things like clicking on flash controls that were just not exposed enough to work with via watir, autoit, or rautomation. It may be a way to perform a few quick clicks based on looking for a specific image on the screen, and then go back to working

[wtr-general] Re: New Rich text editor in our web app

2012-01-06 Thread Chuck van der Linden
, Chuck van der Linden sqa...@gmail.com wrote: On Jan 6, 6:51 am, Joe Fleck joeflec...@gmail.com wrote: Hi, I have found it does work but won't if the browser is not in my admitted focus.  I am using a MAC BookPro.  Has anyone else experienced this? Thank you, Joe Most 'send

[wtr-general] Re: Entering text on a read only textfield.

2011-12-29 Thread Chuck van der Linden
Over time Watir and Watir-webdriver have become more stringent about not letting you do something that a real human user could not do. This is because in large part watir is designed to drive the browser like a user would, in that respect it makes little sense to allow you to do something a user

[wtr-general] Re: Upgrading anxiety

2011-12-29 Thread Chuck van der Linden
I've been doing a bunch of this sort of work at my current job so I have the following advice. (something else I should do a blog posting about) Step zero, decide if you are going to make the scripts try to run under both the newer Watir and Watir-Webdriver, or just WW. If the former I suggest

[wtr-general] Re: the watir-webdriver scripts not running on firefox8: receiving unable to obtain stable firefox connection in 60 seconds

2011-12-28 Thread Chuck van der Linden
On Dec 28, 7:27 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Dec 28, 2011 at 4:21 PM, bryan rasmussen rasmussen.br...@gmail.com wrote: I really don't know what part of the code to post Try this in IRB and let us know what happens (including error messages): require

[wtr-general] Re: no such file to load -- watir/ie (LoadError)

2011-12-28 Thread Chuck van der Linden
) win32-file-stat (1.2.7) win32-process (0.6.2, 0.5.3) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.4.0, 0.2.0) windows-pr (1.2.1, 1.0.8, 0.7.2) xml-simple (1.0.12) On Dec 28, 9:48 am, Chuck van der Linden sqa...@gmail.com wrote: Also, in addition to what Jarmo and Zeljko

[wtr-general] Re: no such file to load -- watir/ie (LoadError)

2011-12-28 Thread Chuck van der Linden
. Thank you, Mark On Dec 28, 11:14 am, Chuck van der Linden sqa...@gmail.com wrote: gem uninstall commonwatir -v 1.6.5 See if that fixes or changes the error.   Also as Zeljko suggests try using Watir::Browser.new   instead of  Watir::IE.new If that does not work, show us what

[wtr-general] Re: FireFox 8 and mouseover and/or clicking

2011-12-27 Thread Chuck van der Linden
On Dec 23, 10:25 am, Abe Heward abe.hew...@gmail.com wrote: Chuck, thanks for the jQuery hint. That's the solution I've come to, as well. Meanwhile it looks like Jarib just added a .hover method to the element class, and marked https://github.com/jarib/watir-webdriver/issues/46 as closed. a

[wtr-general] Re: Javascript Dialog Handling on Watir Webdriver

2011-12-27 Thread Chuck van der Linden
. And it works. On Fri, Dec 23, 2011 at 5:05 AM, Chuck van der Linden sqa...@gmail.comwrote: On Dec 22, 6:26 am, Simson Situmeang simson.situme...@gmail.com wrote: Hello Asif, thx for your reply. I also tried to use '*$browser.javascript_dialog.button('Leave Page').click

[wtr-general] Re: Javascript Dialog Handling on Watir Webdriver

2011-12-22 Thread Chuck van der Linden
On Dec 22, 6:26 am, Simson Situmeang simson.situme...@gmail.com wrote: Hello Asif, thx for your reply. I also tried to use '*$browser.javascript_dialog.button('Leave Page').click' *but It caused error like this: *undefined method `javascript_dialog' for #Watir::Browser:0x20a4848* I think

[wtr-general] Re: FireFox 3.x and XUL controls

2011-12-21 Thread Chuck van der Linden
timing issue perhaps? maybe wait_until the element is present, or use click.when_present On Dec 21, 1:27 pm, Super Kevy kpe...@scholarshipamerica.org wrote: I found this previous thread but I wanted to get away from autoIT if I

[wtr-general] Re: password field problem in firefox

2011-12-21 Thread Chuck van der Linden
Why the long sleep after setting the address? for the password, the field is reacting to an onfocus event. It appears to clear the contents of the field when it gets focus, it does that by re-writing the inner HTML of the container div (id PasswordDiv), which has the effect of destroying the

[wtr-general] Re: Unable to see DOM updated by javascript

2011-12-20 Thread Chuck van der Linden
)     @browser.div(:id = VIDEO_RESULTS_TYPE[video_type.to_sym]).imgs(:class = thumbnail).collect do |thumb|       thumb.attribute_value(:src).     end.map! { |e| e =~ /video-no-image.jpg/ ? image_not_available : e } end Thank you, Dan On Dec 19, 8:38 pm, Chuck van der Linden sqa...@gmail.com

[wtr-general] Re: Unable to see DOM updated by javascript

2011-12-19 Thread Chuck van der Linden
Dan, Watir, Watir-webdriver, or both? If you test this page with IRB do you get different results if you wait a bit for any image loads to timeout etc? I'm wondering if potentially the browser is reporting 'ready' before that code has a chance to execute and watir is getting the dom contents

[wtr-general] Re: Ruby Array Question

2011-12-19 Thread Chuck van der Linden
.#{test}) end On Dec 19, 1:26 pm, Chuck van der Linden sqa...@gmail.com wrote: Instead of re-inventing the wheel, why not make use of an existing framework for this kind of thing, and spend more of your time writing your tests? http://watir.com/frameworks/ On Dec 19, 12:05 pm, Jason Shelton

[wtr-general] Re: Test Management GUI for Watir

2011-12-15 Thread Chuck van der Linden
As Dave suggests, Fitnesse is one way to go. Another is Cucumber Both of these take a bit of a different direction from Quality Center Instead of creating a mapping between requirements, specs, and tests, they focus more around the idea of creating an executable requirement. You express a

[wtr-general] Re: Strange NoMethod Error for my Module

2011-12-15 Thread Chuck van der Linden
On Dec 15, 10:31 am, bis bis...@gmail.com wrote: I personally like Taza :) its pretty easy to set up and relatively painless to use.https://github.com/hammernight/taza It does do a lot of the magic of wiring things together for you so you can just plug in the objects you want to interact with

[wtr-general] Re: Strange NoMethod Error for my Module

2011-12-14 Thread Chuck van der Linden
using the page object pattern might be a better solution to address what you are doing there. Gives you one place to update should any of those ID values change, and a lot more readable code in most cases Here's an example:

[wtr-general] Re: Failing to Click a link in firefox 8

2011-12-13 Thread Chuck van der Linden
not sure if it's likely (given it works with IE) but you migh try browser.links(:name, /ResonanceRecords01/).size from IRB to see if perhaps more than one thing is matching the regex. Will it work from watir-webdriver if you switch the browser to chrome or IE? would be nice to know if

[wtr-general] Re: Webdriver : when i have to grab the id using pattern match it fails for firefox

2011-12-12 Thread Chuck van der Linden
this pattern match is not usable, then i have a problem, can you suggest any solution to this? Bhavesh On Dec 9, 2:21 pm, Chuck van der Linden sqa...@gmail.com wrote: Lets backup a minute because I think you are going about this in a very convoluted way based on something you figured

[wtr-general] Re: Failing to Click a link in firefox 8

2011-12-12 Thread Chuck van der Linden
I'm confused, is it giving you an error, or just going through the motions but nothing gets clicked? Can you do a gem list command and tell us what version of selenium- webdriver you have installed? (older ones can have a problem with FF8 which is very new) On Dec 12, 3:00 pm, hillary

[wtr-general] Re: Button click in IE8 using watir web-driver.

2011-12-09 Thread Chuck van der Linden
On Dec 9, 8:06 am, Prajakta Jadhav jadhav.praja...@gmail.com wrote: Hello, I am just following this script onhttp://watirwebdriver.com/: require 'watir-webdriver' b = Watir::Browser.new b.goto 'bit.ly/watir-webdriver-demo' b.text_field(:id = 'entry_0').set 'your name' b.select_list(:id =

<    1   2   3   4   5   6   7   8   9   10   >