question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pytest-splinter does not work with splinter>=0.18.0

See original GitHub issue

    def patch_webdriverelement():  # pragma: no cover
        """Patch the WebDriverElement to allow firefox to use mouse_over."""
    
        def mouse_over(self):
            """Perform a mouse over the element which works."""
            (
                ActionChains(self.parent.driver)
                .move_to_element_with_offset(self._element, 2, 2)
                .perform()
            )
    
        # Apply the monkey patch for Firefox WebDriverElement
>       firefox.WebDriverElement.mouse_over = mouse_over
E       AttributeError: module 'splinter.driver.webdriver.firefox' has no attribute 'WebDriverElement'

.venv/lib64/python3.10/site-packages/pytest_splinter/splinter_patches.py:21: AttributeError

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mpasternakcommented, Sep 9, 2022

“No… you’re breathtaking!” Thanks!

0reactions
jpiccommented, Sep 9, 2022

Working for me! Thanks! Gratz 4 teh release 🎸

Read more comments on GitHub >

github_iconTop Results From Across the Web

splinter — Splinter 0.18.1 documentation
Documentation for splinter, an open source tool for testing web applications.
Read more >
pytest-splinter
pytest -splinter should use single browser instance per test session. ... 1.8.3. Profile does not work with geckodriver+remote webdriver #90) (pelme) ...
Read more >
splinter - python test framework for web applications
splinter · Easy to learn: The API is designed to be intuitive and quick to pick up. · Faster to code: Automate browser...
Read more >
Unable to create a Browser() instance with Splinter
Solution. Splinter is a wrapper designed on top of selenium and other automation web tools. The reason I got this error was because...
Read more >
splinter 0.7.7 on PyPI
splinter is an open source tool for testing web applications using Python. ... Note: if you don't provide any driver argument to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found