Skip to content

Instantly share code, notes, and snippets.

View MarcoCabazal's full-sized avatar
🖖
coding for food

Marco Cabazal MarcoCabazal

🖖
coding for food
View GitHub Profile

Playwright

Suggested patterns

Try observing Codegen patterns to get a sense of how you'll actually need to write your awaits.

Playwright can be finicky about how you wait for things (perhaps why Cypress auto-waits). A good pattern:

const myElement = page.locator(someSelector); // note the lack of `await` here; you don't need the await until you're actually trying to assert or perform an action.
@MarcoCabazal
MarcoCabazal / Capybara.md
Created October 2, 2024 04:58 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@MarcoCabazal
MarcoCabazal / keybase.md
Last active June 4, 2018 15:39
Keybase

Keybase proof

I hereby claim:

  • I am marcocabazal on github.
  • I am mcabazal (https://keybase.io/mcabazal) on keybase.
  • I have a public key ASDfGvasYVUM8Oj0_axFVpzqw16jtycmgaQqPqHP_Sfh_wo

To claim this, I am signing this object: