question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

e.g.

// Fill an element 
await browser.fill('#username', 'myUser')

// set an element's `value` value
await browser.setValue('#comment', 'my feelings')

// Type in an element 
await browser.type('#password', 'Yey!ImAPassword!')

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
JoelEinbindercommented, Jun 29, 2017

“type” is done as

page.focus(selector)
page.type(text)

How does fill differ from setValue? Fill would work on contenteditable?

0reactions
aslushnikovcommented, Jan 17, 2018

I’m currently doing something like the following, but somehow it feels hackish…

@alixaxel indeed, a little hackish. Unfortunately, I can’t suggest any nicer approach.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a new form | Forms API - HubSpot API
This endpoint is used to create a new form in a given HubSpot account. Use case for this endpoint: Forms are standard website...
Read more >
Google Forms API | Google Developers
Google Forms API · On this page · Service: forms.googleapis.com. Discovery document; Service endpoint · REST Resource: v1.forms · REST Resource: v1.forms.responses ...
Read more >
Introduction to Form API - Drupal
Use Drupal's Form API to consistently and efficiently produce and process forms in a module.
Read more >
Form APIs - FusionAuth
registration - This form will be used for self service registration. · adminRegistration - This form be used to customize the add and...
Read more >
Typeform's APIs
With our APIs and developer tools, you can do everything from the basics, like tweak your themes and add new images to your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found