[wtr-general] Re: can not click a button

2009-11-04 Thread jnxgn

and I can click this button by firewatir on another computer.
I use watir 1.6.2 with ruby 186-27

On Nov 5, 5:04 am, Paul Rogers  wrote:
> this uses an onmousedown event to execute the javascript.
>
> try
>
> ie.button(:id,"PostButton").fire_event('onMouseDown')  # case of this
> probably matters
>
> Paul
>
>
>
>
>
> On Wed, Nov 4, 2009 at 11:57 AM, jnxgn  wrote:
>
> > I cannot click the button with the id of PostButton with the code:
> > ie.button(:id,"PostButton").click
>
> > Any help is highly appreciated.
>
> > 
> >
> > > />
> >
> > > style="cursor:pointer;" value="发表" onclick="PostArticleButtonClick
> > (this)" onmousedown="document.getElementById('inputsummit').value =
> > 0;"/>
> >    > type="button" id="Neweditarticle2008_1_DraftButton" value="保存草稿"
> > style="cursor:pointer;" class="btn1 btnn" onclick="PostDraftButtonClick
> > (this)" />
> >  
>
> >http://post.blog.hexun.com/
> > i/mydraft.aspx?Blogname=13051424"
> > target="_blank"
> > style="color:#FB5D00;">查看草稿箱
>
> >- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: can not click a button

2009-11-04 Thread jnxgn

Yes, I tried this but failed, and I cannot see the button by ie.button
(:id,"PostButton").flash
I have 3 years experience to use watir for testing, this is quite
stange to me.

On Nov 5, 5:04 am, Paul Rogers  wrote:
> this uses an onmousedown event to execute the javascript.
>
> try
>
> ie.button(:id,"PostButton").fire_event('onMouseDown')  # case of this
> probably matters
>
> Paul
>
>
>
>
>
> On Wed, Nov 4, 2009 at 11:57 AM, jnxgn  wrote:
>
> > I cannot click the button with the id of PostButton with the code:
> > ie.button(:id,"PostButton").click
>
> > Any help is highly appreciated.
>
> > 
> >
> > > />
> >
> > > style="cursor:pointer;" value="发表" onclick="PostArticleButtonClick
> > (this)" onmousedown="document.getElementById('inputsummit').value =
> > 0;"/>
> >    > type="button" id="Neweditarticle2008_1_DraftButton" value="保存草稿"
> > style="cursor:pointer;" class="btn1 btnn" onclick="PostDraftButtonClick
> > (this)" />
> >  
>
> >http://post.blog.hexun.com/
> > i/mydraft.aspx?Blogname=13051424"
> > target="_blank"
> > style="color:#FB5D00;">查看草稿箱
>
> >- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: can not click a button

2009-11-04 Thread Paul Rogers
this uses an onmousedown event to execute the javascript.

try

ie.button(:id,"PostButton").fire_event('onMouseDown')  # case of this
probably matters

Paul

>

On Wed, Nov 4, 2009 at 11:57 AM, jnxgn  wrote:

>
> I cannot click the button with the id of PostButton with the code:
> ie.button(:id,"PostButton").click
>
> Any help is highly appreciated.
>
>
> 
>
> />
>
> style="cursor:pointer;" value="发表" onclick="PostArticleButtonClick
> (this)" onmousedown="document.getElementById('inputsummit').value =
> 0;"/>
>    type="button" id="Neweditarticle2008_1_DraftButton" value="保存草稿"
> style="cursor:pointer;" class="btn1 btnn" onclick="PostDraftButtonClick
> (this)" />
>  
>
>http://post.blog.hexun.com/
> i/mydraft.aspx?Blogname=13051424"
> target="_blank"
> style="color:#FB5D00;">查看草稿箱
>
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---