code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
from robotide.lib.robot.errors import DataError from robotide.lib.robot.model import SuiteVisitor from robotide.lib.robot.utils import html_escape class Merger(SuiteVisitor): def __init__(self, result): self.result = result self.current = None def merge(self, merged): self.result.se...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/result/merger.py
0.505615
0.195172
merger.py
pypi
from inspect import cleandoc from java.nio.charset import StandardCharsets from java.util import Locale from javax.lang.model.element.Modifier import PUBLIC from javax.lang.model.util import ElementFilter from javax.lang.model.type import TypeKind from javax.tools import DocumentationTool, ToolProvider from robotide...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libdocpkg/java9builder.py
0.600657
0.219965
java9builder.py
pypi
from inspect import cleandoc from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import (JAVA_VERSION, normalize, split_tags_from_doc, printable_name) from .model import LibraryDoc, KeywordDoc class JavaDocBuilder(object): def build(self, path): doc =...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libdocpkg/javabuilder.py
0.579995
0.186317
javabuilder.py
pypi
import fnmatch import glob import io import os import shutil import sys import tempfile import time from robotide.lib.robot.version import get_version from robotide.lib.robot.api import logger from robotide.lib.robot.utils import (abspath, ConnectionCache, console_decode, del_env_var, get_env...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/OperatingSystem.py
0.677581
0.382343
OperatingSystem.py
pypi
from __future__ import print_function import os import subprocess import sys if sys.platform.startswith('java'): from java.awt import Toolkit, Robot, Rectangle from javax.imageio import ImageIO from java.io import File elif sys.platform == 'cli': import clr clr.AddReference('System.Windows.Forms')...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/Screenshot.py
0.680348
0.244222
Screenshot.py
pypi
import copy from robotide.lib.robot.api import logger from robotide.lib.robot.utils import (is_dict_like, is_list_like, is_number, is_string, is_truthy, plural_or_not, seq2str, seq2str2, type_name, unic, Matcher) from robotide.lib.robot.utils.asserts import assert_equal from robotide.lib.robo...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/Collections.py
0.781164
0.594728
Collections.py
pypi
from __future__ import absolute_import from datetime import datetime, timedelta import time import re from robotide.lib.robot.version import get_version from robotide.lib.robot.utils import (elapsed_time_to_string, is_falsy, is_number, is_string, roundup, secs_to_timestr, timestr...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/DateTime.py
0.90722
0.354824
DateTime.py
pypi
from contextlib import contextmanager import inspect import re import socket import struct import telnetlib import time try: import pyte except ImportError: pyte = None from robotide.lib.robot.api import logger from robotide.lib.robot.api.deco import keyword from robotide.lib.robot.utils import (ConnectionCa...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/Telnet.py
0.79858
0.471527
Telnet.py
pypi
from __future__ import absolute_import import os import re from fnmatch import fnmatchcase from random import randint from string import ascii_lowercase, ascii_uppercase, digits from robotide.lib.robot.api import logger from robotide.lib.robot.utils import (is_bytes, is_string, is_truthy, is_unicode, lower, ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/String.py
0.902341
0.483466
String.py
pypi
from robotide.lib.robot.version import get_version from robotide.lib.robot.utils import IRONPYTHON, JYTHON, is_truthy if JYTHON: from .dialogs_jy import MessageDialog, PassFailDialog, InputDialog, SelectionDialog, MultipleSelectionDialog elif IRONPYTHON: from .dialogs_ipy import MessageDialog, PassFailDialog, ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/Dialogs.py
0.843509
0.259931
Dialogs.py
pypi
import difflib import re import time import token from tokenize import generate_tokens, untokenize from robotide.lib.robot.api import logger from robotide.lib.robot.errors import (ContinueForLoop, DataError, ExecutionFailed, ExecutionFailures, ExecutionPassed, ExitForLoop, ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/BuiltIn.py
0.645679
0.292911
BuiltIn.py
pypi
import copy import re import os try: from lxml import etree as lxml_etree except ImportError: lxml_etree = None from robotide.lib.robot.api import logger from robotide.lib.robot.libraries.BuiltIn import BuiltIn from robotide.lib.robot.utils import (asserts, ET, ETSource, is_falsy, is_string, is_truthy, ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/libraries/XML.py
0.776877
0.465387
XML.py
pypi
import getopt # optparse was not supported by Jython 2.2 import os import re import shlex import sys import glob import string import textwrap from robotide.lib.robot.errors import DataError, Information, FrameworkError from robotide.lib.robot.version import get_full_version from .misc import plural_or_not from ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/argumentparser.py
0.432543
0.193833
argumentparser.py
pypi
import difflib class RecommendationFinder(object): def __init__(self, normalizer=None): self.normalizer = normalizer or (lambda x: x) def find_recommendations(self, name, candidates, max_matches=10): """Return a list of close matches to `name` from `candidates`.""" if not name or no...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/recommendations.py
0.87142
0.279561
recommendations.py
pypi
import os import sys from .encodingsniffer import get_console_encoding, get_system_encoding from .compat import isatty from .platform import JYTHON, IRONPYTHON, PY3 from .robottypes import is_unicode from .unic import unic CONSOLE_ENCODING = get_console_encoding() SYSTEM_ENCODING = get_system_encoding() # IronPytho...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/encoding.py
0.494873
0.176069
encoding.py
pypi
from __future__ import division from operator import add, sub from .platform import PY2 from .robottypes import is_integer from .unic import unic def roundup(number, ndigits=0, return_type=None): """Rounds number to the given number of digits. Numbers equally close to a certain precision are always rounde...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/misc.py
0.874426
0.409929
misc.py
pypi
import re import fnmatch from functools import partial from .compat import py2to3 from .normalizing import normalize from .platform import IRONPYTHON, PY3 from .robottypes import is_string def eq(str1, str2, ignore=(), caseless=True, spaceless=True): str1 = normalize(str1, ignore, caseless, spaceless) str2 ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/match.py
0.585101
0.233258
match.py
pypi
import os import os.path import sys from robotide.lib.robot.errors import DataError from .encoding import system_decode from .platform import IRONPYTHON, PY_VERSION, PY2, WINDOWS from .robottypes import is_unicode from .unic import unic if IRONPYTHON and PY_VERSION == (2, 7, 8): # https://github.com/IronLangua...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/robotpath.py
0.428473
0.159774
robotpath.py
pypi
from .robottypes import type_name from .unic import unic def fail(msg=None): """Fail test immediately with the given message.""" _report_failure(msg) def assert_false(expr, msg=None): """Fail the test if the expression is True.""" if expr: _report_failure(msg) def assert_true(expr, msg=Non...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/asserts.py
0.683947
0.309885
asserts.py
pypi
try: from collections import MutableMapping except ImportError: from collections.abc import MutableMapping # Python 3.10 from .platform import PY3 from .robottypes import is_dict_like, is_unicode def normalize(string, ignore=(), caseless=True, spaceless=True): """Normalizes given string according to gi...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/utils/normalizing.py
0.879742
0.44734
normalizing.py
pypi
from robotide.lib.robot.utils import PY2 class JsonWriter(object): def __init__(self, output, separator=''): self._writer = JsonDumper(output) self._separator = separator def write_json(self, prefix, data, postfix=';\n', mapping=None, separator=True): self._writer...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/htmldata/jsonwriter.py
0.666931
0.182298
jsonwriter.py
pypi
import itertools class RowSplitter(object): _comment_mark = '#' _empty_cell_escape = '' # '${EMPTY}' _line_continuation = '...' setting_table = 'setting' _indented_tables = ('test case', 'keyword') _split_from = ('ELSE', 'ELSE IF', 'AND') def __init__(self, cols=8, split_multiline_doc=F...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/writer/rowsplitter.py
0.47171
0.264923
rowsplitter.py
pypi
import re from robotide.lib.robot.utils import attribute_escape, html_escape from .formatters import _DataFileFormatter class HtmlFormatter(_DataFileFormatter): _split_multiline_doc = False def _format_row(self, row, table=None): row = self._pad(self._escape_consecutive_whitespace(row), table) ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/writer/htmlformatter.py
0.474388
0.30421
htmlformatter.py
pypi
import re from .aligners import FirstColumnAligner, ColumnAligner, NullAligner from .dataextractor import DataExtractor from .rowsplitter import RowSplitter class _DataFileFormatter(object): _whitespace = re.compile(r"\s{2,}") _split_multiline_doc = True def __init__(self, column_count): self._...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/writer/formatters.py
0.605916
0.270769
formatters.py
pypi
import os from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import binary_file_writer, file_writer, PY2 from .filewriters import FileWriter class DataFileWriter(object): """Object to write parsed test data file objects back to disk.""" def __init__(self, **options): """...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/writer/datafilewriter.py
0.855957
0.388357
datafilewriter.py
pypi
from robotide.lib.robot.utils import (Matcher, NormalizedDict, is_string, py2to3, setter, unic) @py2to3 class Tags(object): def __init__(self, tags=None): self._tags = tags @setter def _tags(self, tags): if not tags: return () if is_string(ta...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/model/tags.py
0.799677
0.294443
tags.py
pypi
from itertools import chain import re from robotide.lib.robot.utils import NormalizedDict, unicode from .stats import CombinedTagStat, CriticalTagStat, TagStat from .tags import SingleTagPattern, TagPatterns class TagStatistics(object): """Container for tag statistics.""" def __init__(self, critical_stats...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/model/tagstatistics.py
0.799129
0.279317
tagstatistics.py
pypi
from robotide.lib.robot.utils import (Sortable, elapsed_time_to_string, html_escape, is_string, normalize, py2to3, unicode) from .tags import TagPattern @py2to3 class Stat(Sortable): """Generic statistic object used for storing all the statistic values.""" def __init__(self, name):...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/model/stats.py
0.91301
0.296642
stats.py
pypi
from robotide.lib.robot.utils import py2to3, setter from .tags import TagPatterns from .namepatterns import SuiteNamePatterns, TestNamePatterns from .visitor import SuiteVisitor class EmptySuiteRemover(SuiteVisitor): def end_suite(self, suite): suite.suites = [s for s in suite.suites if s.test_count] ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/model/filter.py
0.585101
0.189953
filter.py
pypi
from robotide.lib.robot.utils import py2to3, unicode @py2to3 class ItemList(object): __slots__ = ['_item_class', '_common_attrs', '_items'] def __init__(self, item_class, common_attrs=None, items=None): self._item_class = item_class self._common_attrs = common_attrs self._items = () ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/model/itemlist.py
0.721547
0.1933
itemlist.py
pypi
class SuiteVisitor(object): """Abstract class to ease traversing through the test suite structure. See the :mod:`module level <robot.model.visitor>` documentation for more information and an example. """ def visit_suite(self, suite): """Implements traversing through the suite and its direc...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/model/visitor.py
0.905994
0.599514
visitor.py
pypi
import copy from robotide.lib.robot.utils import SetterAwareType, py2to3, with_metaclass @py2to3 class ModelObject(with_metaclass(SetterAwareType, object)): __slots__ = [] def copy(self, **attributes): """Return shallow copy of this object. :param attributes: Attributes to be set for the r...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/model/modelobject.py
0.799521
0.457924
modelobject.py
pypi
import re from .. import robotapi, utils from .basecontroller import _BaseController from .cellinfo import CellPosition, CellType, CellInfo, CellContent, ContentType, UPPERCASE_KWS from ..namespace.local_namespace import local_namespace from ..utils import variablematcher class StepController(_BaseController): ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/controller/stepcontrollers.py
0.534127
0.266882
stepcontrollers.py
pypi
from ..publish.messages import RideModificationPrevented class _BaseController(object): @property def display_name(self): return self.data.name def execute(self, command): if not command.modifying or self.is_modifiable(): return command.execute(self) else: ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/controller/basecontroller.py
0.443841
0.291497
basecontroller.py
pypi
import os from itertools import chain from .. import robotapi from .arguments import parse_arguments_to_var_dict from .basecontroller import ControllerWithParent, WithUndoRedoStacks from .settingcontrollers import (DocumentationController, FixtureController, TagsController, TimeoutController, ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/controller/macrocontrollers.py
0.498535
0.186021
macrocontrollers.py
pypi
from functools import lru_cache from pathlib import Path from pathspec import PathSpec from robocop.exceptions import FileError DEFAULT_EXCLUDES = r"(\.direnv|\.eggs|\.git|\.hg|\.nox|\.tox|\.venv|venv|\.svn)" def find_project_root(srcs): """Return a directory containing .git, .robocop or pyproject.toml. Th...
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/files.py
0.679285
0.333449
files.py
pypi
class RobocopFatalError(ValueError): pass class ConfigGeneralError(RobocopFatalError): pass class InvalidExternalCheckerError(RobocopFatalError): def __init__(self, path): msg = f'Fatal error: Failed to load external rules from file "{path}". Verify if the file exists' super().__init__(m...
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/exceptions.py
0.725454
0.27229
exceptions.py
pypi
from collections import defaultdict from robot.api import Token from robocop.checkers import VisitorChecker from robocop.rules import Rule, RuleSeverity rules = { "0601": Rule( rule_id="0601", name="tag-with-space", msg="Tag '{{ tag }}' should not contain spaces", severity=RuleSev...
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/checkers/tags.py
0.759136
0.407805
tags.py
pypi
from collections import defaultdict from robot.api import Token from robocop.checkers import VisitorChecker from robocop.rules import Rule, RuleParam, RuleSeverity from robocop.utils import get_errors, normalize_robot_name, normalize_robot_var_name def configure_sections_order(value): section_map = { "s...
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/checkers/duplications.py
0.670716
0.400749
duplications.py
pypi
from robot.parsing.model.blocks import SettingSection from robot.parsing.model.statements import Documentation from robocop.checkers import VisitorChecker from robocop.rules import Rule, RuleParam, RuleSeverity from robocop.utils.misc import str2bool rules = { "0201": Rule( rule_id="0201", name="m...
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/checkers/documentation.py
0.645679
0.370225
documentation.py
pypi
import inspect try: from robot.api.parsing import ModelVisitor except ImportError: from robot.parsing.model.visitor import ModelVisitor from robot.utils import FileReader from robocop.exceptions import RuleNotFoundError, RuleParamNotFoundError, RuleReportsNotFoundError from robocop.utils import modules_from_...
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/checkers/__init__.py
0.574395
0.172939
__init__.py
pypi
import re from robot.parsing.model.blocks import CommentSection, TestCase from robot.parsing.model.statements import Arguments, Comment, EmptyLine, KeywordCall from robocop.checkers import RawFileChecker, VisitorChecker from robocop.rules import Rule, RuleParam, RuleSeverity from robocop.utils import get_section_name...
/robotframework_robocop-2.2.0-py3-none-any.whl/robocop/checkers/lengths.py
0.506591
0.277381
lengths.py
pypi
import subprocess from pathlib import Path from robot.api import logger from robot.api.deco import library, keyword from robot.libraries.BuiltIn import BuiltIn from robot.running.model import TestCase from robot.result.model import TestCase as TestCaseResult import shlex class ErrorsAreFatal: ROBOT_LISTENER_API_V...
/robotframework_roboops-0.2.4-py3-none-any.whl/RoboOps/RoboOps.py
0.577972
0.366221
RoboOps.py
pypi
import json from itertools import count from subprocess import Popen, PIPE import sys from os.path import realpath from pathlib import Path from typing import Any, Dict, List, Mapping, Tuple from robot.errors import RemoteError from robot.libraries.Remote import RemoteResult class RoboSAPiensClient(object): def __...
/robotframework_robosapiens-1.2.7-py3-none-any.whl/RoboSAPiens/client.py
0.506836
0.15785
client.py
pypi
from robot.api.deco import keyword from RoboSAPiens.client import RoboSAPiensClient class RoboSAPiens(RoboSAPiensClient): """ RoboSAPiens: SAP GUI-Automation for Humans In order to use this library the following requirements must be satisfied: - Scripting on the SAP Server must be [https://he...
/robotframework_robosapiens-1.2.7-py3-none-any.whl/RoboSAPiens/__init__.py
0.701713
0.248802
__init__.py
pypi
from robot.api.deco import keyword from RoboSAPiens.client import RoboSAPiensClient class DE(RoboSAPiensClient): """ RoboSAPiens: SAP GUI-Automatisierung für Menschen Um diese Bibliothek zu verwenden, müssen die folgenden Bedingungen erfüllt werden: - Das [https://help.sap.com/saphelp_aii710/...
/robotframework_robosapiens-1.2.7-py3-none-any.whl/RoboSAPiens/DE/__init__.py
0.50415
0.264082
__init__.py
pypi
from robot.api.deco import keyword from robot.libraries.BuiltIn import BuiltIn import roslibpy from roslibpy import Service, ServiceRequest class ROS(object): """Robot Framework test library for the Robot Operating System (ROS) This library utilizes Robot Framework's [https://robotframework.org/robotfram...
/robotframework-rosgazebolibrary-0.0.5.tar.gz/robotframework-rosgazebolibrary-0.0.5/src/RosGazeboLibrary/ROS.py
0.668447
0.257059
ROS.py
pypi
from robot.api.deco import keyword from robot.libraries.BuiltIn import BuiltIn class Gazebo(object): """Robot Framework test library for the Gazebo simulator See also http://gazebosim.org/tutorials/?tut=ros_comm == Table of contents == %TOC% """ ROBOT_LIBRARY_SCOPE = 'SUITE' def __init...
/robotframework-rosgazebolibrary-0.0.5.tar.gz/robotframework-rosgazebolibrary-0.0.5/src/RosGazeboLibrary/Gazebo.py
0.533397
0.423041
Gazebo.py
pypi
from datetime import datetime ENTITY_MAP = { 'Keyword': 'STEP', 'SuiteKeyword': 'STEP', 'TestKeyword': 'STEP', 'KeywordKeyword': 'STEP', 'SuiteSetup': 'BEFORE_SUITE', 'SuiteTeardown': 'AFTER_SUITE', 'TestSetup': 'BEFORE_TEST', 'TestTeardown': 'AFTER_TEST', 'KeywordSetup': 'BEFORE_T...
/robotframework_rp_tools-0.0.6-py3-none-any.whl/robotframework_rp_tools/listener_model.py
0.699254
0.217275
listener_model.py
pypi
from datetime import datetime ENTITY_MAP = { 'TestSuite': 'SUITE', 'TestCase': 'TEST', 'Keyword': 'STEP', 'TestSuiteKeyword': 'STEP', 'TestCaseKeyword': 'STEP', 'KeywordKeyword': 'STEP', 'TestSuiteSetup': 'BEFORE_SUITE', 'TestSuiteTeardown': 'AFTER_SUITE', 'TestCaseSetup': 'BEFORE_...
/robotframework_rp_tools-0.0.6-py3-none-any.whl/robotframework_rp_tools/visitor_model.py
0.634204
0.411347
visitor_model.py
pypi
import pythoncom import win32com.client import time from pythoncom import com_error import robot.libraries.Screenshot as screenshot import os from robot.api import logger class SapGuiLibrary: """The SapGuiLibrary is a library that enables users to create tests for the Sap Gui application The library uses the...
/robotframework-sapguilibrary-1.1.tar.gz/robotframework-sapguilibrary-1.1/SapGuiLibrary/SapGuiLibrary.py
0.707304
0.35987
SapGuiLibrary.py
pypi
from typing import Optional from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary import SeleniumLibrary from saucebindings.options import SauceOptions from saucebindings.session import SauceSession from robot.utils import is_truthy class SauceLabs(LibraryComponent): def __init__(self:...
/robotframework-saucelabs-0.2.2.tar.gz/robotframework-saucelabs-0.2.2/src/SauceLabs/plugin.py
0.842831
0.263226
plugin.py
pypi
import scp from robot.api import logger from robot.libraries.BuiltIn import BuiltIn class SCPLibrary(object): """Robot Framework Secure Copy (SCP) test library. This library uses the current connection established via default SSHLibrary (robotframework-sshlibrary). Because of this, and unlike another...
/robotframework-scpcompat-0.1.0.tar.gz/robotframework-scpcompat-0.1.0/SCPLibrary/library.py
0.736306
0.327803
library.py
pypi
from paramiko import SSHClient from paramiko.client import AutoAddPolicy from scp import SCPClient from six import string_types try: from _version import __version__, __revision__ except ImportError: __version__ = "UNKNOWN" __revision__ = "UNKNOWN" class SCPNotConnectedError(RuntimeError): ROBOT_EXIT...
/robotframework-scplibrary-1.2.0.tar.gz/robotframework-scplibrary-1.2.0/SCPLibrary/library.py
0.764452
0.257888
library.py
pypi
from .version import VERSION from .client import Client from .videoclient import VideoClient from .gifclient import GifClient __version__ = VERSION class ScreenCapLibrary: """ Test Library for taking screenshots on the machine where tests are run. Note that successfully taking screenshots requires tests to...
/robotframework-screencaplibrary-1.6.0rc1.tar.gz/robotframework-screencaplibrary-1.6.0rc1/src/ScreenCapLibrary/library.py
0.869853
0.635081
library.py
pypi
import os import cv2 import numpy as np cursor_x_list = [0, 8, 6, 14, 12, 4, 2, 0] cursor_y_list = [0, 2, 4, 12, 14, 6, 8, 0] def _norm_path(path): if not path: return path return os.path.normpath(path.replace('/', os.sep)) def _compression_value_conversion(value): """ PNG compression valu...
/robotframework-screencaplibrary-1.6.0rc1.tar.gz/robotframework-screencaplibrary-1.6.0rc1/src/ScreenCapLibrary/utils.py
0.483161
0.294158
utils.py
pypi
from SeleniumLibrary.base import LibraryComponent, keyword from selenium.webdriver.common.action_chains import ActionChains class SeleniumMouseExtensions(LibraryComponent): def __init__(self, ctx): LibraryComponent.__init__(self, ctx) @keyword def mouse_down_with_offset(self, locator, xoffset, yo...
/robotframework_selenium_mouseextensions-0.1-py3-none-any.whl/SeleniumMouseExtensions/MouseExtensions.py
0.873781
0.356139
MouseExtensions.py
pypi
import os from keywords import * from version import VERSION from utils import LibraryListener __version__ = VERSION class Selenium2Library( _LoggingKeywords, _RunOnFailureKeywords, _BrowserManagementKeywords, _ElementKeywords, _TableElementKeywords, _FormElementKeywords, _SelectElementKey...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/__init__.py
0.675551
0.528412
__init__.py
pypi
import time from selenium.common.exceptions import WebDriverException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from keywordgroup import KeywordGroup class _AlertKeywords(KeywordGroup): __ACCEPT_ALERT = 'accept' __DISMISS_ALERT = ...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_alert.py
0.681515
0.190649
_alert.py
pypi
import os from keywordgroup import KeywordGroup class _JavaScriptKeywords(KeywordGroup): # Public def execute_javascript(self, *code): """Executes the given JavaScript code. `code` may contain multiple lines of code and may be divided into multiple cells in the test data. In that ca...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_javascript.py
0.716417
0.506469
_javascript.py
pypi
from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.remote.webelement import WebElement from Selenium2Library import utils from Selenium2Library.locators import ElementFinder from Selenium2Library.locators import CustomLocator from key...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_element.py
0.773302
0.237631
_element.py
pypi
import robot import os, errno from Selenium2Library import utils from keywordgroup import KeywordGroup class _ScreenshotKeywords(KeywordGroup): def __init__(self): self._screenshot_index = {} self._screenshot_path_stack = [] self.screenshot_root_directory = None # Public def se...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_screenshot.py
0.641198
0.265035
_screenshot.py
pypi
import os from keywordgroup import KeywordGroup from selenium.common.exceptions import WebDriverException class _FormElementKeywords(KeywordGroup): # Public, form def submit_form(self, locator=None): """Submits a form identified by `locator`. If `locator` is empty, first form in the page wil...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_formelement.py
0.657758
0.188866
_formelement.py
pypi
import os import sys from Selenium2Library.locators import TableElementFinder from keywordgroup import KeywordGroup class _TableElementKeywords(KeywordGroup): def __init__(self): self._table_element_finder = TableElementFinder() # Public def get_table_cell(self, table_locator, row, column, logle...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_tableelement.py
0.605449
0.661909
_tableelement.py
pypi
from selenium.webdriver.support.ui import Select from keywordgroup import KeywordGroup from selenium.common.exceptions import NoSuchElementException class _SelectElementKeywords(KeywordGroup): # Public def get_list_items(self, locator): """Returns the values in the select list identified by `locator...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_selectelement.py
0.727104
0.386474
_selectelement.py
pypi
from robot.libraries import BuiltIn from keywordgroup import KeywordGroup BUILTIN = BuiltIn.BuiltIn() class _RunOnFailureKeywords(KeywordGroup): def __init__(self): self._run_on_failure_keyword = None self._running_on_failure_routine = False # Public def register_keyword_to_run_on_failu...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_runonfailure.py
0.788217
0.209712
_runonfailure.py
pypi
import time import robot from keywordgroup import KeywordGroup class _WaitingKeywords(KeywordGroup): # Public def wait_for_condition(self, condition, timeout=None, error=None): """Waits until the given `condition` is true or `timeout` expires. The `condition` can be arbitrary JavaScript expr...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/keywords/_waiting.py
0.759671
0.296433
_waiting.py
pypi
from Selenium2Library import utils from robot.api import logger from robot.utils import NormalizedDict from robot.libraries.BuiltIn import BuiltIn class ElementFinder(object): def __init__(self): strategies = { 'identifier': self._find_by_identifier, 'id': self._find_by_id, ...
/robotframework-selenium2library-divfor-1.8.1.tar.gz/robotframework-selenium2library-divfor-1.8.1/src/Selenium2Library/locators/elementfinder.py
0.716318
0.164181
elementfinder.py
pypi
from .version import VERSION from robot.libraries.BuiltIn import BuiltIn from robot.api.deco import keyword from robot.api import logger from .attribute import AttributeHelper from .click import ClickHelper from .frame import FrameHelper from .input import InputHelper from .select import SelectHelper from .textarea imp...
/robotframework_seleniumhelperlibrary-0.1.8-py3-none-any.whl/SeleniumHelperLibrary/helper.py
0.731634
0.270784
helper.py
pypi
from .version import VERSION from robot.libraries.BuiltIn import BuiltIn from robot.api.deco import keyword from robot.api import logger from .util import Util class WebElementHelper(Util): def __init__(self): pass @keyword("WebElement By Text Should Be Present") def webelement_by_text_should_be_...
/robotframework_seleniumhelperlibrary-0.1.8-py3-none-any.whl/SeleniumHelperLibrary/web_element.py
0.616359
0.237112
web_element.py
pypi
from .version import VERSION from robot.libraries.BuiltIn import BuiltIn from robot.api.deco import keyword from robot.api import logger from .util import Util class LinkHelper(Util): def __init__(self): pass @keyword("Link Should Be Present") def link_should_be_present(self, text, index="las...
/robotframework_seleniumhelperlibrary-0.1.8-py3-none-any.whl/SeleniumHelperLibrary/link.py
0.568775
0.157137
link.py
pypi
from .version import VERSION from robot.libraries.BuiltIn import BuiltIn from robot.api.deco import keyword from robot.api import logger from .util import Util class WaitHelper(Util): def __init__(self): pass @keyword("Wait Until Element Is Visible With Retry") def wait_until_element_is_visib...
/robotframework_seleniumhelperlibrary-0.1.8-py3-none-any.whl/SeleniumHelperLibrary/wait.py
0.666497
0.181753
wait.py
pypi
from collections import namedtuple from datetime import timedelta from inspect import getdoc, isclass from typing import Optional, List from robot.api import logger from robot.errors import DataError from robot.libraries.BuiltIn import BuiltIn from robot.utils import is_string from robot.utils.importer import Importer...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/__init__.py
0.917714
0.396652
__init__.py
pypi
from typing import Union from selenium.webdriver.remote.webelement import WebElement from SeleniumLibrary.base import LibraryComponent, keyword class FrameKeywords(LibraryComponent): @keyword def select_frame(self, locator: Union[WebElement, str]): """Sets frame identified by ``locator`` as the curr...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/frames.py
0.899528
0.316924
frames.py
pypi
import os from typing import Optional, Union from robot.libraries.BuiltIn import BuiltIn from selenium.webdriver.remote.webelement import WebElement from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary.errors import ElementNotFound class FormElementKeywords(LibraryComponent): @keywor...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/formelement.py
0.869382
0.23421
formelement.py
pypi
from datetime import timedelta from typing import Optional from selenium.common.exceptions import TimeoutException, WebDriverException from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from SeleniumLibrary.base import keyword, LibraryComponent fro...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/alert.py
0.89751
0.395193
alert.py
pypi
import time from datetime import timedelta from typing import Optional, Union from selenium.common.exceptions import StaleElementReferenceException from selenium.webdriver.remote.webelement import WebElement from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary.errors import ElementNotFound...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/waiting.py
0.906407
0.326943
waiting.py
pypi
from typing import Union from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement from SeleniumLibrary.base import LibraryComponent, keyword class TableElementKeywords(LibraryComponent): @keyword def get_table_cell( self, locator: Union[WebEleme...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/tableelement.py
0.897659
0.389372
tableelement.py
pypi
from datetime import datetime from typing import Union, Optional from robot.libraries.DateTime import convert_date from robot.utils import DotDict from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary.errors import CookieNotFound class CookieInformation: def __init__( self, ...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/cookie.py
0.91193
0.246369
cookie.py
pypi
import os from typing import Union from robot.utils import get_link_path from selenium.webdriver.remote.webelement import WebElement from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary.utils.path_formatter import _format_path DEFAULT_FILENAME_PAGE = "selenium-screenshot-{index}.png" DEFAU...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/screenshot.py
0.850996
0.231213
screenshot.py
pypi
from typing import Optional from SeleniumLibrary.base import LibraryComponent, keyword class RunOnFailureKeywords(LibraryComponent): @keyword def register_keyword_to_run_on_failure(self, keyword: Optional[str]) -> str: """Sets the keyword to execute, when a SeleniumLibrary keyword fails. ``k...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/runonfailure.py
0.912799
0.229638
runonfailure.py
pypi
from typing import List, Optional, Union from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.support.ui import Select from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary.utils import is_truthy, plural_or_not class SelectElementKeywords(LibraryComponent): ...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/selectelement.py
0.931009
0.425307
selectelement.py
pypi
from collections import namedtuple from typing import List, Optional, Tuple, Union from SeleniumLibrary.utils import is_noney from robot.utils import plural_or_not, is_truthy from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.remote....
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/element.py
0.924313
0.358325
element.py
pypi
import time from typing import Optional, List, Tuple, Union from SeleniumLibrary.utils import is_truthy, is_falsy, timestr_to_secs from selenium.common.exceptions import NoSuchWindowException from SeleniumLibrary.base import keyword, LibraryComponent from SeleniumLibrary.locators import WindowManager from SeleniumLib...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/window.py
0.922578
0.38217
window.py
pypi
import time import types from datetime import timedelta from typing import Optional, Union, Any, List from selenium import webdriver from selenium.webdriver import FirefoxProfile from selenium.webdriver.support.event_firing_webdriver import EventFiringWebDriver from SeleniumLibrary.base import keyword, LibraryCompon...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/browsermanagement.py
0.878451
0.258361
browsermanagement.py
pypi
import os from collections import namedtuple from typing import Any, Union from robot.utils import plural_or_not, seq2str from selenium.webdriver.remote.webelement import WebElement from SeleniumLibrary.base import LibraryComponent, keyword class JavaScriptKeywords(LibraryComponent): js_marker = "JAVASCRIPT" ...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/keywords/javascript.py
0.782621
0.400456
javascript.py
pypi
from typing import Any, Optional, List from selenium.webdriver.remote.webelement import WebElement from SeleniumLibrary.utils import escape_xpath_value class ContextAware: def __init__(self, ctx): """Base class exposing attributes from the common context. :param ctx: The library itself as a con...
/robotframework-seleniumlibrary-6.1.2rc1.tar.gz/robotframework-seleniumlibrary-6.1.2rc1/src/SeleniumLibrary/base/context.py
0.940216
0.226741
context.py
pypi
from robot.libraries.BuiltIn import BuiltIn from robot.api.deco import keyword from SeleniumLibraryExtends.FindElements.findElements import FindElements from SeleniumLibraryExtends.report import Report class ElementInteraction: def __init__(self): pass @keyword("I press the element ${locator}") ...
/robotframework_seleniumlibraryextends-1.0.0-py3-none-any.whl/SeleniumLibraryExtends/ElementInteraction/elementInteraction.py
0.513668
0.231093
elementInteraction.py
pypi
from collections import OrderedDict from collections.abc import Mapping, MutableMapping from SeleniumProxy.logger import get_logger, kwargstr, argstr from selenium.common.exceptions import TimeoutException import wrapt import time @wrapt.decorator def log_wrapper(wrapped, instance, args, kwargs): instance.logger....
/robotframework-seleniumproxy-0.0.4.tar.gz/robotframework-seleniumproxy-0.0.4/src/SeleniumProxy/webdriver/request.py
0.833053
0.199113
request.py
pypi
from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary.keywords import BrowserManagementKeywords from selenium.webdriver.support.events import EventFiringWebDriver from robot.utils import is_truthy from SeleniumProxy import webdriver from SeleniumProxy.logger import get_logger, kwargstr, argstr...
/robotframework-seleniumproxy-0.0.4.tar.gz/robotframework-seleniumproxy-0.0.4/src/SeleniumProxy/keywords/browser_keywords.py
0.690037
0.298581
browser_keywords.py
pypi
import re import threading from urllib.parse import urlsplit from SeleniumProxy.proxy.util import is_list_alike class RequestModifier: """This class is responsible for modifying the URL and headers of a request. Instances of this class are designed to be stateful and threadsafe. """ def __init__...
/robotframework-seleniumproxy-0.0.4.tar.gz/robotframework-seleniumproxy-0.0.4/src/SeleniumProxy/proxy/modifier.py
0.77586
0.348756
modifier.py
pypi
from robot.api.deco import keyword from robot.libraries.BuiltIn import BuiltIn import os.path import re def resource(name): return os.path.join( os.path.dirname(__file__), 'resources', name, ) class Image(object): @keyword('Crop image') def crop_image(self, output_dir, filen...
/robotframework_seleniumscreenshots-0.9.5-py3-none-any.whl/SeleniumScreenshots/__init__.py
0.849597
0.335596
__init__.py
pypi
from SeleniumLibrary.base import LibraryComponent, keyword from SeleniumLibrary.keywords.element import ElementKeywords from SeleniumLibrary import SeleniumLibrary from os.path import abspath, dirname, join from .listener import TestabilityListener from .javascript import JS_LOOKUP from .logger import get_logger, argst...
/robotframework-seleniumtestability-2.1.0.tar.gz/robotframework-seleniumtestability-2.1.0/src/SeleniumTestability/plugin.py
0.790166
0.289133
plugin.py
pypi
from SeleniumLibrary import SeleniumLibrary from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.support.events import AbstractEventListener from robot.libraries.BuiltIn import BuiltIn from .logger import get_logger, kwargstr, args...
/robotframework-seleniumtestability-2.1.0.tar.gz/robotframework-seleniumtestability-2.1.0/src/SeleniumTestability/listener.py
0.766337
0.223409
listener.py
pypi
JS_LOOKUP = { "wait_for_testability": """ var readyCallback = arguments[arguments.length - 1]; window.testability.when.ready(function() { readyCallback(true) }); """, "wait_for_document_ready": """ var readyCallback = arguments[arguments.length - 1]; var c...
/robotframework-seleniumtestability-2.1.0.tar.gz/robotframework-seleniumtestability-2.1.0/src/SeleniumTestability/javascript.py
0.432063
0.363986
javascript.py
pypi
import json from seleniumwire import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from robot.libraries.BuiltIn import BuiltIn from robot.api....
/robotframework-seleniumwire-0.1.1.tar.gz/robotframework-seleniumwire-0.1.1/src/SeleniumWireLibrary/wire.py
0.724675
0.188399
wire.py
pypi
from collections import defaultdict from robot.api.parsing import ModelVisitor class PathNode: def __init__(self, name): self.name = name class ComplexityChecker(ModelVisitor): def __init__(self): self.nodes = defaultdict(list) self.graph = None self.tail = None def con...
/robotframework-sherlock-0.3.0.tar.gz/robotframework-sherlock-0.3.0/sherlock/complexity.py
0.719581
0.248711
complexity.py
pypi
import difflib import re from collections import defaultdict class RecommendationFinder: def find_similar(self, name, candidates): norm_name = self.normalize(name) norm_cand = self.get_normalized_candidates(candidates) matches = [] for norm in norm_name: matches += self...
/robotframework-sherlock-0.3.0.tar.gz/robotframework-sherlock-0.3.0/sherlock/exceptions.py
0.804713
0.28262
exceptions.py
pypi
from rich.console import Console, Group from rich.markup import escape from rich.table import Table from rich.text import Text from rich.tree import Tree import sherlock.report from sherlock.model import DIRECTORY_TYPE, KeywordTimings def timings_to_table(timings): timings_table = Table(title="Elapsed time") ...
/robotframework-sherlock-0.3.0.tar.gz/robotframework-sherlock-0.3.0/sherlock/report/print.py
0.436382
0.215145
print.py
pypi
import importlib.util import inspect from pathlib import Path import sherlock.exceptions class Report: def get_report(self, tree, tree_name, path_root): raise NotImplementedError def _import_module_from_file(file_path): """Import Python file as module. importlib does not support importing Pyth...
/robotframework-sherlock-0.3.0.tar.gz/robotframework-sherlock-0.3.0/sherlock/report/__init__.py
0.574992
0.194291
__init__.py
pypi