Comments (14)
i have 3 findElement, so i dont know which i need to fix, because i dont know which is the one which is not visible
from drool.
I would start by looking at the stack
at Object.<anonymous> (/Users/lgubenis/projects/paper/test/index.coffee:7:7)
at Object.<anonymous> (/Users/lgubenis/projects/paper/test/index.coffee:1:1)
what is on line 1, line 7?
from drool.
seems to be the first findElement in this case, the stack does not help much because line 7 is the drool.flow which contains the 3 findElement, line 1 requires drool
from drool.
i commented the other 2 findElement (which kind of depend on the first one) and the error continues, so im trying to fix it now
from drool.
sure ok, so when the element is async you will need to do something like this...
driver.wait(function() {
return driver.findElement(drool.webdriver.By.css('#new-todo')).click()
.then(function() { return true; })
.thenCatch(function() {
return false;
})
}, 5000);
which will wait until the click works
✨ for more reading: tastejs/todomvc#1371 ✨
from drool.
okay, another question.. if i hide the $el of a Marionette ItemView onRender, should the findElement still find it? (its not finding it and im finding out why)
from drool.
it should be able to find it, however it will not be able to interact with it since it is not visible.
from drool.
⚡
from drool.
is there an easy way to access the App scope so i could trigger the request by calling it instead of triggering through a click on the element?
i would like to call App.Document.request('addPage')
from drool.
its because the add button is hidden until you scroll near bottom of the page, i could also live with scrolling down before findElement + click, but i dont know how yet, to scroll with the driver
from drool.
i guess its just another findElement with .scrollTo instead of .click
from drool.
driver.executeScript("console.log('wow');")
from drool.
thx 👍
from drool.
going to close, as this does not seem to be a drool question feel free to join the chat https://gitter.im/samccone/drool
from drool.
Related Issues (20)
- Cannot read property 'executeScript' of undefined HOT 6
- Provide a easy error when a user forgets to include driver in flow
- Expose a way to dump a before and after heap snapshot HOT 1
- Look into exposing how many calls to GC / how much time was spent on GC HOT 1
- Lock selenium due to node 4 and node 0.x issues HOT 1
- Can the selenium-webdriver version be relaxed a bit? HOT 3
- prewarm issue HOT 1
- Dealing with chrome's undo stack
- The latest version of chromedriver is causing some problems for drool HOT 3
- Not terminating all processes?
- Replace webdriver with chrome-launcher HOT 1
- Doesn't work with chromedriver v >= 2.29
- Getting different results with and without beforeAssert HOT 2
- License
- Crashes on examples with "TypeError: Cannot read property 'message' of undefined" HOT 2
- Integration with existing selenium tests
- Strange example HOT 1
- I should be able to catch errors in a single place
- expose controlFlow method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drool.