Giter VIP home page Giter VIP logo

Comments (14)

linus-amg avatar linus-amg commented on September 17, 2024

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.

samccone avatar samccone commented on September 17, 2024

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.

linus-amg avatar linus-amg commented on September 17, 2024

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.

linus-amg avatar linus-amg commented on September 17, 2024

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.

samccone avatar samccone commented on September 17, 2024

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.

linus-amg avatar linus-amg commented on September 17, 2024

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.

samccone avatar samccone commented on September 17, 2024

it should be able to find it, however it will not be able to interact with it since it is not visible.

from drool.

linus-amg avatar linus-amg commented on September 17, 2024

from drool.

linus-amg avatar linus-amg commented on September 17, 2024

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.

linus-amg avatar linus-amg commented on September 17, 2024

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.

linus-amg avatar linus-amg commented on September 17, 2024

i guess its just another findElement with .scrollTo instead of .click

from drool.

samccone avatar samccone commented on September 17, 2024
driver.executeScript("console.log('wow');")

from drool.

linus-amg avatar linus-amg commented on September 17, 2024

thx 👍

from drool.

samccone avatar samccone commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.