Git Product home page Git Product logo

Comments (5)

fhoeben avatar fhoeben commented on May 29, 2024

(I assume my fixture throws the same exception when using the same xPath as you do for your own fixture, i.e. Mountain 5 instead of 1)

This seems to be caused by my fixture's JavaScript call to determine whether the requested element already is on screen, or scrolling is required. It appears the getBoundingClientRect() method is not supported on an iPhone (based on a quick Google and http://stackoverflow.com/questions/2792185/what-is-the-equivalent-of-getboundingclientrect-on-iphone-mobile-safari). The question on StackOverflow suggests it does work on an iPad, can you try that?

I have not used my fixture with iOS yet, and would like to be able to do so in the near future. So I really appreciate your feedback on your experiences and hope that we can make it work for you.

Are you running my fixtures from source? I would like to find out whether we can make it work for you if you change the JavaScript call to use the alternate properties suggested in http://help.dottoro.com/ljvmcrrn.php (pointed to by one of the stack overflow answers), i.e. the offsetLeft, offsetTop, offsetWidth and offsetHeight properties. If that does not work we can probably disable the on screen check altogether if the getBoundingClientRect function does not exist.

from hsac-fitnesse-fixtures.

fhoeben avatar fhoeben commented on May 29, 2024

I committed a change that will at least not break the application if getBoundingClientRect() is undefined. Can you try what that does for you?

from hsac-fitnesse-fixtures.

sglebs avatar sglebs commented on May 29, 2024

Ok, I will try that now. I also found this:

http://selenium-python.readthedocs.org/en/latest/api.html#module-selenium.webdriver.remote.webelement

location_once_scrolled_into_view
THIS PROPERTY MAY CHANGE WITHOUT WARNING. Use this to discover where on the screen an element is so that we can click it. This method should cause the element to be scrolled into view.

Returns the top lefthand corner location on the screen, or None if the element is not visible.

from hsac-fitnesse-fixtures.

sglebs avatar sglebs commented on May 29, 2024

Your fix worked! Thanks!

I will try clicking by name now.

from hsac-fitnesse-fixtures.

fhoeben avatar fhoeben commented on May 29, 2024

location_once_scrolled_into_view (or a similarly named method) does not exist in the Java Selenium client (as far as I see).

from hsac-fitnesse-fixtures.

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.