[ 
http://jira.openqa.org/browse/WTR-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19529#action_19529
 ] 

Jarmo Pertman commented on WTR-320:
-----------------------------------

The problem is mainly related with the fact that this patch isn't applied 
actually to Watir.

Also, my recommendation was to simplify eval_in_spawned_process method and add 
require "rubygems" statement.

My proposed solution was like this:

def eval_in_spawned_process(command)
     command.strip!
     ruby_code = "require 'rubygems';"
     ruby_code = "require 'watir/ie';"
     ruby_code << "pc = #{attach_command};" # pc = page container
     ruby_code << "pc.instance_eval(#{command.inspect})"
     exec_string = "start rubyw -e #{ruby_code.gsub('"','\'').inspect}"
     system(exec_string)
   end

Also, when simplifying this method as above, we could also delete
other (rather ugly) method (with it's comment), which is used only
once:

# why won't this work when placed in the module (where it properly belongs)
def _code_that_copies_readonly_array(array, name)
   "temp = Array.new(#{array.inspect}); #{name}.clear; temp.each
{|element| #{name} << element}"
end

> click_no_wait does not work on ruby186-27_rc2
> ---------------------------------------------
>
>                 Key: WTR-320
>                 URL: http://jira.openqa.org/browse/WTR-320
>             Project: Watir
>          Issue Type: Bug
>          Components: Inputs
>    Affects Versions: 1.6.2
>         Environment: Vista SP1 IE8, normal administrator account with default 
> security settings (UAC enabled, IE protected mode enabled)
>            Reporter: Bill Agee
>             Fix For: 1.6.5
>
>         Attachments: patch.txt
>
>
> Several people (including myself) have had problems using click_no_wait on 
> Vista.
> The symptom is that the element being clicked will flash yellow, but nothing 
> happens beyond that.  The click does not seem to be received.
> A patch that solves this problem was posted to the watir dev list, by Derek 
> Berner:
> http://rubyforge.org/pipermail/wtr-development/2009-January/000400.html
> Looks like the patch was for Windows Server 2008, but it worked for me on 
> Vista SP1 with IE8.
> But I tried the same patch on XP SP3, with IE8, and click_no_wait no longer 
> worked.  A little work may be required to make sure the patch works on both 
> Vista SP1 and XP.  Hopefully Server 2008 and Vista RTM will also both work if 
> Vista SP1 has no problems.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to