Re: [Wtr-general] Help with Watir/XPath

2006-03-13 Thread Greg McShea
Thanks very much Angrez, that solved the problem.     ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Help with Watir/XPath

2006-03-10 Thread Angrez Singh
Hi, Try the following XPath:ie.button(:xpath, "//button[contains(.,'Delete')]")What I think wrong with you xpath is that you are trying to access button which has attribute called 'value' whose value is 'Delete'. But there is no button with attribute 'value'. Try the above XPath & let me know if it

Re: [Wtr-general] Help with Watir/XPath

2006-03-10 Thread Greg McShea
Review older messages again I see that the elements.rb and functions.rb are only supposed to be copied to C:\ruby\lib\ruby\1.8\rexml. I have done this and restored the original versions of the files to C:\ruby\lib\ruby\site_ruby\1.8\rexml. Now when I run my script I get a different error:  

[Wtr-general] Help with Watir/XPath

2006-03-10 Thread Greg McShea
Hi,   I've reviewed all the XPath related posts here and am still unable to get a simple statement with xpath _expression_ working. Here is what I have done to setup my installation:   1. Installed ruby 1.8.2 2. Installed watir 1.4.1 using windows installer 3. Installed REXML 3.1.3 3. Dow