selenium

Mouse the focus to an object using selenium python

半世苍凉 提交于 2021-02-08 07:30:31
问题 I am automating a website using selenium RC and python 2.7 on Ubuntu Linux. Here is what I need to do: Go to the site http://borro.com. Scroll down to the bottom of the page using key down native command I need to hover the mouse on g +1 read the tool tip click on the name that appears in the tool tip. The problem I am having is -- I need the mouse to physically move there, wait for say 2 secs and then read the tool tip and click on the name The mouse is not physically moving there and I

Scraping data from LinkedIn using RSelenium (and rvest)

最后都变了- 提交于 2021-02-08 06:47:55
问题 I am trying to scrape some data from famous people on LinkedIn and I have a few problems. I would like do the following: On Hadley Wickhams page ( https://www.linkedin.com/in/hadleywickham/ ) I would like to use RSelenium to login and "click" the "Show 1 more education" - and also "Show 1 more experience" (note Hadley does not have the option to "Show 1 more experience" but does have the option to "Show 1 more education"). (by clicking the "Show more experience/education" allows me to scrape

Scraping data from LinkedIn using RSelenium (and rvest)

左心房为你撑大大i 提交于 2021-02-08 06:47:04
问题 I am trying to scrape some data from famous people on LinkedIn and I have a few problems. I would like do the following: On Hadley Wickhams page ( https://www.linkedin.com/in/hadleywickham/ ) I would like to use RSelenium to login and "click" the "Show 1 more education" - and also "Show 1 more experience" (note Hadley does not have the option to "Show 1 more experience" but does have the option to "Show 1 more education"). (by clicking the "Show more experience/education" allows me to scrape

Triple click using selenium

試著忘記壹切 提交于 2021-02-08 06:44:50
问题 This question is similar to the one asked here. However in that case it seems that the poster's ultimate purpose was actually to select a paragraph of text, and they were able to find a work-around which did not involve clicking. Like the user in the above question I initially thought that it would be possible to simulate a triple-click by calling the click method three times. new Actions(driver) .moveToElement(svgElement, posX, posY) .click() .click() .click() .perform() However, this doesn

Triple click using selenium

十年热恋 提交于 2021-02-08 06:44:26
问题 This question is similar to the one asked here. However in that case it seems that the poster's ultimate purpose was actually to select a paragraph of text, and they were able to find a work-around which did not involve clicking. Like the user in the above question I initially thought that it would be possible to simulate a triple-click by calling the click method three times. new Actions(driver) .moveToElement(svgElement, posX, posY) .click() .click() .click() .perform() However, this doesn

Setting chrome capabilities in application.properties file using QAF Automation framework is not working

穿精又带淫゛_ 提交于 2021-02-08 05:17:46
问题 I'm new to using QAF Automation framework. I followed the documentation on this page - https://qmetry.github.io/qaf/latest/setting_driver_capabilities.html My requirement is: I have to download a file in my test and the download should go to my project's download folder and not on macbook/test machine's download folder. I'm using chromeDriver and have to set chrome capabilities in the application.properties file within QAF framework. I added the below but it's not working chrome.capabilities

Setting chrome capabilities in application.properties file using QAF Automation framework is not working

こ雲淡風輕ζ 提交于 2021-02-08 05:17:33
问题 I'm new to using QAF Automation framework. I followed the documentation on this page - https://qmetry.github.io/qaf/latest/setting_driver_capabilities.html My requirement is: I have to download a file in my test and the download should go to my project's download folder and not on macbook/test machine's download folder. I'm using chromeDriver and have to set chrome capabilities in the application.properties file within QAF framework. I added the below but it's not working chrome.capabilities

Is it possible to disable loading images (jpg and png only) on Selenium and Chrome webdrive?

故事扮演 提交于 2021-02-08 05:12:31
问题 In my efforts to improve performance of my selenium testing application I was wondering if it is possible to avoid loading certain files such as images (jpg and png). The parameter "--disable-images" disable all images, including "gif", which in my canse can be a google analytics tag, and I must capture that. 回答1: Yes, you can do it by specifying profile.managed_default_content_settings.image in ChromeOptions . Example: chromeOptions = webdriver.ChromeOptions() prefs = {"profile.managed

Is it possible to disable loading images (jpg and png only) on Selenium and Chrome webdrive?

假如想象 提交于 2021-02-08 05:06:59
问题 In my efforts to improve performance of my selenium testing application I was wondering if it is possible to avoid loading certain files such as images (jpg and png). The parameter "--disable-images" disable all images, including "gif", which in my canse can be a google analytics tag, and I must capture that. 回答1: Yes, you can do it by specifying profile.managed_default_content_settings.image in ChromeOptions . Example: chromeOptions = webdriver.ChromeOptions() prefs = {"profile.managed

Using QtWebDriver to create Qt's automated tests

我只是一个虾纸丫 提交于 2021-02-08 03:59:52
问题 I would like to create automated tests for a Qt's app with selenium + QtWebDriver . I have read the QtWebDriver's wiki , and some questions on stackoverflow like this one However, I'm still not able to use QtWebDriver . I don't understand how to link selenium and QtWebDriver together. there are a lot of questions that I can't answer. How can I use Python to create automated tests for my own Qt's App based on selenium + QtWebDriver ? How can I link my Qt's app with selenium + QtWebDriver ?