Esempio n. 1
0
 def set_visual_grid_options(self, *options):
     # type: (*VisualGridOption) -> Configuration
     if options == (None, ):
         self.visual_grid_options = None
     else:
         argument_guard.are_(options, VisualGridOption)
         self.visual_grid_options = options
     return self
Esempio n. 2
0
def _clean_names(names):
    argument_guard.not_list_or_tuple(names)
    if len(names) == 1 and is_list_or_tuple(names[0]):
        names = names[0]
    argument_guard.are_(names, klass=basestring)
    return names
Esempio n. 3
0
 def visual_grid_options(self, *options):
     # type: (*VisualGridOption) -> SeleniumCheckSettings
     argument_guard.are_(options, VisualGridOption)
     self.values.visual_grid_options = options
     return self