You may create an issue for watir-classic so these methods would be added 
at https://github.com/watir/watir-classic/issues?state=open

Jarmo

On Thursday, March 21, 2013 12:30:32 AM UTC+2, Chuck van der Linden wrote:
>
> When I compare the rdocs for the Window class  between watir-webdriver and 
> watir-classic, there are a number of size related methods for 
> watir-webdriver which are not there in watir-classic, so I believe the 
> answer to your question is Nope, not supported on watir-classic
>
>
> On Tuesday, March 19, 2013 11:24:58 AM UTC-7, Sharanya Viswanath wrote:
>>
>> Hi,
>>
>> I am trying to resize my IE browser using watir classic. Is there a 
>> method to do that? Currently, the code that I have incorporated into my 
>> framework works for FF and Chrome. Does watir-classic support resizing of 
>> IE browsers? Here's a sample code: 
>>    
>>        def init_browser
>>       if (ENV["BROWSERWIDTH"].nil? || ENV["BROWSERWIDTH"].empty? || 
>> ENV["BROWSER"] == "IE" || ENV["BROWSER"] == "ipad" || ENV["BROWSER"] == 
>> "iphone")
>>         if (ENV["BROWSER"] == "IE" || ENV["BROWSER"] == "ipad" || 
>> ENV["BROWSER"] == "iphone") && (!ENV["BROWSERWIDTH"].nil? || 
>> !ENV["BROWSERWIDTH"].empty?)
>>           @logger.info "Resizing of browsers is not supported on iOS 
>> Simulator, IE "
>>         end
>>         @browser = get_browser.__start(@debug_mode)
>>         add_page_checkers
>>       else
>>         @browser = get_browser.__start(@debug_mode)
>>         if ENV["BROWSERHEIGHT"].nil? || ENV["BROWSERHEIGHT"].empty?
>>           width = ENV["BROWSERWIDTH"].to_i
>>           @browser.window.resize_to(width,1024)
>>           @logger.info "Browser height has not been specified. Using 
>> default height:1024.\nYour browser has been resized to width:#{width} 
>> height:1024"
>>         else
>>           width = ENV["BROWSERWIDTH"].to_i
>>           height = ENV["BROWSERHEIGHT"].to_i
>>           @browser.window.resize_to(width,height)
>>           @logger.info "Your browser has been resized to width:#{width} 
>> height:#{height}"
>>         end
>>         add_page_checkers
>>       end
>>     end
>>
>>     def activate_ie
>>       unless RUBY_PLATFORM =~ /win32|mingw/
>>         raise "This platform is not supported (#{PLATFORM})"
>>       end
>>       @logger.step('Launching INTERNET EXPLORER...')
>>       require 'watir-classic'
>>       ie = Watir::IE
>>       require 'common/assertions'
>>       require 'core/browser_overrides/common_browser_overrides'
>>       require 'core/browser_overrides/ie.rb'
>>       return ie
>>     end
>>
>>      class IE
>>       def self.__start(debug_mode=false)
>>         Watir::Browser.new(:ie)
>>       end
>>     end
>>
>> Any help is appreciated.
>>
>> Thanks,
>> Sharanya V
>>
>

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to