Re: FW: vmbed

7 views
Skip to first unread message

Gavin Jefferies

unread,
Feb 19, 2009, 9:32:33 PM2/19/09
to TJ, vmbed-...@googlegroups.com
Hi TJ,

That version of the script will not work with 1.6.2. I've updated it.
Please try the new one at:

http://vmbed.com/demo/code-examples/api-latest.zip

Cheers,
Gavin

On Thu, Feb 19, 2009 at 5:45 PM, TJ <tie...@yahoo.com> wrote:
>
> When I run vmbed-login.rb, I got the following errors, did I miss any ruby
> packages? Or something else?
>
>
> Ruby vmbed-login.rb ...
>
> Finished in 0.015 seconds.
>
> 1) Error:
> test_Login(TC_LoginTest):
> NameError: uninitialized constant
> Watir::CookieManager::WatirHelper::WIN32OLE
>
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/cookiemanager.rb:45:in
> `getSpecialFolderLocation'
> vmbed-login.rb:127:in `setup'
>
> 2) Error:
> test_Login(TC_LoginTest):
> NoMethodError: undefined method `close' for nil:NilClass
> vmbed-login.rb:168:in `teardown'
>
> 1 tests, 0 assertions, 0 failures, 2 errors
>
>
>
> TJ
>
>

--
VMBed - http://vmbed.com/ - Machines when you want them.
Test Automation - http://vmbed.com/?page/automate

TJ

unread,
Feb 19, 2009, 10:10:40 PM2/19/09
to Gavin Jefferies, vmbed-...@googlegroups.com

It works. Do you know how to delete cookie for Firefox?

TJ

Gavin Jefferies

unread,
Feb 23, 2009, 1:53:33 PM2/23/09
to TJ, vmbed-...@googlegroups.com
Hi TJ,

For Firefox under Watir this works:

if $jssh_socket != nil
require 'socket'
jssh_command = "var comp = getWindows()[0].Components; "
jssh_command += "var cm =
comp.classes[\"@mozilla.org/cookiemanager;1\"].getService(comp.interfaces.nsICookieManager);
"
jssh_command += "cm.remove('.vmbed.com', 'session', '/', false); "
$jssh_socket.send("#{jssh_command}\n", 0)
val = @br.read_socket()
end

Given that you have a browser object in @br and want to get rid of
cookies in the 'vmbed.com" domain.

Gavin

Reply all
Reply to author
Forward
0 new messages