-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cannot read property 'executeScript' of undefined #10
Comments
drool = require('drool')
assert = require('assert')
driver = drool.start
chromeOptions: 'no-sandbox'
drool.flow
repeatCount: 100
setup: ->
driver.get('http://localhost:3000')
action: ->
# click on add page
# adds page
driver.findElement(
drool.webdriver.By.css('#drool-add-page')
).click()
# click on page
# opens menu for page
driver.findElement(
drool.webdriver.By.css('.page')
).click()
# click on delete
driver.findElement(
drool.webdriver.By.css('.drool-delete-page')
).click()
assert: (after, initial) ->
assert.equal(inital.nodes, after.nodes, 'node count should match')
driver.quit() |
Easy fix 👍 - drool.flow
+ drool.flow({
repeatCount: 100
setup: ->
driver.get('http://localhost:3000')
action: ->
# click on add page
# adds page
driver.findElement(
drool.webdriver.By.css('#drool-add-page')
).click()
# click on page
# opens menu for page
driver.findElement(
drool.webdriver.By.css('.page')
).click()
# click on delete
driver.findElement(
drool.webdriver.By.css('.drool-delete-page')
).click()
asset: (after, initial) ->
assert.equal(inital.nodes, after.nodes, 'node count should match')
+ }, driver) |
whoops, kthxbye 👍 |
no problem @elgubenis 👍 I agree that the error is super confusing ❓ Let me know if you have any other questions |
yeah, i've got more questions, do you want them here or in another issue (i think its unrelated to this issue) |
another issue is fine :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i guess im doing something wrong with the webdriver
The text was updated successfully, but these errors were encountered: