コード例 #1
0
 def __init__(
     self: "SeleniumTestability",
     ctx: SeleniumLibrary,
     automatic_wait: bool = True,
     timeout: str = "30 seconds",
     error_on_timeout: bool = True,
     automatic_injection: bool = True,
 ) -> None:
     LibraryComponent.__init__(self, ctx)
     self.logger = get_logger("SeleniumTestability")
     self.logger.debug("__init__({},{},{},{},{})".format(ctx, automatic_wait, timeout, error_on_timeout, automatic_injection))
     self.el = ElementKeywords(ctx)
     self.CWD = abspath(dirname(__file__))
     self.js_bundle = join(self.CWD, "js", "testability.js")
     self.ctx.event_firing_webdriver = TestabilityListener
     self.ctx.testability_settings = {"testability": self}
     self.automatic_wait = is_truthy(automatic_wait)
     self.automatic_injection = is_truthy(automatic_injection)
     self.error_on_timeout = is_truthy(error_on_timeout)
     self.timeout = timeout  # type: ignore
     self.hidden_elements = {}  # type: Dict[str, str]
     self.browser_warn_shown = False
     self.empty_log_warn_shown = False
     self.ff_log_pos = {}  # type: Dict[str, int]
     self.testability_config = None  # type: OptionalDictType
コード例 #2
0
    def __init__(self, ctx):
        """This init documentation.

        Which also might have multiple chapters. This is
        also a boring example.
        """
        LibraryComponent.__init__(self, ctx)
        self.event_firing_webdriver = 'event_firing_webdriver'
コード例 #3
0
 def __init__(self,
              ctx,
              automatic_wait=True,
              timeout="30 seconds",
              error_on_timeout=True,
              automatic_injection=True):
     LibraryComponent.__init__(self, ctx)
     self.js = JavaScriptKeywords(ctx)
     self.CWD = abspath(dirname(__file__))
     self.ctx.event_firing_webdriver = TestabilityListener
     self.ctx.testability_settings = {"testability": self}
     self.automatic_wait = automatic_wait
     self.automatic_injection = automatic_injection
     self.error_on_timeout = error_on_timeout
     self.timeout = timeout
コード例 #4
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     raise ValueError('Error in import')
コード例 #5
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.element = ElementKeywords(ctx)
コード例 #6
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.element = ElementKeywords(ctx)
 def __init__(self, ctx, *args):
     LibraryComponent.__init__(self, ctx)
     self.args = args
コード例 #8
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.waiting_management = WaitingKeywords(ctx)
     self.browser_management = BrowserManagementKeywords(ctx)
     self.windows_management = window.WindowKeywords(ctx)
コード例 #9
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.logger = get_logger("SeleniumProxy")
     self.logger.debug("BrowserKeywords_{}".format(ctx))
     self.manager = BrowserManagementKeywords(ctx)
コード例 #10
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._new_creator = NewWebDriverCreator(self.log_dir)
コード例 #11
0
 def __init__(self, ctx):
     self.crypto = CryptoUtility()
     LibraryComponent.__init__(self, ctx)
コード例 #12
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._screenshot_index = {}
     self._screenshot_path_stack = []
     self.screenshot_root_directory = None
コード例 #13
0
 def __init__(self, ctx, arg1, arg2, *args, **kwargs):
     LibraryComponent.__init__(self, ctx)
     self.arg1 = arg1
     self.arg2 = arg2
     self.args = args
     self.kwargs = kwargs
コード例 #14
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     ctx._original_element_finder = ElementFinder(ctx)
     self.element_finder = DummyFinder(ctx)
コード例 #15
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.manager = BrowserManagementKeywords(ctx)
コード例 #16
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.event_firing_webdriver = 'event_firing_webdriver'
コード例 #17
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     ctx.event_firing_webdriver = "should be last"
コード例 #18
0
 def __init__(self, ctx, arg, *varargs, **kwargs):
     LibraryComponent.__init__(self, ctx)
     self.arg = arg
     self.varargs = varargs
     self.kwargs = kwargs
コード例 #19
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.logger = get_logger("SeleniumProxy")
     self.logger.debug("HTTPKeywords_{}".format(ctx))
コード例 #20
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._next_alert_dismiss_type = self.ACCEPT_ALERT
 def __init__(self, ctx, arg1, arg2):
     LibraryComponent.__init__(self, ctx)
     self.arg1 = arg1
     self.arg2 = arg2
コード例 #22
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._screenshot_index = {}
     self._screenshot_path_stack = []
     self.screenshot_root_directory = None
コード例 #23
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.form_element = FormElementKeywords(ctx)
コード例 #24
0
 def __init__(self, ctx, arg1, arg2):
     LibraryComponent.__init__(self, ctx)
     self.arg1 = arg1
     self.arg2 = arg2
コード例 #25
0
ファイル: file_name2.py プロジェクト: nyonnguyen/rbfgenerator
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     <Init-function-goes-here>
コード例 #26
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.elementkeys = ElementKeywords(ctx)
     self.waiting_management = WaitingKeywords(ctx)
コード例 #27
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.form_element = FormElementKeywords(ctx)
コード例 #28
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._window_manager = WindowManager(ctx)
     self._webdriver_creator = WebDriverCreator(self.log_dir)
コード例 #29
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
コード例 #30
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._window_manager = WindowManager()
コード例 #31
0
 def __init__(self, ctx, **kwargs):
     LibraryComponent.__init__(self, ctx)
     self.kwargs = kwargs
コード例 #32
0
ファイル: window.py プロジェクト: zsh2008/SeleniumLibrary
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._window_manager = WindowManager(ctx)
コード例 #33
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.element_management = SeleniumElementKeywords(ctx)
     self.formelement_management = FormElementKeywords(ctx)
     self.waiting_management = WaitingKeywords(ctx)
コード例 #34
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self.element_management = SeleniumElementKeywords(ctx)
コード例 #35
0
ファイル: MyPlugin.py プロジェクト: nhutnb22/DieuAuto
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     ctx._original_element_finder = ElementFinder(ctx)
     self.element_finder = DummyFinder(ctx)
コード例 #36
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
 def __init__(self, ctx, **kwargs):
     LibraryComponent.__init__(self, ctx)
     self.kwargs = kwargs
コード例 #38
0
 def __init__(self, ctx, *args):
     LibraryComponent.__init__(self, ctx)
     self.args = args
コード例 #39
0
 def __init__(self, ctx):
     LibraryComponent.__init__(self, ctx)
     self._table_element_finder = TableElementFinder(ctx)