[wtr-general] How I can do double click on a calendar?

2010-08-13 Thread carmen3lia
Hi,

I am testing a Web Application, that includes a Calendar, and I want
to do double on it, to open a popup window, but I cant, I tried the
following

browser.div(:xpath, /html/body/div/div/div[2]/div[2]/div[2]/div/div/
div[2]/div/div[2]/div/div/div[2]/div/div[27]/table/tbody/tr/
td[2]).fire_event(ondblclick)


any idea?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How I can clear a list (ul)

2010-08-13 Thread carmen3lia
I need to clear the elements all elements in a list, UL, I have the
following code

  b.div(:id, x-auto-8963).ul(:id, x-auto-8964).clear

but it does not work

This the HTML code and  i want to delete all the li elements

ul class=token-input-list-facebook x-component id=x-auto-648
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-token-facebookp title=emailuser name/
pspanx/span/li
li class=token-input-input-token-facebookinput type=text
tabindex=1 class=gwt-SuggestBox style=outline: medium none;
id=suggestion_box/li/ul

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How I can catch the JS errors?

2010-07-29 Thread carmen3lia
The application has  a few JS errors and when I run the script, it is
stopped because the erors, How I can catch the errors and the script
can follow executing. I'm using Internet Explorer 7 and 8

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How i can delete all element from a list (ul)

2010-07-28 Thread carmen3lia
I need to delete all the elements in a list (ul) but i canĀ“t, this
list is a popup.

div id=x-auto-133 class= x-component
ul id=x-auto-134 class=token-input-list-facebook x-component
 li class=token-input-token-facebook
  p title=stringnombre/p
 spanx/span
/li
li class=token-input-token-facebook
/li
li class=token-input-token-facebook
/li
  li class=token-input-token-facebook
  p title=stringnombre/p
 spanx/span
/li
.
.
.
.
etc

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How I can do double click on a Cell

2010-07-28 Thread carmen3lia
I am not able to do  double click on a Cell, this I have

  ie.cell(:xpath,/html/body/div/div/div[2]/div[2]/div[2]/div/div/
div[2]/div/div[2]/div/div/div[2]/div/div[17]/table/tbody/tr/
td[2]).fire_event(ondblclick)

The following error is displayed undefined method `toString' for
nil:NilClass

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com