Skip to content

Puppeteer Support + Refactoring #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 5, 2019
Merged

Conversation

DavertMik
Copy link
Collaborator

This PR adds

  • Puppeteer support
  • refactored to use debug and debugSection methods for helper
  • refactored to use less ifs
  • refactored to rely more on CodeceptJS API instead of WebDriver/Puppeteer API

@DavertMik
Copy link
Collaborator Author

Tested for Puppeteer.
Btw, this repo needs automated tests.

async _createDir (directory) {
mkdirp.sync(getDirName(directory));
if (this.helpers['WebDriver'] || this.helpers['Appium']) {
location = await ele.getLocation();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavertMik could you please change this ele to el because, ele is no longer defined and returns an error, it should be el

Copy link
Member

@puneet0191 puneet0191 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check comment

@puneet0191 puneet0191 merged commit a4ab7fd into codeceptjs:master Jun 5, 2019
@puneet0191 puneet0191 mentioned this pull request Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants