Skip to content

Looks like ActionChains is not working with iframe in Python #8342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
QA-Rahul opened this issue May 25, 2020 · 1 comment
Closed

Looks like ActionChains is not working with iframe in Python #8342

QA-Rahul opened this issue May 25, 2020 · 1 comment
Labels
A-needs-triaging A Selenium member will evaluate this soon!

Comments

@QA-Rahul
Copy link

🐛 Bug Report

I am trying to move an element from outside of iframe to inside iframe but it seems that never worked.

To Reproduce

This is a website URL where I executed below code: https://grapesjs.com/demo.html

element_source = self._selenium.find_element(By.XPATH,
                                          '//div[@class="gjs-block-label"][contains(.,"Tooltip")]')
    element_target=self._selenium.find_element(By.CLASS_NAME,'gjs-frame')
    actions = ActionChains(self._driver)
    actions.drag_and_drop(element_source, element_target).perform()
    time.sleep(5)

Expected behavior

Expecting that element from the right panel should move to left iframe.

Environment

  • OS: Windows
  • Browser: Chrome
  • Browser version: 81.0.4044.138
@ghost ghost added the A-needs-triaging A Selenium member will evaluate this soon! label May 25, 2020
@AutomatedTester
Copy link
Member

Unfortunately this is by design. You will need to use another mechanism to do this.

The technical reason is we need to keep a map of elements and that is bound by the document and is not shared between documents.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-needs-triaging A Selenium member will evaluate this soon!
Projects
None yet
Development

No branches or pull requests

2 participants