def test_simple_rightclick(self): rightclick("Perform a normal rightclick here.") self.assertEqual("Normal rightclick performed.", self.read_result_from_browser())
def test_rightclick_select_normal_item(self): rightclick("Rightclick here for context menu.") click("Normal item") self.assertEqual("Normal item selected.", self.read_result_from_browser())
def test_rightclick_point(self): rightclick(Point(39, 13)) self.assert_result_is("Button 1 rightclicked at offset (37, 10).", offset_delta=(0, 1))
def test_rightclick_top_left_offset(self): rightclick(Button("Button 3").top_left + (3, 4)) self.assert_result_is("Button 3 rightclicked at offset (3, 4).")
def test_rightclick_top_left(self): rightclick(Button("Button 1").top_left) self.assert_result_is("Button 1 rightclicked at offset (0, 0).", offset_delta=(1, 1))