[wtr-general] Re: Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-13 Thread Alex Shtayer
Sorry, forget to add: Env: 1. ruby 1.9.2p180 2. watir-webdriver (0.6.2) 3. InternetExplorerDriver server (32-bit) 2.29.0.0 But was reproducible on 2.28.0.0 and 2.27.0.0 too -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@go

[wtr-general] Serious memory leaks on IE9 and IE10 for watir-webdriver

2013-02-13 Thread Alex Shtayer
After some test cases executed (only 5-10 minutes of execution which is not enough for any memory overflow from any point of view) I am getting No connection could be made because the target machine actively refused it . - connect(2) (Errno::ECONNREFUSED) C:/Ruby192/lib/ruby/1.9.1/ne

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread captin
So for me, if I run the execute_script commands against the HTML page I created (with the content either unblocked or the previously mentioned IE setting enabled), everything works. As soon as I navigate to a different page and run the command again, it fails as above. Glad to hear there's a r

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread enroxorz
I tested Jarmo's suggestion regarding changing security options (*Allow active content to run files on My Computer* and *Allow software to run or install even if the signature is invalid*) and it worked in my preliminary test. Attached is the HTML file, my screenshot from the IE settings, and I

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread Jarmo Pertman
:( What about opening the html you created above? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, February 13, 2013 10:56:44 PM UTC+2, captin wrote: > > I located the registry setting and successfully changed it and verified > the setting was enabled. Then I

[wtr-general] Re: How do I get the maxlength for a text_field?

2013-02-13 Thread Justin Ko
In watir-webdriver, you would have to use the attribute_value method: browser.text_field.attribute_value('maxlength') Justin On Tuesday, February 12, 2013 12:51:03 AM UTC-5, Phuoc Can Hua wrote: > > I used to use textField().maxlength in my scripts. Now I've changed it to > use 'watir-webdrive

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread captin
I located the registry setting and successfully changed it and verified the setting was enabled. Then I ran the execute_script command and it still errored out with the original error message and code: WIN32OLERuntimeError: (in OLE method `execScript': ) OLE error code:80020101 in Co

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread captin
The HTML code worked properly when I fixed the extra character issue you highlighted. When I run the "typeof JSON" command it returns "object" and when I run "typeof JSON.stringify" it returns "function". My enterprise security settings don't allow me to change that setting so I'm unable to pr

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread Jarmo Pertman
I think that i can reproduce the problem with tweaking a setting in IE. There is a setting under Internet Options -> Advanced -> Security -> Allow active content to run in files on My Computer. This is disabled by default. Enable it, restart IE and try if it will make #execute_script working. J

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread Jarmo Pertman
I just noticed an error in my previous code. I have an extra ' character at the start of src attribute value :( Please try again with the following correct code: foo Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, February 13, 2013 3:1

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread enroxorz
Please make sure to post your findings. I've been monitoring this because I also have the same issue as you (didn't post because I didn't have anything new to add to this). On Tuesday, February 12, 2013 5:51:37 PM UTC-5, captin wrote: > > The issue still exists when trying your suggestion. I wil