Re: [wtr-general] XPath and IE

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:

//*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

I know this does not solve your problem, but do you really need to use such
complicated xpath? I would try to access the element with the simplest xpath
possible.

Željko
--
watir.com - community manager
watirpodcast.com - host

-- 
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Angrez Singh
Can you post the HTML? Why are you using XPath for accessing elements?
- Angrez

On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:
 
 //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

 I know this does not solve your problem, but do you really need to use such
 complicated xpath? I would try to access the element with the simplest xpath
 possible.


 Željko
 --
 watir.com - community manager
 watirpodcast.com - host



  --
 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, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Angrez Singh
Let me guess here you are trying to delete the project  you don't have ID
for delete button as the number of projects are not fixed.
Is that correct?
If yes, then does project name is unique across the applications?

- Angrez

On Tue, Dec 29, 2009 at 6:20 PM, Josh Moore joshsmo...@gmail.com wrote:

 Hi, I attached the html as a file because it is pretty big.  I am using
 XPath because we are using XHTML and the namespace seems to render the other
 accessor methods useless.

 Josh


  --
 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, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


 On Dec 29, 2009, at 6:33 PM, Angrez Singh wrote:

 Can you post the HTML? Why are you using XPath for accessing elements?
 - Angrez

 On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com
 wrote:
 
 //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

 I know this does not solve your problem, but do you really need to use
 such complicated xpath? I would try to access the element with the simplest
 xpath possible.


 Željko
 --
 watir.com - community manager
 watirpodcast.com - host




 --
 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, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general



 --
 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, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general





-- 
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:

//*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..

Does this work (not tested)?

browser.image(:title = Remove, :after? = browser.cell(:text =
test_project))

Željko

-- 
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Re: [wtr-general] XPath and IE

2009-12-29 Thread Josh Moore
Hi,

I was able to figure out another solution by using the table object and 
iterating over it.  However, if you have any ideas on the XPath I would still 
be interested in hearing about them.

Thanks,

Josh

On Dec 29, 2009, at 6:33 PM, Angrez Singh wrote:

 Can you post the HTML? Why are you using XPath for accessing elements?
 - Angrez
 
 On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:
 On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:
  //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/..
 
 I know this does not solve your problem, but do you really need to use such 
 complicated xpath? I would try to access the element with the simplest xpath 
 possible.
 
 
 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 
 
 
 
 -- 
 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, please read the following guidelines: 
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to 
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/watir-general
 
 
 -- 
 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, please read the following guidelines: 
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to 
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/watir-general

-- 
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, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general