id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30,900 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/core/sb_driver.py | seleniumbase.core.sb_driver.DriverMethods | from seleniumbase.fixtures import js_utils
from seleniumbase.fixtures import shared_utils
from seleniumbase.config import settings
from contextlib import suppress
from selenium.webdriver.remote.webdriver import WebDriver
from seleniumbase.fixtures import page_actions
from selenium.webdriver.remote.webelement import Web... |
class DriverMethods(WebDriver):
def __init__(self, driver):
pass
def __is_cdp_swap_needed(self):
'''If the driver is disconnected, use a CDP method when available.'''
pass
def find_element(self, by=None, value=None):
pass
def find_elements(self, by=None, value=None):... | 69 | 6 | 4 | 0 | 4 | 0 | 2 | 0.06 | 0 | 2 | 0 | 0 | 67 | 1 | 67 | 67 | 357 | 66 | 274 | 84 | 204 | 17 | 232 | 82 | 164 | 7 | 0 | 2 | 101 |
30,901 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/core/style_sheet.py | seleniumbase.core.style_sheet.Saved | class Saved:
pass | class Saved:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
30,902 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Backbone | class Backbone:
VER = '1.6.0'
MIN_JS = 'https://cdn.jsdelivr.net/npm/backbone@%s/backbone.min.js' % VER | class Backbone:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,903 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.BootstrapTour | class BootstrapTour:
LIB = 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tour'
VER = '0.12.0'
MIN_CSS = '%s/%s/css/bootstrap-tour-standalone.min.css' % (LIB, VER)
MIN_JS = 'https://seleniumbase.github.io/cdn/js/bootstraptour.min.js' | class BootstrapTour:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
30,904 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Browser | class Browser:
GOOGLE_CHROME = 'chrome'
EDGE = 'edge'
FIREFOX = 'firefox'
INTERNET_EXPLORER = 'ie'
SAFARI = 'safari'
REMOTE = 'remote'
VERSION = {'chrome': None, 'edge': None, 'firefox': None, 'ie': None, 'safari': None, 'remote': None}
LATEST = {'chrome': None, 'edge': None, 'firefox': ... | class Browser:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 25 | 2 | 23 | 9 | 22 | 0 | 9 | 9 | 8 | 0 | 0 | 0 | 0 |
30,905 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Charts | class Charts:
SAVED_FOLDER = 'saved_charts' | class Charts:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,906 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Dashboard | from seleniumbase.core import encoded_images
class Dashboard:
TITLE = 'SeleniumBase Dashboard\xa0⚪'
STYLE_CSS = 'assets/pytest_style.css'
META_REFRESH_HTML = '<meta http-equiv="refresh" content="12">'
LIVE_JS = 'assets/live.js#html'
LOCKFILE = Files.DOWNLOADS_FOLDER + '/dashboard.lock'
DASH_JSO... |
class Dashboard:
def get_dash_pie_1():
pass
def get_dash_pie_2():
pass
def get_dash_pie_3():
pass | 4 | 0 | 4 | 0 | 4 | 0 | 2 | 0.25 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 26 | 3 | 20 | 11 | 16 | 5 | 20 | 11 | 16 | 2 | 0 | 1 | 6 |
30,907 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.DriverJS | class DriverJS:
LIB = 'https://cdn.jsdelivr.net/npm/driver.js'
VER = '0.9.8'
MIN_CSS = '%s@%s/dist/driver.min.css' % (LIB, VER)
MIN_JS = '%s@%s/dist/driver.min.js' % (LIB, VER) | class DriverJS:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
30,908 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Environment | class Environment:
QA = 'qa'
RC = 'rc'
STAGING = 'staging'
DEVELOP = 'develop'
PRODUCTION = 'production'
PERFORMANCE = 'performance'
REPLICA = 'replica'
FEDRAMP = 'fedramp'
OFFLINE = 'offline'
ONLINE = 'online'
MASTER = 'master'
REMOTE = 'remote'
LEGACY = 'legacy'
... | class Environment:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 0 | 25 | 25 | 24 | 1 | 25 | 25 | 24 | 0 | 0 | 0 | 0 |
30,909 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Files | class Files:
DOWNLOADS_FOLDER = 'downloaded_files'
ARCHIVED_DOWNLOADS_FOLDER = 'archived_files' | class Files:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 3 | 3 | 2 | 4 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,910 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.HighCharts | class HighCharts:
VER = '10.3.3'
HC_CSS = 'https://code.highcharts.com/%s/css/highcharts.css' % VER
HC_JS = 'https://code.highcharts.com/%s/highcharts.js' % VER
EXPORTING_JS = 'https://code.highcharts.com/%s/modules/exporting.js' % VER
EXPORT_DATA_JS = 'https://code.highcharts.com/%s/modules/export-... | class HighCharts:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 7 | 10 | 0 | 7 | 7 | 6 | 0 | 0 | 0 | 0 |
30,911 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Hopscotch | class Hopscotch:
LIB = 'https://cdn.jsdelivr.net/npm/hopscotch'
VER = '0.3.1'
MIN_CSS = '%s@%s/dist/css/hopscotch.min.css' % (LIB, VER)
MIN_JS = '%s@%s/dist/js/hopscotch.min.js' % (LIB, VER) | class Hopscotch:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
30,912 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.HtmlInspector | class HtmlInspector:
VER = '0.8.2'
MIN_JS = 'https://cdnjs.cloudflare.com/ajax/libs/html-inspector/%s/html-inspector.min.js' % VER | class HtmlInspector:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 3 | 5 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,913 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.IntroJS | class IntroJS:
VER = '5.1.0'
MIN_CSS = 'https://cdn.jsdelivr.net/npm/intro.js@%s/minified/introjs.min.css' % VER
MIN_JS = 'https://cdn.jsdelivr.net/npm/intro.js@%s/intro.min.js' % VER | class IntroJS:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 4 | 6 | 0 | 4 | 4 | 3 | 0 | 0 | 0 | 0 |
30,914 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.JQuery | class JQuery:
VER = '3.7.1'
MIN_JS = 'https://cdn.jsdelivr.net/npm/jquery@%s/dist/jquery.min.js' % VER | class JQuery:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,915 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.JqueryConfirm | class JqueryConfirm:
LIB = 'https://cdn.jsdelivr.net/npm/jquery-confirm'
VER = '3.3.4'
MIN_CSS = '%s@%s/css/jquery-confirm.min.css' % (LIB, VER)
MIN_JS = '%s@%s/js/jquery-confirm.min.js' % (LIB, VER)
DEFAULT_THEME = 'bootstrap'
DEFAULT_COLOR = 'blue'
DEFAULT_WIDTH = '38%' | class JqueryConfirm:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 8 | 7 | 0 | 8 | 8 | 7 | 0 | 0 | 0 | 0 |
30,916 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Logs | class Logs:
LATEST = 'latest_logs'
SAVED = 'archived_logs' | class Logs:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 3 | 3 | 2 | 4 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,917 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Messenger | class Messenger:
LIB = 'https://cdn.jsdelivr.net/npm/messenger-hubspot'
VER = '1.5.0'
THEME = 'messenger-theme'
MIN_CSS = '%s@%s/build/css/messenger.min.css' % (LIB, VER)
MIN_JS = '%s@%s/build/js/messenger.min.js' % (LIB, VER)
THEME_FLAT_JS = '%s@%s/build/js/%s-flat.min.js' % (LIB, VER, THEME)
... | class Messenger:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0 | 14 | 14 | 13 | 0 | 14 | 14 | 13 | 0 | 0 | 0 | 0 |
30,918 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Mobile | class Mobile:
WIDTH = 390
HEIGHT = 715
RATIO = 3
AGENT = 'Mozilla/5.0 (Linux; Android 13; Pixel 7 XL Build/SP2A.220505.006.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/110.0.5028.105 Mobile Safari/537.36' | class Mobile:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 10 | 5 | 9 | 1 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
30,919 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.MultiBrowser | class MultiBrowser:
DRIVER_FIXING_LOCK = Files.DOWNLOADS_FOLDER + '/driver_fixing.lock'
DRIVER_REPAIRED = Files.DOWNLOADS_FOLDER + '/driver_fixed.lock'
CERT_FIXING_LOCK = Files.DOWNLOADS_FOLDER + '/cert_fixing.lock'
DOWNLOAD_FILE_LOCK = Files.DOWNLOADS_FOLDER + '/downloading.lock'
FILE_IO_LOCK = Fil... | class MultiBrowser:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 0 | 0 | 0 |
30,920 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.PageLoadStrategy | class PageLoadStrategy:
NORMAL = 'normal'
EAGER = 'eager'
NONE = 'none' | class PageLoadStrategy:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 0 | 0 | 0 |
30,921 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.PatchPy311 | class PatchPy311:
PATCH = False | class PatchPy311:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 2 | 2 | 1 | 3 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,922 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.PipInstall | class PipInstall:
FINDLOCK = Files.DOWNLOADS_FOLDER + '/pipfinding.lock'
LOCKFILE = Files.DOWNLOADS_FOLDER + '/pipinstall.lock' | class PipInstall:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 3 | 3 | 2 | 4 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,923 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Presentations | class Presentations:
SAVED_FOLDER = 'saved_presentations' | class Presentations:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,924 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.PrettifyJS | class PrettifyJS:
RUN_PRETTIFY_JS = 'https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js' | class PrettifyJS:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,925 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Protocol | class Protocol:
HTTP = 'http'
HTTPS = 'https' | class Protocol:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,926 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.ProxyPy | class ProxyPy:
VER = '2.4.3' | class ProxyPy:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,927 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.PyAutoGUI | class PyAutoGUI:
VER = '0.9.54' | class PyAutoGUI:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,928 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Recordings | class Recordings:
SAVED_FOLDER = 'recordings' | class Recordings:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,929 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Report | from seleniumbase.core import encoded_images
class Report:
def get_favicon():
if not hasattr(encoded_images, 'REPORT_FAVICON'):
encoded_images.REPORT_FAVICON = encoded_images.get_report_favicon()
return encoded_images.REPORT_FAVICON |
class Report:
def get_favicon():
pass | 2 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 0 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 2 | 0 | 1 | 2 |
30,930 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Reveal | class Reveal:
LIB = 'https://cdn.jsdelivr.net/npm/reveal.js'
VER = '3.8.0'
MIN_CSS = '%s@%s/css/reveal.min.css' % (LIB, VER)
SERIF_MIN_CSS = '%s@%s/css/theme/serif.min.css' % (LIB, VER)
WHITE_MIN_CSS = '%s@%s/css/theme/white.min.css' % (LIB, VER)
BLACK_MIN_CSS = '%s@%s/css/theme/black.min.css' %... | class Reveal:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 0 | 16 | 16 | 15 | 0 | 16 | 16 | 15 | 0 | 0 | 0 | 0 |
30,931 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.SavedCookies | class SavedCookies:
STORAGE_FOLDER = 'saved_cookies' | class SavedCookies:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,932 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Scroll | class Scroll:
Y_OFFSET = 182 | class Scroll:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,933 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.SeleniumWire | class SeleniumWire:
VER = '5.1.0'
BLINKER_VER = '1.7.0' | class SeleniumWire:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.67 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 3 | 3 | 2 | 2 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,934 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Shepherd | class Shepherd:
LIB = 'https://cdnjs.cloudflare.com/ajax/libs/shepherd'
VER = '1.8.1'
MIN_JS = '%s/%s/js/shepherd.min.js' % (LIB, VER)
THEME_ARROWS_CSS = '%s/%s/css/shepherd-theme-arrows.css' % (LIB, VER)
THEME_ARR_FIX_CSS = '%s/%s/css/shepherd-theme-arrows-fix.css' % (LIB, VER)
THEME_DEFAULT_CS... | class Shepherd:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 10 | 9 | 0 | 10 | 10 | 9 | 0 | 0 | 0 | 0 |
30,935 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.SideBySide | from seleniumbase.core import encoded_images
class SideBySide:
HTML_FILE = 'side_by_side.html'
def get_favicon():
if not hasattr(encoded_images, 'SIDE_BY_SIDE_PNG'):
encoded_images.SIDE_BY_SIDE_PNG = encoded_images.get_side_by_side_png()
return encoded_images.SIDE_BY_SIDE_PNG |
class SideBySide:
def get_favicon():
pass | 2 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 1 | 8 | 3 | 6 | 0 | 6 | 3 | 4 | 2 | 0 | 1 | 2 |
30,936 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.State | class State:
PASSED = 'Passed'
FAILED = 'Failed'
SKIPPED = 'Skipped'
UNTESTED = 'Untested'
ERROR = 'Error'
BLOCKED = 'Blocked'
DEPRECATED = 'Deprecated' | class State:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 8 | 7 | 0 | 8 | 8 | 7 | 0 | 0 | 0 | 0 |
30,937 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Tether | class Tether:
VER = '1.4.7'
MIN_JS = 'https://cdn.jsdelivr.net/npm/tether@%s/dist/js/tether.min.js' % VER | class Tether:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,938 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.TourColor | class TourColor:
theme_color = '#367be5'
hover_color = '#245ac0' | class TourColor:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1.67 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 3 | 3 | 2 | 5 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,939 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Tours | class Tours:
EXPORTED_TOURS_FOLDER = 'tours_exported' | class Tours:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,940 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.UC | class UC:
RECONNECT_TIME = 2.4
CDP_MODE_OPEN_WAIT = 0.9
EXTRA_WINDOWS_WAIT = 0.3 | class UC:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 3 | 4 | 4 | 3 | 0 | 0 | 0 | 0 |
30,941 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Underscore | class Underscore:
VER = '1.13.6'
MIN_JS = 'https://cdn.jsdelivr.net/npm/underscore@%s/underscore.min.js' % VER | class Underscore:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
30,942 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.ValidBinaries | class ValidBinaries:
valid_chrome_binaries_on_linux = ['google-chrome', 'google-chrome-stable', 'chrome', 'chromium', 'chromium-browser', 'google-chrome-beta', 'google-chrome-dev', 'google-chrome-unstable', 'chrome-headless-shell', 'brave-browser', 'brave-browser-stable', 'brave', 'opera', 'opera-stable', 'chrome.e... | class ValidBinaries:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 48 | 0 | 48 | 7 | 47 | 2 | 7 | 7 | 6 | 0 | 0 | 0 | 0 |
30,943 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.ValidBrowsers | class ValidBrowsers:
valid_browsers = ['chrome', 'edge', 'firefox', 'ie', 'safari', 'remote'] | class ValidBrowsers:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0 | 9 | 2 | 8 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,944 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.ValidEnvs | class ValidEnvs:
valid_envs = ['qa', 'rc', 'staging', 'develop', 'production', 'performance', 'replica', 'fedramp', 'offline', 'online', 'master', 'remote', 'legacy', 'local', 'alpha', 'beta', 'demo', 'gdpr', 'main', 'test', 'gov', 'new', 'old', 'uat'] | class ValidEnvs:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 0 | 27 | 2 | 26 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,945 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Values | class Values:
SSMD = 500 | class Values:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 2 | 2 | 1 | 4 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,946 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.VisualBaseline | class VisualBaseline:
STORAGE_FOLDER = 'visual_baseline' | class VisualBaseline:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,947 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/constants.py | seleniumbase.fixtures.constants.Warnings | class Warnings:
SCREENSHOT_SKIPPED = 'Skipping screenshot!'
SCREENSHOT_UNDEFINED = 'Unable to get screenshot!'
PAGE_SOURCE_UNDEFINED = 'Unable to get page source!'
INVALID_RUN_COMMAND = 'INVALID RUN COMMAND!' | class Warnings:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
30,948 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/css_to_xpath.py | seleniumbase.fixtures.css_to_xpath.ConvertibleToCssTranslator | from cssselect.xpath import GenericTranslator
class ConvertibleToCssTranslator(GenericTranslator):
"""An implementation of :py:class:`cssselect.GenericTranslator` with
XPath output that more readily converts back to CSS selectors.
The simplified examples in https://devhints.io/xpath were used as a
refe... |
class ConvertibleToCssTranslator(GenericTranslator):
'''An implementation of :py:class:`cssselect.GenericTranslator` with
XPath output that more readily converts back to CSS selectors.
The simplified examples in https://devhints.io/xpath were used as a
reference here.'''
def css_to_xpath(self, css... | 7 | 2 | 5 | 0 | 5 | 0 | 1 | 0.2 | 1 | 1 | 0 | 0 | 6 | 0 | 6 | 6 | 43 | 7 | 30 | 9 | 22 | 6 | 22 | 9 | 14 | 2 | 1 | 1 | 8 |
30,949 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/words.py | seleniumbase.fixtures.words.SD | class SD:
def translate_in(language):
words = {}
words['English'] = 'in'
words['Chinese'] = '在'
words['Dutch'] = 'in'
words['French'] = 'dans'
words['Italian'] = 'nel'
words['Japanese'] = 'に'
words['Korean'] = '에'
words['Portuguese'] = 'no'
... | class SD:
def translate_in(language):
pass
def translate_assert(language):
pass
def translate_assert_text(language):
pass
def translate_assert_exact_text(language):
pass
def translate_assert_link_text(language):
pass
def translate_assert_non_empty_te... | 14 | 0 | 13 | 0 | 13 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 13 | 0 | 13 | 13 | 182 | 12 | 170 | 27 | 156 | 0 | 170 | 27 | 156 | 1 | 0 | 0 | 13 |
30,950 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/fixtures/xpath_to_css.py | seleniumbase.fixtures.xpath_to_css.XpathException | class XpathException(Exception):
pass | class XpathException(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
30,951 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/masterqa/master_qa.py | seleniumbase.masterqa.master_qa.MasterQA | import time
from seleniumbase.fixtures import js_utils
import shutil
import sys
from seleniumbase import BaseCase
from selenium.common.exceptions import NoAlertPresentException
from seleniumbase.core.style_sheet import get_report_style
import os
from seleniumbase.config import settings
from selenium.common.exceptions i... |
class MasterQA(BaseCase):
def setUp(self):
pass
def verify(self, *args):
pass
def auto_close_results(self):
'''If this method is called, the results page will automatically close
at the end of the test run, rather than waiting on the user to close
the results page... | 16 | 1 | 32 | 1 | 29 | 2 | 5 | 0.06 | 1 | 6 | 0 | 0 | 15 | 15 | 15 | 643 | 490 | 34 | 442 | 99 | 424 | 26 | 266 | 97 | 250 | 18 | 3 | 3 | 69 |
30,952 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/plugins/base_plugin.py | seleniumbase.plugins.base_plugin.Base | import sys
from seleniumbase.fixtures import constants
from nose.plugins import Plugin
from seleniumbase.core import report_helper
import ast
import time
from contextlib import suppress
from seleniumbase.config import settings
from seleniumbase.core import download_helper
from seleniumbase.core import log_helper
from s... | null | 10 | 3 | 36 | 0 | 35 | 1 | 4 | 0.09 | 1 | 11 | 5 | 0 | 9 | 10 | 9 | 9 | 352 | 11 | 317 | 34 | 304 | 30 | 140 | 34 | 127 | 9 | 1 | 4 | 35 |
30,953 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/plugins/db_reporting_plugin.py | seleniumbase.plugins.db_reporting_plugin.DBReporting | import uuid
from nose.plugins import Plugin
import time
from seleniumbase.fixtures import constants
class DBReporting(Plugin):
"""This plugin records test results in the Testcase Database."""
name = 'db_reporting'
def __init__(self):
Plugin.__init__(self)
self.execution_guid = str(uuid.uui... | null | 13 | 8 | 13 | 0 | 12 | 1 | 2 | 0.1 | 1 | 13 | 9 | 0 | 12 | 7 | 12 | 12 | 174 | 17 | 144 | 35 | 123 | 14 | 97 | 35 | 76 | 5 | 1 | 3 | 21 |
30,954 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/plugins/driver_manager.py | seleniumbase.plugins.driver_manager.DriverContext | import sys
class DriverContext:
def __init__(self, *args, **kwargs):
self.driver = Driver(*args, **kwargs)
def __enter__(self):
return self.driver
def __exit__(self, exc_type, exc_val, exc_tb):
try:
if hasattr(self, 'driver') and hasattr(self.driver, 'quit') and ('win... |
class DriverContext:
def __init__(self, *args, **kwargs):
pass
def __enter__(self):
pass
def __exit__(self, exc_type, exc_val, exc_tb):
pass | 4 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 3 | 1 | 3 | 3 | 21 | 2 | 19 | 5 | 15 | 0 | 12 | 5 | 8 | 3 | 0 | 2 | 5 |
30,955 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/plugins/page_source.py | seleniumbase.plugins.page_source.PageSource | import os
from nose.plugins import Plugin
import codecs
from seleniumbase.core import log_helper
from seleniumbase.config import settings
class PageSource(Plugin):
"""Capture the page source after a test fails."""
name = 'page_source'
logfile_name = settings.PAGE_SOURCE_NAME
def options(self, parser, ... |
class PageSource(Plugin):
'''Capture the page source after a test fails.'''
def options(self, parser, env):
pass
def configure(self, options, conf):
pass
def addError(self, test, err, capt=None):
pass
def addFailure(self, test, err, capt=None, tbinfo=None):
pass | 5 | 1 | 9 | 0 | 9 | 0 | 2 | 0.05 | 1 | 2 | 0 | 0 | 4 | 0 | 4 | 4 | 45 | 4 | 40 | 17 | 35 | 2 | 36 | 17 | 31 | 3 | 1 | 1 | 9 |
30,956 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/plugins/s3_logging_plugin.py | seleniumbase.plugins.s3_logging_plugin.S3Logging | import os
import uuid
from nose.plugins import Plugin
class S3Logging(Plugin):
"""The plugin for uploading test logs to the S3 bucket specified."""
name = 's3_logging'
def configure(self, options, conf):
"""Get the options."""
super().configure(options, conf)
self.options = options... |
class S3Logging(Plugin):
'''The plugin for uploading test logs to the S3 bucket specified.'''
def configure(self, options, conf):
'''Get the options.'''
pass
def save_data_to_logs(self, data, file_name):
pass
def afterTest(self, test):
'''Upload logs to the S3 bucket ... | 4 | 3 | 16 | 1 | 13 | 1 | 2 | 0.14 | 1 | 5 | 3 | 0 | 3 | 3 | 3 | 3 | 54 | 7 | 42 | 24 | 32 | 6 | 33 | 21 | 26 | 3 | 1 | 1 | 5 |
30,957 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/plugins/screen_shots.py | seleniumbase.plugins.screen_shots.ScreenShots | from seleniumbase.config import settings
from nose.plugins import Plugin
import os
class ScreenShots(Plugin):
"""This plugin takes a screenshot when a test fails."""
name = 'screen_shots'
logfile_name = settings.SCREENSHOT_NAME
def options(self, parser, env):
super().options(parser, env=env)
... |
class ScreenShots(Plugin):
'''This plugin takes a screenshot when a test fails.'''
def options(self, parser, env):
pass
def configure(self, options, conf):
pass
def add_screenshot(self, test, err, capt=None, tbinfo=None):
pass
def addError(self, test, err, capt=None):
... | 6 | 1 | 3 | 0 | 3 | 0 | 1 | 0.05 | 1 | 1 | 0 | 0 | 5 | 0 | 5 | 5 | 26 | 5 | 20 | 10 | 14 | 1 | 20 | 10 | 14 | 2 | 1 | 1 | 7 |
30,958 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/plugins/selenium_plugin.py | seleniumbase.plugins.selenium_plugin.SeleniumBrowser | import sys
from seleniumbase.core import proxy_helper
from seleniumbase.config import settings
from nose.plugins import Plugin
from seleniumbase import config as sb_config
from contextlib import suppress
from seleniumbase.fixtures import shared_utils
from seleniumbase.fixtures import constants
class SeleniumBrowser(Pl... |
class SeleniumBrowser(Plugin):
'''This plugin adds the following command-line options to pynose:
--browser=BROWSER (The web browser to use. Default: "chrome".)
--chrome (Shortcut for "--browser=chrome". Default.)
--edge (Shortcut for "--browser=edge".)
--firefox (Shortcut for "--browser=firefox... | 6 | 2 | 264 | 0 | 262 | 5 | 11 | 0.08 | 1 | 10 | 4 | 0 | 5 | 4 | 5 | 5 | 1,413 | 6 | 1,314 | 25 | 1,307 | 110 | 408 | 25 | 401 | 46 | 1 | 2 | 56 |
30,959 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/dutch.py | seleniumbase.translate.dutch.MasterQA_Nederlands | from seleniumbase import MasterQA
class MasterQA_Nederlands(MasterQA, Testgeval):
def controleren(self, *args, **kwargs):
self.DEFAULT_VALIDATION_TITLE = 'Handmatige controle'
self.DEFAULT_VALIDATION_MESSAGE = 'Ziet de pagina er goed uit?'
return self.verify(*args, **kwargs) |
class MasterQA_Nederlands(MasterQA, Testgeval):
def controleren(self, *args, **kwargs):
pass | 2 | 0 | 7 | 0 | 4 | 3 | 1 | 0.6 | 2 | 0 | 0 | 0 | 1 | 2 | 1 | 790 | 8 | 0 | 5 | 4 | 3 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,960 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/dutch.py | seleniumbase.translate.dutch.Testgeval | from seleniumbase import BaseCase
class Testgeval(BaseCase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._language = 'Dutch'
def openen(self, *args, **kwargs):
return self.open(*args, **kwargs)
def url_openen(self, *args, **kwargs):
return ... |
class Testgeval(BaseCase):
def __init__(self, *args, **kwargs):
pass
def openen(self, *args, **kwargs):
pass
def url_openen(self, *args, **kwargs):
pass
def klik(self, *args, **kwargs):
pass
def dubbelklik(self, *args, **kwargs):
pass
def contextkli... | 162 | 0 | 3 | 0 | 2 | 1 | 1 | 0.53 | 1 | 1 | 0 | 2 | 161 | 1 | 161 | 789 | 656 | 160 | 324 | 163 | 162 | 172 | 324 | 163 | 162 | 1 | 3 | 0 | 161 |
30,961 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/italian.py | seleniumbase.translate.italian.MasterQA_Italiano | from seleniumbase import MasterQA
class MasterQA_Italiano(MasterQA, CasoDiProva):
def verificare(self, *args, **kwargs):
self.DEFAULT_VALIDATION_TITLE = 'Controllo manuale'
self.DEFAULT_VALIDATION_MESSAGE = "La pagina ha un bell'aspetto?"
return self.verify(*args, **kwargs) |
class MasterQA_Italiano(MasterQA, CasoDiProva):
def verificare(self, *args, **kwargs):
pass | 2 | 0 | 7 | 0 | 4 | 3 | 1 | 0.6 | 2 | 0 | 0 | 0 | 1 | 2 | 1 | 790 | 8 | 0 | 5 | 4 | 3 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,962 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/master_dict.py | seleniumbase.translate.master_dict.MD | class MD:
md = {}
num_langs = len(MD_L_Codes.lang)
md['open'] = ['*'] * num_langs
md['open'][0] = 'open'
md['open'][1] = '开启'
md['open'][2] = 'openen'
md['open'][3] = 'ouvrir'
md['open'][4] = 'apri'
md['open'][5] = 'を開く'
md['open'][6] = '열기'
md['open'][7] = 'abrir'
md['op... | class MD:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,300 | 190 | 2,078 | 10 | 2,077 | 32 | 2,078 | 10 | 2,077 | 0 | 0 | 0 | 0 |
30,963 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/master_dict.py | seleniumbase.translate.master_dict.MD_F | class MD_F:
def get_languages_list():
languages = []
languages.append('English')
languages.append('Chinese')
languages.append('Dutch')
languages.append('French')
languages.append('Italian')
languages.append('Japanese')
languages.append('Korean')
... | class MD_F:
def get_languages_list():
pass
def get_parent_classes_list():
pass
def get_masterqa_parent_classes_list():
pass
def get_parent_class_lang(parent_class):
pass
def get_mqa_par_class_lang(parent_class):
pass
def get_lang_parent_class(languag... | 12 | 0 | 20 | 0 | 19 | 0 | 2 | 0.02 | 0 | 1 | 0 | 0 | 11 | 0 | 11 | 11 | 231 | 11 | 215 | 23 | 203 | 5 | 158 | 23 | 146 | 2 | 0 | 1 | 18 |
30,964 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/master_dict.py | seleniumbase.translate.master_dict.MD_L_Codes | class MD_L_Codes:
lang = {}
lang['English'] = 0
lang['Chinese'] = 1
lang['Dutch'] = 2
lang['French'] = 3
lang['Italian'] = 4
lang['Japanese'] = 5
lang['Korean'] = 6
lang['Portuguese'] = 7
lang['Russian'] = 8
lang['Spanish'] = 9 | class MD_L_Codes:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0 | 12 | 2 | 11 | 1 | 12 | 2 | 11 | 0 | 0 | 0 | 0 |
30,965 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/portuguese.py | seleniumbase.translate.portuguese.MasterQA_Português | from seleniumbase import MasterQA
class MasterQA_Português(MasterQA, CasoDeTeste):
def verificar(self, *args, **kwargs):
self.DEFAULT_VALIDATION_TITLE = 'Verificação manual'
self.DEFAULT_VALIDATION_MESSAGE = 'A página parece boa?'
return self.verify(*args, **kwargs) |
class MasterQA_Português(MasterQA, CasoDeTeste):
def verificar(self, *args, **kwargs):
pass | 2 | 0 | 7 | 0 | 4 | 3 | 1 | 0.6 | 2 | 0 | 0 | 0 | 1 | 2 | 1 | 790 | 8 | 0 | 5 | 4 | 3 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,966 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/translate/spanish.py | seleniumbase.translate.spanish.MasterQA_Español | from seleniumbase import MasterQA
class MasterQA_Español(MasterQA, CasoDePrueba):
def verificar(self, *args, **kwargs):
self.DEFAULT_VALIDATION_TITLE = 'Comprobación manual'
self.DEFAULT_VALIDATION_MESSAGE = '¿Se ve bien la página?'
return self.verify(*args, **kwargs) |
class MasterQA_Español(MasterQA, CasoDePrueba):
def verificar(self, *args, **kwargs):
pass | 2 | 0 | 7 | 0 | 4 | 3 | 1 | 0.6 | 2 | 0 | 0 | 0 | 1 | 2 | 1 | 790 | 8 | 0 | 5 | 4 | 3 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,967 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/__init__.py | seleniumbase.undetected.Chrome | from .reactor import Reactor
from .options import ChromeOptions
import requests
import logging
import os
import sys
import selenium.webdriver.remote.command
import subprocess
import time
from contextlib import suppress
from .webelement import WebElement
import selenium.webdriver.chrome.service
import selenium.webdriver... |
class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
'''Controls chromedriver to drive a browser.
The driver gets downloaded automatically.'''
def __init__(self, options=None, user_data_dir=None, driver_executable_path=None, browser_executable_path=None, port=0, enable_cdp_events=False, log_level=... | 23 | 6 | 24 | 1 | 20 | 3 | 4 | 0.15 | 1 | 24 | 8 | 0 | 21 | 10 | 21 | 21 | 543 | 37 | 442 | 91 | 393 | 67 | 301 | 71 | 269 | 35 | 1 | 4 | 90 |
30,968 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp.py | seleniumbase.undetected.cdp.CDP | import json
import fasteners
from seleniumbase.fixtures import constants
import logging
from seleniumbase.fixtures import shared_utils
import requests
class CDP:
log = logging.getLogger('CDP')
endpoints = CDPObject({'json': '/json', 'protocol': '/json/protocol', 'list': '/json/list', 'new': '/json/new?{url}', ... |
class CDP:
def __init__(self, options):
pass
def tab_activate(self, id=None):
pass
def tab_list(self):
pass
def tab_new(self, url):
pass
def tab_close_last_opened(self):
pass
async def send(self, method, params):
pass
def get(self, uri)... | 11 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 0 | 4 | 2 | 0 | 9 | 7 | 9 | 9 | 95 | 12 | 83 | 33 | 68 | 0 | 65 | 31 | 51 | 3 | 0 | 2 | 14 |
30,969 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp.py | seleniumbase.undetected.cdp.CDPObject | class CDPObject(dict):
def __init__(self, *a, **k):
super().__init__(*a, **k)
self.__dict__ = self
for k in self.__dict__:
if isinstance(self.__dict__[k], dict):
self.__dict__[k] = CDPObject(self.__dict__[k])
elif isinstance(self.__dict__[k], list):
... | class CDPObject(dict):
def __init__(self, *a, **k):
pass
def __repr__(self):
pass | 3 | 0 | 8 | 0 | 8 | 0 | 4 | 0 | 1 | 3 | 0 | 1 | 2 | 1 | 2 | 29 | 17 | 1 | 16 | 6 | 13 | 0 | 13 | 6 | 10 | 6 | 2 | 4 | 7 |
30,970 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp.py | seleniumbase.undetected.cdp.PageElement | class PageElement(CDPObject):
pass | class PageElement(CDPObject):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
30,971 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/_contradict.py | seleniumbase.undetected.cdp_driver._contradict.ContraDict | class ContraDict(dict):
"""
Directly inherited from dict.
Accessible by attribute. o.x == o['x']
This works also for all corner cases.
Native json.dumps and json.loads work with it.
Names like "keys", "update", "values" etc won't overwrite the methods,
but will just be available using dict ... | class ContraDict(dict):
'''
Directly inherited from dict.
Accessible by attribute. o.x == o['x']
This works also for all corner cases.
Native json.dumps and json.loads work with it.
Names like "keys", "update", "values" etc won't overwrite the methods,
but will just be available using dict l... | 5 | 1 | 5 | 0 | 4 | 0 | 2 | 0.74 | 1 | 1 | 0 | 0 | 4 | 0 | 4 | 31 | 40 | 7 | 19 | 8 | 14 | 14 | 19 | 8 | 14 | 3 | 2 | 1 | 7 |
30,972 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/browser.py | seleniumbase.undetected.cdp_driver.browser.Browser | import pathlib
from typing import List, Optional, Set, Tuple, Union
from . import cdp_util as util
import warnings
from ._contradict import ContraDict
from collections import defaultdict
import mycdp as cdp
import asyncio
import os
from .connection import Connection
from . import tab
import time
from seleniumbase impor... |
class Browser:
'''
The Browser object is the "root" of the hierarchy
and contains a reference to the browser parent process.
There should usually be only 1 instance of this.
All opened tabs, extra browser screens,
and resources will not cause a new Browser process,
but rather create additio... | 33 | 12 | 22 | 0 | 19 | 3 | 3 | 0.21 | 0 | 24 | 6 | 0 | 22 | 6 | 23 | 23 | 572 | 24 | 458 | 110 | 396 | 98 | 271 | 77 | 242 | 15 | 0 | 5 | 79 |
30,973 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/browser.py | seleniumbase.undetected.cdp_driver.browser.CookieJar | from .config import PathLike, Config, is_posix
import pathlib
from typing import List, Optional, Set, Tuple, Union
import re
import mycdp as cdp
import pickle
class CookieJar:
def __init__(self, browser: Browser):
self._browser = browser
async def get_all(self, requests_cookie_format: bool=False) -> ... |
class CookieJar:
def __init__(self, browser: Browser):
pass
async def get_all(self, requests_cookie_format: bool=False) -> List[Union[cdp.network.Cookie, 'http.cookiejar.Cookie']]:
'''
Get all cookies.
:param requests_cookie_format: when True,
returns python http.cook... | 7 | 5 | 25 | 0 | 17 | 8 | 4 | 0.49 | 0 | 4 | 1 | 0 | 6 | 1 | 6 | 6 | 156 | 6 | 101 | 33 | 91 | 49 | 79 | 31 | 71 | 5 | 0 | 2 | 22 |
30,974 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/browser.py | seleniumbase.undetected.cdp_driver.browser.HTTPApi | from typing import List, Optional, Set, Tuple, Union
import asyncio
import urllib.parse
import json
import urllib.request
class HTTPApi:
def __init__(self, addr: Tuple[str, int]):
self.host, self.port = addr
self.api = 'http://%s:%d' % (self.host, self.port)
@classmethod
def from_target(c... |
class HTTPApi:
def __init__(self, addr: Tuple[str, int]):
pass
@classmethod
def from_target(cls, target):
pass
async def get(self, endpoint: str):
pass
async def post(self, endpoint, data):
pass
async def _request(self, endpoint, method: str='GET', data: dict... | 7 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 0 | 5 | 0 | 0 | 4 | 3 | 5 | 5 | 35 | 5 | 30 | 14 | 23 | 0 | 25 | 13 | 19 | 5 | 0 | 1 | 9 |
30,975 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/config.py | seleniumbase.undetected.cdp_driver.config.Config | import secrets
import zipfile
import tempfile
import pathlib
from typing import Union, List, Optional
from seleniumbase.config import settings
class Config:
"""Config object"""
def __init__(self, user_data_dir: Optional[PathLike]=AUTO, headless: Optional[bool]=False, incognito: Optional[bool]=False, guest: Op... |
class Config:
'''Config object'''
def __init__(self, user_data_dir: Optional[PathLike]=AUTO, headless: Optional[bool]=False, incognito: Optional[bool]=False, guest: Optional[bool]=False, browser_executable_path: Optional[PathLike]=AUTO, browser_args: Optional[List[str]]=AUTO, sandbox: Optional[bool]=True, lan... | 14 | 3 | 23 | 0 | 18 | 5 | 3 | 0.25 | 0 | 10 | 0 | 0 | 9 | 15 | 9 | 9 | 219 | 10 | 167 | 54 | 139 | 42 | 92 | 35 | 82 | 9 | 0 | 2 | 31 |
30,976 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py | seleniumbase.undetected.cdp_driver.connection.CantTouchThis | class CantTouchThis(type):
def __setattr__(cls, attr, value):
""":meta private:"""
if attr == '__annotations__':
return super().__setattr__(attr, value)
raise SettingClassVarNotAllowedException('\n'.join(("don't set '%s' on the %s class directly, as those are shared with other o... | class CantTouchThis(type):
def __setattr__(cls, attr, value):
''':meta private:'''
pass | 2 | 1 | 15 | 0 | 13 | 2 | 2 | 0.14 | 1 | 2 | 1 | 1 | 1 | 0 | 1 | 14 | 16 | 0 | 14 | 2 | 12 | 2 | 5 | 2 | 3 | 2 | 2 | 1 | 2 |
30,977 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py | seleniumbase.undetected.cdp_driver.connection.Connection | import asyncio
import websockets
import collections
from typing import Optional, Generator, Union, Awaitable, Callable, Any, TypeVar
from websockets.protocol import State
import inspect
from . import cdp_util as util
import itertools
import mycdp as cdp
import types
class Connection(metaclass=CantTouchThis):
attac... | null | 31 | 15 | 14 | 0 | 11 | 4 | 3 | 0.33 | 1 | 16 | 3 | 1 | 21 | 10 | 21 | 35 | 326 | 21 | 231 | 66 | 192 | 76 | 186 | 46 | 164 | 11 | 3 | 4 | 66 |
30,978 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py | seleniumbase.undetected.cdp_driver.connection.EventTransaction | class EventTransaction(Transaction):
event = None
value = None
def __init__(self, event_object):
try:
super().__init__(None)
except BaseException:
pass
self.set_result(event_object)
self.event = self.value = self.result()
def __repr__(self):
... | class EventTransaction(Transaction):
def __init__(self, event_object):
pass
def __repr__(self):
pass | 3 | 0 | 9 | 0 | 9 | 1 | 2 | 0.05 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 7 | 23 | 2 | 21 | 9 | 18 | 1 | 16 | 9 | 13 | 2 | 2 | 1 | 4 |
30,979 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py | seleniumbase.undetected.cdp_driver.connection.Listener | import sys
import json
from typing import Optional, Generator, Union, Awaitable, Callable, Any, TypeVar
import collections
import asyncio
import itertools
import mycdp as cdp
from asyncio import iscoroutine, iscoroutinefunction
class Listener:
def __init__(self, connection: Connection):
self.connection = ... |
class Listener:
def __init__(self, connection: Connection):
pass
def run(self):
pass
@property
def time_before_considered_idle(self):
pass
@time_before_considered_idle.setter
def time_before_considered_idle(self):
pass
async def cancel(self):
pass
... | 12 | 0 | 15 | 0 | 15 | 1 | 4 | 0.06 | 0 | 10 | 2 | 0 | 8 | 6 | 8 | 8 | 134 | 7 | 122 | 31 | 110 | 7 | 94 | 27 | 85 | 21 | 0 | 7 | 33 |
30,980 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py | seleniumbase.undetected.cdp_driver.connection.ProtocolException | class ProtocolException(Exception):
def __init__(self, *args, **kwargs):
self.message = None
self.code = None
self.args = args
if isinstance(args[0], dict):
self.message = args[0].get('message', None)
self.code = args[0].get('code', None)
elif hasattr... | class ProtocolException(Exception):
def __init__(self, *args, **kwargs):
pass
def serialize(obj, _d=0):
pass
def __str__(self):
pass | 4 | 0 | 10 | 0 | 10 | 1 | 3 | 0.09 | 1 | 2 | 0 | 0 | 2 | 3 | 2 | 12 | 24 | 1 | 23 | 10 | 19 | 2 | 20 | 10 | 16 | 3 | 3 | 2 | 8 |
30,981 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py | seleniumbase.undetected.cdp_driver.connection.SettingClassVarNotAllowedException | class SettingClassVarNotAllowedException(PermissionError):
pass | class SettingClassVarNotAllowedException(PermissionError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
30,982 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py | seleniumbase.undetected.cdp_driver.connection.Transaction | import asyncio
import json
from typing import Optional, Generator, Union, Awaitable, Callable, Any, TypeVar
class Transaction(asyncio.Future):
__cdp_obj__: Generator = None
method: str = None
params: dict = None
id: int = None
def __init__(self, cdp_obj: Generator):
"""
:param cdp_... |
class Transaction(asyncio.Future):
def __init__(self, cdp_obj: Generator):
'''
:param cdp_obj:
'''
pass
@property
def message(self):
pass
@property
def has_exception(self):
pass
def __call__(self, **response: dict):
'''
Parses th... | 8 | 2 | 10 | 0 | 8 | 2 | 2 | 0.2 | 1 | 5 | 1 | 1 | 5 | 1 | 5 | 5 | 64 | 5 | 49 | 16 | 41 | 10 | 37 | 13 | 31 | 3 | 1 | 2 | 12 |
30,983 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/element.py | seleniumbase.undetected.cdp_driver.element.Element | import secrets
import mycdp as cdp
import pathlib
import asyncio
import typing
from ._contradict import ContraDict
from . import cdp_util as util
from .config import PathLike
from contextlib import suppress
class Element:
def __init__(self, node: cdp.dom.Node, tab: Tab, tree: cdp.dom.Node=None):
"""
... |
class Element:
def __init__(self, node: cdp.dom.Node, tab: Tab, tree: cdp.dom.Node=None):
'''
Represents an (HTML) DOM Element
:param node: cdp dom node representation
:type node: cdp.dom.Node
:param tab: the target object to which this element belongs
:type tab: Ta... | 123 | 27 | 12 | 0 | 10 | 2 | 2 | 0.21 | 0 | 23 | 4 | 0 | 79 | 6 | 79 | 79 | 1,068 | 81 | 817 | 224 | 659 | 175 | 431 | 149 | 346 | 12 | 0 | 4 | 165 |
30,984 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/element.py | seleniumbase.undetected.cdp_driver.element.Position | import mycdp as cdp
class Position(cdp.dom.Quad):
"""Helper class for element-positioning."""
def __init__(self, points):
super().__init__(points)
self.left, self.top, self.right, self.top, self.right, self.bottom, self.left, self.bottom = points
self.abs_x: float = 0
self.abs_... |
class Position(cdp.dom.Quad):
'''Helper class for element-positioning.'''
def __init__(self, points):
pass
def to_viewport(self, scale=1):
pass
def __repr__(self):
pass | 4 | 1 | 12 | 0 | 12 | 0 | 1 | 0.03 | 1 | 2 | 0 | 0 | 3 | 11 | 3 | 3 | 42 | 3 | 38 | 14 | 34 | 1 | 14 | 11 | 10 | 1 | 1 | 0 | 3 |
30,985 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/cdp_driver/tab.py | seleniumbase.undetected.cdp_driver.tab.Tab | import mycdp as cdp
from . import cdp_util as util
from . import element
import base64
import urllib.parse
from typing import Dict, List, Union, Optional, Tuple
from . import browser as cdp_browser
from .config import PathLike
from .connection import Connection, ProtocolException
import warnings
import pathlib
import d... |
class Tab(Connection):
'''
:ref:`tab` is the controlling mechanism/connection to a 'target',
for most of us 'target' can be read as 'tab'. However it could also
be an iframe, serviceworker or background script for example,
although there isn't much to control for those.
If you open a new window... | 53 | 41 | 24 | 0 | 17 | 7 | 3 | 0.49 | 1 | 17 | 2 | 0 | 48 | 2 | 48 | 83 | 1,311 | 73 | 836 | 228 | 702 | 413 | 437 | 147 | 382 | 13 | 4 | 5 | 145 |
30,986 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/options.py | seleniumbase.undetected.options.ChromeOptions | import os
import json
from contextlib import suppress
from selenium.webdriver.chromium.options import ChromiumOptions
class ChromeOptions(ChromiumOptions):
_session = None
_user_data_dir = None
@property
def user_data_dir(self):
return self._user_data_dir
@user_data_dir.setter
def use... |
class ChromeOptions(ChromiumOptions):
@property
def user_data_dir(self):
pass
@user_data_dir.setter
def user_data_dir(self):
'''Sets the browser profile folder to use. Creates one if missing.'''
pass
@staticmethod
def _undot_key(key, value):
'''Turn a (dotted ke... | 12 | 3 | 10 | 0 | 9 | 1 | 3 | 0.06 | 1 | 3 | 0 | 0 | 3 | 0 | 6 | 6 | 72 | 6 | 62 | 26 | 50 | 4 | 49 | 20 | 42 | 6 | 1 | 4 | 15 |
30,987 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/patcher.py | seleniumbase.undetected.patcher.Patcher | from contextlib import suppress
import zipfile
import re
import os
import string
import io
from seleniumbase.console_scripts import sb_install
import sys
import time
from seleniumbase.fixtures import shared_utils
import random
class Patcher(object):
from seleniumbase.core import download_helper
url_repo = 'htt... |
class Patcher(object):
def __init__(self, executable_path=None, force=False, version_main=0):
'''Args:
executable_path: None = automatic
A full file path to the chromedriver executable
force: False
Terminate processes which are holding lock
version_main: 0 =... | 21 | 5 | 15 | 0 | 14 | 1 | 3 | 0.09 | 1 | 11 | 0 | 0 | 12 | 6 | 15 | 15 | 299 | 20 | 259 | 62 | 235 | 23 | 198 | 54 | 177 | 12 | 1 | 3 | 52 |
30,988 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/reactor.py | seleniumbase.undetected.reactor.Reactor | import threading
import asyncio
import json
class Reactor(threading.Thread):
def __init__(self, driver):
super().__init__()
self.driver = driver
self.loop = asyncio.new_event_loop()
self.lock = threading.Lock()
self.event = threading.Event()
self.daemon = True
... |
class Reactor(threading.Thread):
def __init__(self, driver):
pass
def add_event_handler(self, method_name, callback):
'''
Parameters
----------
event_name: str
example "Network.responseReceived"
callback: callable
callable which accepts ... | 8 | 1 | 11 | 0 | 10 | 1 | 3 | 0.13 | 1 | 4 | 0 | 0 | 6 | 6 | 6 | 31 | 75 | 7 | 60 | 22 | 52 | 8 | 48 | 19 | 41 | 8 | 1 | 5 | 16 |
30,989 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/seleniumbase/undetected/webelement.py | seleniumbase.undetected.webelement.WebElement | import selenium.webdriver.remote.webelement
from seleniumbase.fixtures import js_utils
import re
class WebElement(selenium.webdriver.remote.webelement.WebElement):
def uc_click(self, driver=None, selector=None, by=None, reconnect_time=None, tag_name=None):
if driver and selector and by:
delaye... |
class WebElement(selenium.webdriver.remote.webelement.WebElement):
def uc_click(self, driver=None, selector=None, by=None, reconnect_time=None, tag_name=None):
pass
def uc_reconnect(self, reconnect_time=None):
pass | 3 | 0 | 16 | 0 | 16 | 0 | 4 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 33 | 1 | 32 | 12 | 22 | 0 | 21 | 5 | 18 | 5 | 1 | 2 | 7 |
30,990 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/examples/tour_examples/shepherd_google_tour.py | shepherd_google_tour.MyTourClass | from seleniumbase import BaseCase
class MyTourClass(BaseCase):
def test_google_tour(self):
if not self.undetectable:
self.get_new_driver(undetectable=True)
self.open('https://google.com/ncr')
self.wait_for_element('[title="Search"]')
self.hide_elements('iframe')
... |
class MyTourClass(BaseCase):
def test_google_tour(self):
pass | 2 | 0 | 88 | 7 | 81 | 11 | 3 | 0.13 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 629 | 89 | 7 | 82 | 2 | 80 | 11 | 43 | 2 | 41 | 3 | 3 | 1 | 3 |
30,991 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/examples/presenter/uc_presentation.py | uc_presentation.UCPresentationClass | import os
from contextlib import suppress
import subprocess
from seleniumbase import SB
from seleniumbase import BaseCase
class UCPresentationClass(BaseCase):
def test_presentation(self):
self.open('data:,')
self._output_file_saves = False
self.create_presentation(theme='beige', transition... |
class UCPresentationClass(BaseCase):
def test_presentation(self):
pass | 2 | 0 | 550 | 11 | 539 | 25 | 3 | 0.05 | 1 | 3 | 0 | 0 | 1 | 1 | 1 | 629 | 551 | 11 | 540 | 5 | 538 | 25 | 114 | 4 | 112 | 3 | 3 | 2 | 3 |
30,992 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/examples/presenter/uc_presentation_3.py | uc_presentation_3.UCPresentationClass | from seleniumbase import BaseCase
from seleniumbase import SB
import sys
from contextlib import suppress
class UCPresentationClass(BaseCase):
def test_presentation_3(self):
self.open('data:,')
self.set_window_position(4, 40)
self._output_file_saves = False
self.open('https://seleni... |
class UCPresentationClass(BaseCase):
def test_presentation_3(self):
pass | 2 | 0 | 774 | 21 | 753 | 12 | 2 | 0.02 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 629 | 775 | 21 | 754 | 8 | 752 | 12 | 175 | 7 | 173 | 2 | 3 | 2 | 2 |
30,993 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/examples/presenter/uc_presentation_4.py | uc_presentation_4.UCPresentationClass | from contextlib import suppress
from seleniumbase import BaseCase
from seleniumbase import SB
class UCPresentationClass(BaseCase):
def test_presentation_4(self):
self.open('data:,')
self.set_window_position(4, 40)
self._output_file_saves = False
self.create_presentation(theme='seri... |
class UCPresentationClass(BaseCase):
def test_presentation_4(self):
pass | 2 | 0 | 1,067 | 33 | 1,030 | 25 | 33 | 0.02 | 1 | 4 | 0 | 0 | 1 | 1 | 1 | 629 | 1,068 | 33 | 1,031 | 41 | 1,029 | 25 | 493 | 40 | 491 | 33 | 3 | 5 | 33 |
30,994 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/examples/presenter/web_scraping_on_gha.py | web_scraping_on_gha.UCPresentationClass | from contextlib import suppress
from seleniumbase import BaseCase
class UCPresentationClass(BaseCase):
def test_hacking_with_cdp(self):
self.open('data:,')
self.set_window_position(4, 40)
self._output_file_saves = False
self.create_presentation(theme='serif', transition='none')
... |
class UCPresentationClass(BaseCase):
def test_hacking_with_cdp(self):
pass | 2 | 0 | 242 | 0 | 242 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 629 | 243 | 0 | 243 | 3 | 241 | 0 | 43 | 3 | 41 | 1 | 3 | 0 | 1 |
30,995 | seleniumbase/SeleniumBase | seleniumbase_SeleniumBase/examples/tour_examples/xkcd_tour.py | xkcd_tour.MyTestClass | from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_create_tour(self):
self.open('https://xkcd.com/1117/')
self.assert_element('img[alt="My Sky"]')
self.create_tour(theme='dark')
self.add_tour_step('Welcome to XKCD!')
self.add_tour_step('This is the XKCD... |
class MyTestClass(BaseCase):
def test_create_tour(self):
pass | 2 | 0 | 16 | 0 | 16 | 3 | 1 | 0.18 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 629 | 17 | 0 | 17 | 2 | 15 | 3 | 17 | 2 | 15 | 1 | 3 | 0 | 1 |
30,996 | encode/starlette | starlette/_utils.py | starlette._utils.AwaitableOrContextManager | from collections.abc import Awaitable, Generator
from typing import Any, Callable, Generic, Protocol, TypeVar, overload
from contextlib import AbstractAsyncContextManager, contextmanager
class AwaitableOrContextManager(Awaitable[T_co], AbstractAsyncContextManager[T_co], Protocol[T_co]):
... |
class AwaitableOrContextManager(Awaitable[T_co], AbstractAsyncContextManager[T_co], Protocol[T_co]):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
30,997 | encode/starlette | starlette/_utils.py | starlette._utils.AwaitableOrContextManagerWrapper | from typing import Any, Callable, Generic, Protocol, TypeVar, overload
from collections.abc import Awaitable, Generator
class AwaitableOrContextManagerWrapper(Generic[SupportsAsyncCloseType]):
__slots__ = ('aw', 'entered')
def __init__(self, aw: Awaitable[SupportsAsyncCloseType]) -> None:
self.aw = aw... |
class AwaitableOrContextManagerWrapper(Generic[SupportsAsyncCloseType]):
def __init__(self, aw: Awaitable[SupportsAsyncCloseType]) -> None:
pass
def __await__(self) -> Generator[Any, None, SupportsAsyncCloseType]:
pass
async def __aenter__(self) -> SupportsAsyncCloseType:
pass
... | 5 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 4 | 2 | 4 | 6 | 16 | 4 | 12 | 8 | 7 | 0 | 12 | 8 | 7 | 1 | 1 | 0 | 4 |
30,998 | encode/starlette | starlette/_utils.py | starlette._utils.SupportsAsyncClose | from typing import Any, Callable, Generic, Protocol, TypeVar, overload
class SupportsAsyncClose(Protocol):
async def close(self) -> None:
... |
class SupportsAsyncClose(Protocol):
async def close(self) -> None:
pass | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0.5 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 25 | 2 | 0 | 2 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
30,999 | encode/starlette | starlette/applications.py | starlette.applications.Starlette | import warnings
from starlette.middleware.exceptions import ExceptionMiddleware
from typing import Any, Callable, TypeVar
from starlette.middleware.base import BaseHTTPMiddleware
from starlette.middleware.errors import ServerErrorMiddleware
from starlette.requests import Request
from starlette.datastructures import Sta... |
class Starlette:
'''Creates an Starlette application.'''
def __init__(self: AppType, debug: bool=False, routes: Sequence[BaseRoute] | None=None, middleware: Sequence[Middleware] | None=None, exception_handlers: Mapping[Any, ExceptionHandler] | None=None, on_startup: Sequence[Callable[[], Any]] | None=None, on... | 23 | 5 | 11 | 1 | 8 | 3 | 1 | 0.46 | 0 | 22 | 11 | 1 | 17 | 6 | 17 | 17 | 223 | 33 | 144 | 76 | 81 | 66 | 74 | 35 | 52 | 4 | 0 | 2 | 28 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.