selenium-firefoxdriver

Accepting cookies error with Python/Selenium on www.instagram.com

久未见 提交于 2021-02-17 06:00:24
问题 I'm trying to, using Firefox, log into Instagram by using Python Selenium using the following code: from time import sleep from selenium import webdriver browser = webdriver.Firefox() browser.implicitly_wait(5) browser.get('https://www.instagram.com/') sleep(2) username_input = browser.find_element_by_css_selector("input[name='username']") password_input = browser.find_element_by_css_selector("input[name='password']") username_input.send_keys("<your username>") password_input.send_keys("<your

Python Selenium 4 - Firefox FirefoxBinary() Deprecated

爱⌒轻易说出口 提交于 2021-02-10 21:16:35
问题 I have upgraded to Selenium 4 new_binary_path = FirefoxBinary('path_to_binary') selenium.webdriver.Firefox(executable_path=path, options=ops, firefox_binary=new_binary_path) or options.add_argument("--setBinary(path_to_binary)") selenium.webdriver.Firefox(executable_path=path, options=ops) Return this error message DeprecationWarning: executable_path has been deprecated, please pass in a Service object Documentation https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium

How to use both the Firefox Profile and Firefox options with Selenium in Java

被刻印的时光 ゝ 提交于 2021-02-10 19:59:44
问题 I'm writing a test that I'd like to headless, which will also download a file within java using Selenium. from here I learn that you can set a driver to be headless by throwing this code before you initialize the driver: options.setHeadless(true); //sets driver to work headless WebDriver driver = new FirefoxDriver(options); and that I can use this method to write a Firefox Profile which will dictate a download directory and allow me to download a file with firefox w/o any pop up windows (I've

How to do Mouse hover on Image in selenium web driver to get menu list

你离开我真会死。 提交于 2021-02-10 03:20:54
问题 I am trying to mouse hover on image to display menu list. My HTML code is: <img id="logo" src="/web/images/header/img_Logo_Topbar.png"> But I am trying Xpath as "//*[@id='logo']" . There is no response. I am using this script: Actions a1 = new Actions(driver); a1.moveToElement(driver.findElement(By.xpath("//*[@id='logo']"))) .build() .perform(); Thread.sleep(1000L); 回答1: It's looks like a bug, I'm not sure what is the solution for this but if you want alternate solution to perform mouse hover

How to do Mouse hover on Image in selenium web driver to get menu list

佐手、 提交于 2021-02-10 03:07:24
问题 I am trying to mouse hover on image to display menu list. My HTML code is: <img id="logo" src="/web/images/header/img_Logo_Topbar.png"> But I am trying Xpath as "//*[@id='logo']" . There is no response. I am using this script: Actions a1 = new Actions(driver); a1.moveToElement(driver.findElement(By.xpath("//*[@id='logo']"))) .build() .perform(); Thread.sleep(1000L); 回答1: It's looks like a bug, I'm not sure what is the solution for this but if you want alternate solution to perform mouse hover

How to do Mouse hover on Image in selenium web driver to get menu list

会有一股神秘感。 提交于 2021-02-10 03:06:21
问题 I am trying to mouse hover on image to display menu list. My HTML code is: <img id="logo" src="/web/images/header/img_Logo_Topbar.png"> But I am trying Xpath as "//*[@id='logo']" . There is no response. I am using this script: Actions a1 = new Actions(driver); a1.moveToElement(driver.findElement(By.xpath("//*[@id='logo']"))) .build() .perform(); Thread.sleep(1000L); 回答1: It's looks like a bug, I'm not sure what is the solution for this but if you want alternate solution to perform mouse hover

How to do Mouse hover on Image in selenium web driver to get menu list

走远了吗. 提交于 2021-02-10 03:06:05
问题 I am trying to mouse hover on image to display menu list. My HTML code is: <img id="logo" src="/web/images/header/img_Logo_Topbar.png"> But I am trying Xpath as "//*[@id='logo']" . There is no response. I am using this script: Actions a1 = new Actions(driver); a1.moveToElement(driver.findElement(By.xpath("//*[@id='logo']"))) .build() .perform(); Thread.sleep(1000L); 回答1: It's looks like a bug, I'm not sure what is the solution for this but if you want alternate solution to perform mouse hover

How to install the Selenium IDE(selenium-ide-2.9.0.xpi) in Firefox 45.0?

时间秒杀一切 提交于 2021-02-08 10:25:57
问题 Unable to install the Selenium IDE (selenium-ide-2.9.0.xpi), after hitting the allow button, it begins the downloading part and even after completing the downloading the Install button is disabled. [ ] 回答1: I solved this by installing legacy version of Firefox. You have to uninstall the current one then download the old version from https://ftp.mozilla.org/pub/firefox/releases/41.0/win32/en-US/. 回答2: Record and play tests are very hard to maintain. Please consider developing a test automation

Mozilla Firefox 68.2.0esr browser is crashing using GeckoDriver and Selenium

我们两清 提交于 2021-02-05 07:19:25
问题 I was trying to launch Firefox browser through selenium, but unfortunately browser is getting closed immediately after it launches. I couldn't interpret from the log file. Here are the log file entries: 1582121786461 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.d4XupquDfaWC" 1582121787117 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid

Mozilla Firefox 68.2.0esr browser is crashing using GeckoDriver and Selenium

Deadly 提交于 2021-02-05 07:19:08
问题 I was trying to launch Firefox browser through selenium, but unfortunately browser is getting closed immediately after it launches. I couldn't interpret from the log file. Here are the log file entries: 1582121786461 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.d4XupquDfaWC" 1582121787117 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid