Exemple #1
0
 def test_simple_rightclick(self):
     rightclick("Perform a normal rightclick here.")
     self.assertEqual("Normal rightclick performed.",
                      self.read_result_from_browser())
Exemple #2
0
 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())
Exemple #3
0
 def test_rightclick_point(self):
     rightclick(Point(39, 13))
     self.assert_result_is("Button 1 rightclicked at offset (37, 10).",
                           offset_delta=(0, 1))
Exemple #4
0
 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).")
Exemple #5
0
 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))