Note that there are some explanatory texts on larger screens.

plurals
  1. POMoveTargetOutOfBoundsException in selenium, python
    primarykey
    data
    text
    <p>I have an Accounts Menu. When we place mouse over it, its sub menu's appear on the screen. The Screenshot is as below.</p> <p><img src="https://i.stack.imgur.com/bf56m.jpg" alt="enter image description here"></p> <p>I want to click on Accounts Summary.My selenium code is as following.</p> <pre><code>def test_accounts(self): self.login(self.driver,properties.userid,properties.password) element_to_hover=self.driver.find_element_by_link_text('Accounts') hover=ActionChains(self.driver).move_to_element(element_to_hover) hover.click().perform() self.driver.implicitly_wait(10) self.driver.find_element_by_link_text('Account Summary').click() </code></pre> <p>I get the following error.</p> <pre><code> test_accounts (__main__.TestCase) ... ERROR ====================================================================== ERROR: test_accounts (__main__.TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\New Workspace\Python Test\src\login.py", line 78, in test_accounts self.driver.find_element_by_link_text('Account Summary').click() File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webelement.py", line 51, in click self._execute(Command.CLICK_ELEMENT) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webelement.py", line 225, in _execute return self._parent.execute(command, params) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 160, in execute self.error_handler.check_response(response) File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 149, in check_response raise exception_class(message, screen, stacktrace) MoveTargetOutOfBoundsException: Message: '' ---------------------------------------------------------------------- Ran 1 test in 24.563s FAILED (errors=1) </code></pre> <p>I tried a lot of links in SO and others but was unable to find a solution for my problem. Since I am a newbie to Selenium, is this the <strong>correct way</strong> to <strong>mouse over</strong> a link and go to its hidden sub elements?</p> <p>I am using python 2.7. Any help would be appreciated</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload