Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cypress-io/cypress
/ functions
Functions
9,434 in github.com/cypress-io/cypress
⨍
Functions
9,434
◇
Types & classes
1,691
↓ 885 callers
Method
then
* Enables you to work with the subject yielded from the previous command. * * @see https://on.cypress.io/then
cli/types/cypress.d.ts:2260
↓ 807 callers
Method
join
(from, ...rest)
packages/driver/src/cypress/location.ts:243
↓ 601 callers
Function
debug
(bool = true, options: any = {})
packages/driver/src/cypress/cookies.ts:16
↓ 596 callers
Function
require
(moduleName)
tooling/v8-snapshot/src/blueprint/custom-require.js:6
↓ 466 callers
Method
log
* Internal options for "cy.log" used in custom commands. * * @see https://on.cypress.io/cypress-log
cli/types/cypress.d.ts:608
↓ 445 callers
Method
push
(response)
packages/server/lib/request.ts:779
↓ 443 callers
Method
contains
* Get the DOM element containing the text. * DOM elements can contain more than the desired text and still match. * Additionally, Cypress pr
cli/types/cypress.d.ts:1249
↓ 440 callers
Method
eq
* Get A DOM element at a specific index in an array of elements. * * @see https://on.cypress.io/eq * @param {Number} index A number ind
cli/types/cypress.d.ts:1391
↓ 413 callers
Method
resolve
(from, to)
packages/driver/src/cypress/location.ts:259
↓ 411 callers
Method
click
* Click a DOM element. * * @see https://on.cypress.io/click * @example * cy.get('button').click() // Click on button
cli/types/cypress.d.ts:1127
↓ 394 callers
Method
get
(fullPath: string)
packages/packherd-require/src/types.ts:115
↓ 366 callers
Method
get
(type: string, ...args: any[])
packages/data-context/src/util/config-file-updater.ts:13
↓ 351 callers
Method
get
(attr: K)
cli/types/cypress.d.ts:6607
↓ 343 callers
Method
stub
* Replace a function, record its usage and control its behavior. * > Note: `.stub()` assumes you are already familiar with our guide: * [Stu
cli/types/cypress.d.ts:2172
↓ 341 callers
Method
visit
* Visit the given url * * @param {string} url The URL to visit. If relative uses `baseUrl` * @param {VisitOptions} [options] Pass in an
cli/types/cypress.d.ts:2516
↓ 334 callers
Method
forEach
(fn: (value: T) => void)
packages/proxy/lib/http/util/prerequests.ts:86
↓ 325 callers
Method
on
(eventName: T, cb: (event: Event<T>[0]) => void)
packages/types/src/protocol.ts:16
↓ 285 callers
Method
find
* Get the descendent DOM elements of a specific selector. * * @see https://on.cypress.io/find * @example * cy.get('.article').f
cli/types/cypress.d.ts:1425
↓ 273 callers
Method
set
(key: K, value: LogConfig[K])
cli/types/cypress.d.ts:6609
↓ 237 callers
Method
mount
* Install all vue plugins and globals then mount
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts:253
↓ 226 callers
Method
wrap
* Yield the element passed into `.wrap()`. * * @see https://on.cypress.io/wrap * @example ``` // wraps DOM element cy.get('
cli/types/cypress.d.ts:2582
↓ 225 callers
Method
state
()
packages/reporter/src/test/test-model.ts:119
↓ 210 callers
Method
stringify
()
packages/driver/src/cypress/command.ts:142
↓ 206 callers
Method
slice
(index: number)
packages/driver/src/util/queue.ts:36
↓ 201 callers
Method
as
* Assign an alias for later use. Reference the alias later within a * [cy.get()](https://on.cypress.io/get) or * [cy.wait()](https://on.cypr
cli/types/cypress.d.ts:932
↓ 180 callers
Method
each
* Iterate through an array like structure (arrays or objects with a length property). * * @see https://on.cypress.io/each
cli/types/cypress.d.ts:1369
↓ 170 callers
Function
defineConfig
(config: any)
cli/lib/cypress.ts:78
↓ 162 callers
Method
spy
* Returns a new spy function. * > Note: `.spy()` assumes you are already familiar with our guide: [Stubs, Spies, and Clocks](https://on.cypress.i
cli/types/cypress.d.ts:2138
↓ 160 callers
Function
setTimeout
()
packages/driver/cypress/e2e/commands/clock.cy.js:326
↓ 152 callers
Method
parse
(cookie: string)
packages/server/lib/util/cookies.ts:78
↓ 145 callers
Method
emit
(event: string | symbol, ...args: any[])
packages/reporter/src/lib/events.ts:24
↓ 145 callers
Method
filter
* Function used to filter the standard set of mocked browsers. Ignored if browsers option is provided. * Ex. * cy.findBrowsers({ * filter:
packages/frontend-shared/cypress/support/e2e.ts:81
↓ 141 callers
Method
config
* Returns all configuration objects. * @see https://on.cypress.io/config * @example ``` Cypress.config() // {defaultCommandTimeo
cli/types/cypress.d.ts:477
↓ 140 callers
Method
apply
* The plugin's entrypoint, called once by webpack when the compiler is initialized.
npm/webpack-dev-server/src/CypressCTWebpackPlugin.ts:125
↓ 140 callers
Method
setup
(config)
packages/app/src/runner/event-manager.ts:413
↓ 134 callers
Method
end
()
packages/network-interception/lib/policies/types.ts:15
↓ 134 callers
Method
send
(command: T, params?: Command<T>['paramsType'][0])
packages/types/src/protocol.ts:15
↓ 127 callers
Method
type
* Type into a DOM element. * * @see https://on.cypress.io/type * @example * cy.get('input').type('Hello, World') * // t
cli/types/cypress.d.ts:2436
↓ 124 callers
Method
fn
(...args: any[])
cli/types/cypress.d.ts:6558
↓ 123 callers
Method
once
(event: string | symbol, listener: (...args: any[]) => void)
cli/types/cypress-eventemitter.d.ts:15
↓ 121 callers
Method
error
(error: Error)
cli/types/cypress.d.ts:6605
↓ 119 callers
Method
defaults
(options: ElementSelectorDefaultsOptions)
packages/driver/src/cypress/element_selector.ts:32
↓ 116 callers
Method
pick
(...args)
packages/driver/src/cypress/log.ts:415
↓ 115 callers
Function
done
(status, nativeStatusText, responses, headers)
packages/driver/cypress/fixtures/jquery-3.2.1.js:9154
↓ 115 callers
Method
window
* Get the window object of the page that is currently active. * * @see https://on.cypress.io/window * @example ``` cy.visit('ht
cli/types/cypress.d.ts:2544
↓ 111 callers
Function
resolve
(uri: string, opts?: GetModuleKeyOpts)
packages/packherd-require/src/require.ts:215
↓ 109 callers
Method
create
()
cli/types/cypress.d.ts:6486
↓ 109 callers
Method
now
* Invoke a command synchronously, without using the command queue. * * @see https://on.cypress.io/api/custom-queries
cli/types/cypress.d.ts:1710
↓ 106 callers
Method
invoke
* Invoke a function on the previously yielded subject. * * @see https://on.cypress.io/invoke
cli/types/cypress.d.ts:1556
↓ 104 callers
Method
exec
* Execute a system command. * @see https://on.cypress.io/exec
cli/types/cypress.d.ts:1397
↓ 102 callers
Method
percySnapshot
* Custom command to take a percy snapshot of the current DOM * @example cy.percySnapshot()
packages/reporter/index.d.ts:16
↓ 101 callers
Method
wait
* Wait for a number of milliseconds. * You almost never need to wait for an arbitrary period of time. * There are always better ways to expr
cli/types/cypress.d.ts:2529
↓ 100 callers
Function
debug
(namespace)
packages/data-context/test/unit/data/ProjectConfigIpc-real-child-process.spec.ts:11
↓ 100 callers
Method
has
(flag: number)
tooling/v8-snapshot/src/generator/snapshot-generator-flags.ts:28
↓ 95 callers
Method
within
* Scopes all subsequent cy commands to within this element. * Useful when working within a particular group of elements such as a `<form>`.
cli/types/cypress.d.ts:2561
↓ 94 callers
Method
add
(origFullPath: string, convertedContent: string)
packages/packherd-require/src/types.ts:117
↓ 94 callers
Method
readFile
* Read a file and yield its contents. * * @see https://on.cypress.io/readfile
cli/types/cypress.d.ts:1907
↓ 93 callers
Method
on
(event: 'rerun', listener: () => void)
packages/server/lib/plugins/preprocessor.ts:19
↓ 93 callers
Function
state
(key: string)
packages/driver/test/unit/cypress/log.spec.ts:93
↓ 89 callers
Method
skip
()
packages/driver/src/cypress/command.ts:29
↓ 88 callers
Method
scaffoldProject
(project: string)
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:98
↓ 88 callers
Method
value
(text: string)
cli/types/cy-chai.d.ts:8
↓ 87 callers
Method
its
* Get a property's value on the previously yielded subject. * * @see https://on.cypress.io/its * @example * // Get the 'width'
cli/types/cypress.d.ts:1592
↓ 84 callers
Function
reject
(err)
packages/driver/src/cy/commands/navigation.ts:385
↓ 84 callers
Method
timeout
(ms: number, message?: string | Error)
packages/ts/typedefs/cypress-request-promise.d.ts:16
↓ 82 callers
Method
update
(props: UpdatableTestProps, cb: UpdateTestCallback)
packages/reporter/src/test/test-model.ts:184
↓ 80 callers
Method
restore
* Restore all overridden native functions. * This is automatically called between tests, so should not generally be needed. * @see https://o
cli/types/cypress.d.ts:6514
↓ 79 callers
Method
callsFake
(func: (...args: any[]) => any)
cli/types/cypress.d.ts:2683
↓ 79 callers
Function
mount
(jsx: React.ReactNode, options: MountOptions = {}, rerenderKey?: string)
npm/react/src/mount.ts:47
↓ 78 callers
Function
stripIndent
(strings: TemplateStringsArray, ...args: any[])
packages/errors/src/stripIndent.ts:1
↓ 77 callers
Method
first
* Get the first DOM element within a set of DOM elements. * * @see https://on.cypress.io/first
cli/types/cypress.d.ts:1441
↓ 76 callers
Method
remove
()
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:101
↓ 74 callers
Method
writeFile
* Write to a file with the specified contents. * * @see https://on.cypress.io/writefile ``` cy.writeFile('path/to/message.txt', 'Hel
cli/types/cypress.d.ts:2617
↓ 72 callers
Method
filter
* Get the DOM elements that match a specific selector. Opposite of `.not()` * * @see https://on.cypress.io/filter
cli/types/cypress.d.ts:1404
↓ 70 callers
Method
viewport
* Control the size and orientation of the screen for your application. * * @see https://on.cypress.io/viewport * @example * //
cli/types/cypress.d.ts:2490
↓ 68 callers
Method
add
* Add a custom command * @see https://on.cypress.io/api/commands
cli/types/cypress.d.ts:809
↓ 68 callers
Method
mountFragment
* Mount helper for a component with a GraphQL fragment
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts:257
↓ 68 callers
Method
projectPath
(name)
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:103
↓ 68 callers
Method
withArgs
* Creates a spy / stub but only for calls with given arguments. * @see https://on.cypress.io/stubs-spies-and-clocks * @see https://on.cypres
cli/types/cypress.d.ts:2681
↓ 65 callers
Method
action
(eventName, ...args)
packages/driver/src/cypress.ts:503
↓ 65 callers
Method
origin
* Enables running Cypress commands in a secondary origin. * @see https://on.cypress.io/origin * @example * cy.origin('example.com',
cli/types/cypress.d.ts:1738
↓ 64 callers
Method
reset
(options?: { resetBetweenSpecs?: boolean })
packages/network-interception/lib/runtime.ts:10
↓ 63 callers
Method
assign
(...obj: any[])
packages/ts/index.d.ts:73
↓ 63 callers
Method
entries
()
packages/server/lib/browsers/cdp-command-queue.ts:21
↓ 62 callers
Method
isBrowser
* Returns true if currently running the supplied browser name or matcher object. Also accepts an array of matchers. * @example isBrowser('chrome'
cli/types/cypress.d.ts:601
↓ 62 callers
Method
length
()
packages/driver/src/util/queue.ts:102
↓ 62 callers
Method
use
(middlewares: AutomationMiddleware)
packages/server/lib/automation/automation.ts:191
↓ 61 callers
Method
$$
* jQuery library bound to the AUT * * @see https://on.cypress.io/$ * @example * cy.$$('p')
cli/types/cypress.d.ts:2651
↓ 60 callers
Method
clear
* Clear the value of an `input` or `textarea`. * An alias for `.type({selectall}{del})` * * @see https://on.cypress.io/clear
cli/types/cypress.d.ts:981
↓ 59 callers
Function
before
()
system-tests/projects/e2e/cypress/e2e/cy_origin_error.cy.ts:26
↓ 59 callers
Method
stringify
(val: any)
packages/server/lib/cloud/protocol.ts:576
↓ 58 callers
Method
next
* Get the immediately following sibling of each DOM element within a set of DOM elements. * * @see https://on.cypress.io/next
cli/types/cypress.d.ts:1642
↓ 56 callers
Function
assert
(...args)
packages/driver/src/cy/assertions.ts:486
↓ 56 callers
Method
open
* Opens Cypress GUI. Resolves with void when the * GUI is closed. * @see https://on.cypress.io/module-api#cypress-open
cli/types/cypress-npm-api.d.ts:379
↓ 56 callers
Method
remove
()
packages/data-context/src/actions/AppActions.ts:12
↓ 55 callers
Function
after
($body: JQuery<HTMLBodyElement>)
packages/driver/src/cy/commands/screenshot.ts:406
↓ 55 callers
Method
debug
* Set a debugger and log what the previous command yields. * * @see https://on.cypress.io/debug
cli/types/cypress.d.ts:1344
↓ 55 callers
Method
emit
(event: 'rerun')
packages/server/lib/plugins/preprocessor.ts:21
↓ 55 callers
Method
intercept
* Use `cy.intercept()` to stub and intercept HTTP requests and responses. * * @see https://on.cypress.io/intercept * @example
packages/network-interception/lib/types/external-types.ts:513
↓ 55 callers
Method
off
(eventName: string, cb: (event: any) => void)
packages/types/src/protocol.ts:17
next →
1–100 of 9,434, ranked by callers