<s> class IsElementVisibleTest ( object ) : <EOL> def test_is_element_visible_by_css ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_by_css ( '<STR_LIT>' ) . click ( ) <EOL> self . assertTrue ( self . browser . is_element_visible_by_css ( '<STR_LIT>' ) ) <EOL> def test_is_element_visible_by_css_using_a_custom_wait_time ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_by_css ( '<STR_LIT>' ) . click ( ) <EOL> self . assertTrue ( self . browser . is_element_visible_by_css ( '<STR_LIT>' , wait_time = <NUM_LIT:3> ) ) <EOL> def test_is_element_visible_by_css_returns_false_if_element_is_not_visible ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertFalse ( self . browser . is_element_visible_by_css ( '<STR_LIT>' ) ) <EOL> def test_is_element_not_visible_by_css ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertTrue ( self . browser . is_element_not_visible_by_css ( '<STR_LIT>' ) ) <EOL> def test_is_element_not_visible_by_css_returns_false_if_element_is_visible ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_by_css ( '<STR_LIT>' ) . first . click ( ) <EOL> self . assertFalse ( self . browser . is_element_not_visible_by_css ( '<STR_LIT>' ) ) <EOL> def test_is_element_not_visible_by_css_using_a_custom_wait_time ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertTrue ( self . browser . is_element_not_visible_by_css ( '<STR_LIT>' , wait_time = <NUM_LIT:3> ) ) <EOL> def test_is_element_visible_by_xpath ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_by_css ( '<STR_LIT>' ) . click ( ) <EOL> self . assertTrue ( self . browser . is_element_visible_by_xpath ( '<STR_LIT>' ) ) <EOL> def test_is_element_visible_by_xpath_using_a_custom_wait_time ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_by_css ( '<STR_LIT>' ) . click ( ) <EOL> self . assertTrue ( self . browser . is_element_visible_by_xpath ( '<STR_LIT>' , wait_time = <NUM_LIT:3> ) ) <EOL> def test_is_element_visible_by_xpath_returns_false_if_element_is_not_visible ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertFalse ( self . browser . is_element_visible_by_xpath ( '<STR_LIT>' ) ) <EOL> def test_is_element_not_visible_by_xpath ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertTrue ( self . browser . is_element_not_visible_by_xpath ( '<STR_LIT>' ) ) <EOL> def test_is_element_not_visible_by_xpath_returns_false_if_element_is_visible ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_by_css ( '<STR_LIT>' ) . click ( ) <EOL> self . assertFalse ( self . browser . is_element_not_visible_by_xpath ( '<STR_LIT>' ) ) <EOL> def test_is_element_not_visible_by_xpath_using_a_custom_wait_time ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertTrue ( self . browser . is_element_not_visible_by_xpath ( '<STR_LIT>' , wait_time = <NUM_LIT:3> ) ) </s>
