def test_long_press_to_select_non_selectable_word(self): '''Testing long press on non selectable field. We should not select anything when long press on non selectable fields.''' self.openTestHtml(enabled=True) halfY = self._nonsel1.size['height'] / 2 long_press_without_contextmenu(self.marionette, self._nonsel1, self._long_press_time, 0, halfY) sel = SelectionManager(self._nonsel1) range_count = sel.range_count() self.assertEqual(range_count, 0)