コード例 #1
0
ファイル: test_element.py プロジェクト: Etiqa/eats
 def test_move_to_element(self):
     self.driver.get(self.base_url + '/index.html')
     el = Element(self.driver, "//span[@id='textValueFull']", 'xpath')
     self.assertEqual(el.value_of_css_property('color'), u'rgba(255, 0, 0, 1)')
     el.move_to_element()
     self.assertEqual(el.value_of_css_property('color'), u'rgba(0, 0, 0, 1)')
コード例 #2
0
ファイル: test_element.py プロジェクト: Etiqa/eats
 def test_move_to_next_element_from_element(self):
     el = Element(self.driver, "//input[@ng-true-value='w']", 'xpath')
     el.move_to_element()
     self.assertFalse(el.is_selected())