Exemplo n.º 1
0
 def cut_provider(self, cutprovider):
     # type: (Union[FixedCutProvider,UnscaledFixedCutProvider,NullCutProvider])->None
     argument_guard.is_in(
         cutprovider,
         [FixedCutProvider, UnscaledFixedCutProvider, NullCutProvider])
     self._cut_provider = cutprovider
Exemplo n.º 2
0
 def rotation(self, rotation):
     # type: (Union[int,float]) -> None
     argument_guard.is_in(rotation, [int, float])
     if self._selenium_eyes and self.driver:
         self.driver.rotation = int(rotation)