Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

not capturing typing on input or clicks on search buttons #54

Open
mike-duran-mitchell opened this issue Mar 13, 2018 · 1 comment
Open

Comments

@mike-duran-mitchell
Copy link

Able to replicate this issue on both:
System: Ubuntu 16.04, Chrome Version 65.0.3325.146 (Official Build) (64-bit)
System: Windows 10, Version 64.0.3282.186 (Official Build) (64-bit)

Example 1: Google. Navigate to google, click on input, add text, search. Daydream is only returning

const Nightmare = require('nightmare')
const nightmare = Nightmare({ show: true })

nightmare
.goto('https://www.google.com/')
.end()
.then(function (result) {
  console.log(result)
})
.catch(function (error) {
  console.error('Error:', error);
});

and

const puppeteer = require('puppeteer')

(async () => {
  const browser = await puppeteer.launch()
  const page = await browser.newPage()
  await page.goto('https://www.google.com/')
  await browser.close()
})()

Example 2: Github. Navigate to github daydream repository, click on search input for this repository, add text, search. Daydream is only returning:

const Nightmare = require('nightmare')
const nightmare = Nightmare({ show: true })

nightmare
.goto('https://github.com/segmentio/daydream')
.end()
.then(function (result) {
  console.log(result)
})
.catch(function (error) {
  console.error('Error:', error);
});

and

const puppeteer = require('puppeteer')

(async () => {
  const browser = await puppeteer.launch()
  const page = await browser.newPage()
  await page.goto('https://github.com/segmentio/daydream')
  await browser.close()
})()

Tried the same on Wikipedia and Wiktionary with the same results.

@clee231
Copy link

clee231 commented Mar 19, 2018

There is a trick to record input, as noted in the Readme.md file.
https://github.com/segmentio/daydream#notes

If you want daydream to capture typing, press tab after you finish typing in each input element.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants