Class: AutoItWindowState

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/auto_it_window.rb

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ AutoItWindowState

Returns a new instance of AutoItWindowState.



59
60
61
# File 'lib/selenium/auto_it_window.rb', line 59

def initialize(state)
  @state = state
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/selenium/auto_it_window.rb', line 75

def active?
  @state & 8 > 0
end

#enabled?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/selenium/auto_it_window.rb', line 71

def enabled?
  @state & 4 > 0
end

#exists?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/selenium/auto_it_window.rb', line 63

def exists?
  @state & 1 > 0
end

#maxmized?Boolean

Returns:

  • (Boolean)


83
84
85
# File 'lib/selenium/auto_it_window.rb', line 83

def maxmized?
  @state & 32 > 0
end

#minimized?Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/selenium/auto_it_window.rb', line 79

def minimized?
  @state & 16 > 0
end

#visible?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/selenium/auto_it_window.rb', line 67

def visible?
  @state & 2 > 0
end