-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Firefox 53 - Selenium 3.4.3 - ActionChains not working #778
Comments
WebDriver is not meant to allow interaction with the browser chrome or the surrounding system widgets (OS), so I would say this is entirely expected behaviour. By pressing F12 like you do, I would expect there to be a |
Why are you talking about chrome? And with Firefox 46 for example, it worked exactly like that to open the Firefox inspector. How I am able to open the inspector then? |
Sorry, the “browser chrome” is the technical term for the UI of a browser. Firefox 46 was presumably using FirefoxDriver, which was supported by and implemented by the Selenium project. geckodriver is maintained by Mozilla, and is fundamentally different in architecture. You should not be able to open devtools via geckodriver unless you switch to what’s called ‘chrome context’, but I don’t really know off-hand how to open it from chrome-privileged JS. |
To be able to send commands to the chrome scope of Firefox the context has to be switched first. If Python is used as binding you can get some ideas from Foxpuppet: https://github.com/mozilla/FoxPuppet/blob/bd593d59f523a65d67c7630cd34fdbfce688780e/foxpuppet/windows/browser/notifications/base.py#L29. |
This issue is still reproducible for Firefox. VS 2017 , Selenium v 3.12.1 ,C# , Firefox V 60.0.2 , Chrome V 66 , Nunit v3.10.1 , Gecko Driver v 20.1 , chrome driver v 2.4 I tried to find solution Firefox but did not success but I do get solution for Chrome v66
ChromeOptions options = new ChromeOptions();
Below commands are NOT working, this is issue with Geckodriver so Gecko team has to provide some solution or fix for that : driver.FindElement(By.CssSelector("body")).SendKeys(Keys.F12); Actions action = new Actions(driver); action.SendKeys(Keys.F12); action.Perform(); Actions action = new Actions(driver); action .KeyDown(Keys.Control).SendKeys(Keys.F12).KeyUp(Keys.Control).Perform(); Actions action = new Actions(driver); action.SendKeys(Keys.F12); action.Click(); |
@java123code please do not cross-post the same question across different issues. As already mentioned on issue #646 your problem is not related to both of these issues. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue. |
In order to help us efficiently investigate your issue, please provide the following information:
Platform and application details
Steps to reproduce
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium import webdriver
profile = webdriver.FirefoxProfile()
caps = DesiredCapabilities.FIREFOX
driver = webdriver.Firefox(capabilities=caps, firefox_profile=profile)
driver.get("about:blank")
ActionChains(driver).key_down(Keys.F12).key_up(Keys.F12).perform()
Result
perform() returns None and there is no open inspector in my Firefox.
The text was updated successfully, but these errors were encountered: