History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-179
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Jeff Fry
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Watir

$IE_HIDE plus ie.minimize can hide more than just IE

Created: 12/Oct/07 07:52 PM   Updated: 14/Oct/07 11:03 AM
Component/s: None
Affects Version/s: None
Fix Version/s: Future

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
If you create a script containing both $IE_HIDE and $ie.minimize, $ie.minimize will go ahead and minimize whatever window has focus (which might happen to be an IE window, but is just as likely to be some other application).

Expected:
$ie.minimize should never minimize anything other than IE.

Sample script to repro the bug:

require 'test/unit'
require 'watir'

class TC_OnlyMinimizeIE < Test::Unit::TestCase

  def test_only_minimize_ie
    $HIDE_IE = true
    $browser = Watir::IE.new
    5.times do
      $browser.minimize # this will currently minimize five items from your desktop.
    end #do
  end #def
end #class

 All   Comments   Work Log   Change History      Sort Order:
Bret Pettichord - 14/Oct/07 12:44 AM
Downgrading because this looks easy to workaround. Please comment if this isn't true.

Jeff Fry - 14/Oct/07 11:03 AM
Agreed. There's no good reason for someone to do this. It was a mistake that I made, and that I easily corrected...but that seemed like something we should keep watir from doing, if it's not too much work.