browser-automation

Selenium Webdriver - element not clickable error in firefox

放肆的年华 提交于 2019-12-04 19:47:32
The element not clickable error that usually appears in chrome driver happens to be showing in firefox also. The error message shown: Exception in thread "main" org.openqa.selenium.WebDriverException: Element is not clickable at point (141, 299.29998779296875). Other element would receive the click: <div class="showOnTop" id="loadingPanelContainer"></div> Command duration or timeout: 209 milliseconds Build info: version: '2.51.0', revision: '1af067dbcaedd7d2ab9af5151fc471d363d97193', time: '2016-02-05 11:20:57' System info: host: 'Bhaveen-ThinkPad', ip: '127.0.1.1', os.name: 'Linux', os.arch:

Convert iMacros script into another free automation tool like Kantu or Selenium?

回眸只為那壹抹淺笑 提交于 2019-12-04 16:51:30
I'm trying to create a script to perform mass actions on a personal account (context not relevant, I think). I figured a way to do it using this script for iMacros and it was working. However, I needed to add a new variable to have a random delay between actions instead of having a fixed "WAIT SECONDS". Since I'm using the free version of iMacros, this doesn't work because it's using more than 3 variables :( Now, problem is, I have no idea how to convert this script into another browser automation tool. Anyone can help me "translate it" to Kantu or Selenium, for example? Would it work? I'm

fill out form using vba and chrome

余生长醉 提交于 2019-12-04 16:12:23
currently i can accomplish this using IE Dim ie As InternetExplorer Set ie = New InternetExplorer ie.Navigate "www.google.com" ie.document.getElementByID("blah").value = "blah" im curious if there is a way to navigate to website and fill out info using other than IE with VBA for example with FireFox or Chrome i know how to navigate to other websites using any of the explorers for example Chrome as per below, but i would like to know how can fill out fields like search field on www.google.com using Chrome call Shell("C:\Program Files\Google\Chrome\Application\chrome.exe"& " " & URL) BenShim You

Browser Automation with Selenium: Fingerprints, recognizability and traceability?

三世轮回 提交于 2019-12-04 09:32:36
I want to use selenium/webdriver to simulate a browser and scrape some website-content with it. Even if its not the fastest method, for me it has many advantages such as executing scripts etc. For many websites it is forbidden to access them via an automated method, for example search engines like google or bing. For one tool i need to scrape the estimated resultstat from google for several keywords. This will look like the following: simulate the browser that visits google.com and types in a keyword and scrapes the results, then after a little pause type in the next keyword, scrape the

Manipulating browser (window) size using Splinter

做~自己de王妃 提交于 2019-12-04 03:32:32
I am trying to use the Firefox driver for Splinter to test some responsive design. Naturally, this requires me to resize the browser window. I can't find anything at all about browser resizing in the documentation . How can I do this? from splinter import Browser with Browser() as browser: # How do I set the browser size? Just do this: browser.driver.set_window_size(640, 480) The Splinter API doesn't seem to directly support this - or at least not yet. The generic API docs , as well as the docs for each specific browser's driver, currently make no mention of anything related to window size).

Can I automate Chrome request blocking using Selenium-webdriver for Ruby?

試著忘記壹切 提交于 2019-12-03 20:12:56
I am a QA automation analyst responsible for testing a multi-platform online banking application. For our automation testing we use RubyMine suite with Gherkin/Cucumber, Ruby-scripted steps and Selenium-webdriver, Watir and page-object gems/libraries. I have a number of scripts that I cannot automate completely without manual intervention, and these include blocking certain network calls through Telerik Fiddler to produce warning pages or error messages, etc. The future of our automation would be to do this through RubyMine instead of Fiddler for network blocking. I know there is a way to do

How Do You Set Value of Input Element Programmatically Through CSharp?

假如想象 提交于 2019-12-03 15:34:24
Hello I am trying to automate my IE to log into a website but the problem is that the input elements do not have an HTML ID attribute! For example: <input type="text" name="user" size="15" value=""> How do you program C# to insert text in this text box? Thanks bevacqua Add the following attributes to your input tag: runat="server" and id="someId" <input id="user" type="text" size="15" runat="server"> Then server-side you do: user.Text = "sample text"; Then you can do something like: foreach (Control c in Page.Controls) { TextBox t = c as TextBox; if (t != null) { t.Text = "sample text"; } }

How to run Selenium tests on the Brave web browser?

為{幸葍}努か 提交于 2019-12-03 06:56:43
I am trying to run some Selenium tests on the Brave web browser. I am able to start the Brave web browser through Selenium by using the ChromeDriver. However, nothing else works, e.g. I cannot cause Brave to load a certain web page. As Brave is based on Chromium, I would think this is the way to go. Are there more appropriate ways that support Brave to be driven by Selenium? This is de code that I used: ChromeOptions options = new ChromeOptions().setBinary("/Applications/Brave.app/Contents/MacOS/brave"); WebDriver driver = new ChromeDriver(options); For the record: this is no longer an issue

Passing multiple files to input node with Watir (using Ruby)

和自甴很熟 提交于 2019-12-02 09:28:16
问题 So I have hit a bit of a snag. I am trying to automate a test case where I need to pass multiple files to an input node and I cannot figure out how to do so. I can use either Mechanize or Watir, but have found very little information on a topic that seems relatively major in automation. In the snippets below, I'm using Watir with Ruby. The main issue I'm having is that it seems when multiple files are selected, the input node is no longer visible. The input node does accept multiple files,

Click on a href link in an already opened browser window

青春壹個敷衍的年華 提交于 2019-12-02 07:36:14
问题 In the below code I'm trying to click on the "About" link ( href ) in the www.google.co.in website. This worked on IE11 (Windows 10), but is not working for IE10 (Windows 7). Is this in anyway machine dependent. If not what is the right code? Please remember I'm trying to click on a link in an already opened browser window. Set objShell = CreateObject("Shell.Application") IE_count = objShell.Windows.Count For x = 0 To (IE_count - 1) On Error Resume Next ' sometimes more web pages are counted