Questions tagged [webautomation]

1

votes
2

answer
5.2k

Views

Need to click, hold and move at certain coordinates with capybara(ruby)

Im trying to implement a click, drag and release at certain coordinates for a web page, headlessly using Capybara. The target is an element containing calendar, which responds to mouse events via ajax. Schedules are added via clicking, dragging and releasing. I have tried 2 methods: Method 1 cal = f...
Miika Palokangas
1

votes
1

answer
11

Views

Disable downloads in Puppeteer

Is it possible to disable downloads for specific mime type. For example navigating to an url that by default will download a zip archive, should do nothing. Edit: I don't know in advance what url will be visited and what will return that url.
Vitalie Maldur
0

votes
1

answer
9

Views

Automating Dropdown Menu, Select and Send Keys

I am trying to automate some functions for a webpage. Specifically my goal is to automate within the "Download posts by username" section of https://vurku.com/ Whereby I pass username info to the "username" section, click and select images from the "post type" section, and click download. However I...
AlexNeedsHelp
1

votes
3

answer
824

Views

Need to get the ID value of sub-element in protractor

I am trying to automate test case using Protractor and Jasmine. The problem is I have an "article" web element tag that gets created at runtime and this web-element has a as sub element. This div element has a "id" tag associated with it. The structure of the code is below. Now I am able to get get...
picstand
3

votes
1

answer
939

Views

SSL Certificate error in node.js

I´m having an issue with puppeteer. So what I want to do is to launch a website and login. However, this website tries to load a resource which is blocked because its insecure. After running the code I get this error message and the code stops running: (node:11684) UnhandledPromiseRejectionWarning:...
Noah
17

votes
5

answer
126.2k

Views

Automatic login script for a website on windows machine?

I saw some guy had a file (I guess a batch file). On clicking of the batch file he was able to log in to multiple sites. (Perhaps it was done using VB.) I looked for such a script on Google but didn't find anything useful. I know a bit of C++ and UNIX (also some HTML and JavaScript). I don't know if...
munish
18

votes
2

answer
27k

Views

How to login to a website with python and mechanize

i'm trying to log in to the website http://www.magickartenmarkt.de and do some analyzing in the member-area (https://www.magickartenmarkt.de/?mainPage=showWants). I saw other examples for this, but i don't get why my approaches didn't work. I identified the right forms for the first approach, but it...
Rappel
2

votes
4

answer
4.8k

Views

Login to website with redirection using WWW::Mechanize

I know it sounds like a question which was already asked on forum ,however I believe that I have a slightly different scenario here.. I try to use Perl to log on to a web site which requires authentication. I already realized that the most convenient tool to accomplish this task is to use WWW::Mecha...
Eugene S
3

votes
2

answer
2.7k

Views

How to avoid 'This type of file can harm your computer' pop up in chrome autoamtion using selenium

I am using selenium to automate website filling in chrome. When I download exe or XML files I am getting a popup 'This type of file can harm your computer' with keep and discard options. How to disable this programmatically ? I am implementing this in c#, I have tried, chromeOptions.AddUserProfileP...
IT researcher
6

votes
6

answer
1.4k

Views

Creating & rolling back test data with SQL server

I am creating a series of web automation tests which require test data to be in a database (SQL Server 2008). To generate the required data for each test I have to call some C# code which will insert the correct data into the DB (i.e. I can't just write SQL scripts to insert the data). My problem is...
James Hollingworth
1

votes
1

answer
4.7k

Views

How can I select an drop down menu item with watir-webdriver

I'm using watir-webdriver to automate and test with an application. In the process I need to click on a drop down and select a value, however watir can't seem to select the item. Please help? My code: browser.text_field(:id => "user_username").set "#{username}" browser.select_list(:id => 'user_date...
marriedjane875
2

votes
2

answer
1.3k

Views

set a timout in python splinter web crawler

Trying to set a time out in python much like you would in ruby. I have a link that when I click it opens a popup but I can not access it because it causes the script to freeze until I kill it. I have been trying for months to access this popup to no joy in ruby watir-webdriver. I am trying to tim...
user1279586
4

votes
1

answer
2.4k

Views

How to quit modal dialog window in selenium headless browser?

I am using selenium2 + python + amazon ec2 (Ubuntu 11.04) for my project. For Headless reason in amazon ec2, I am using PyVirtualDisplay Since there is no display in server. when i am running my project, I am getting the exception Traceback (most recent call last): File "spyfu_ad_crawler_server.py",...
Nava
3

votes
3

answer
6.2k

Views

Tracing DOM element id back to its ExtJs component

We are develpoing a web-based automation solution for a web application that is built using ExtJs. Currently i am testing various different object identification techniques that identify web elements in the best way. We'd like to use the IE developer tools (F12) to highlight and select DOM objects o...
lysergic-acid
3

votes
2

answer
16.3k

Views

powershell: how to click a “submit type” input

used powershell to do web ui automation. came up an exception: invoke method failed, because [System.__ComObject] does not contain “click” method. can submit type input be clicked? i used getElementsByTagName getElementsByClassName getElementsByName , does not work. anyone can help me on this?...
max
6

votes
3

answer
10.9k

Views

How to set WATIR focus on new window

I'm new to WATIR testing (and do I love it!) and have run into a wall on how to refocus my WATIR script to a newly opened window.. Here's my (simplified) script.... #!/usr/bin/ruby require 'rubygems' require 'watir-webdriver' browser=Watir::Browser.new browser.goto("http://0:3050") browser.text_fiel...
Jane WIlkie
2

votes
1

answer
521

Views

canoo or jwebUnit for automated headless web client?

I'm writing an application in groovy with grails that needs to do some automated usage of a couple of websites. So I need something that will perform a similar task to functional web application testing, without a browser being needed. I would also like it to be as lightweight as possible and of cou...
barrymac
12

votes
1

answer
8.4k

Views

Selenium Webdriver vs Mechanize

I am interested in automating repetitive data entry in some forms for a website I frequent. So far the tools I've looked up that would provide support for this in a headless fashion could be Selenium WebDriver and Mechanize. My question is, is there a fundamental technical difference in using once...
randombits
1

votes
2

answer
614

Views

Python Selenium - What are possible keys in FireFox webdriver profile preferences

I couldn't really find this information anywhere, I am looking for a list of possible keys that can be used in the profile.set_preference() API. Here is some context: from selenium import webdriver from pyvirtualdisplay import Display display = Display(visible=0, size=(1024, 768)) display.start() pr...
gixxer
3

votes
1

answer
4k

Views

Selenium 3.0.1 -interactive gives ParameterException: Unknown option: -interactive

How to run selenum standanlone jar in interactive mode so that we can trigger commands from terminal. When I run as shown below exception occurs java -jar selenium-server-standalone-3.0.1.jar -interactive Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -interactiv...
antman
6

votes
3

answer
6.6k

Views

Accessing an element with no attributes in Watir

Using Watir, is there a way to access an element without attributes? For example: Text I'd like to avoid using xpath, but if that's the only way it's cool.
carlmonday
2

votes
2

answer
4.6k

Views

Selenium Chrome WebDriver how to scroll horizontally

Chrome web driver has a limitation that only loads webpage content that is in view. I have a website that has long horizontal table. I have Xpath that extracts column headers of a table that stretches more than the screen width. In chrome dev tool console if I run the xpath $x(myxpathgoeshere) I get...
DoodleKana
1

votes
2

answer
2.1k

Views

Breaking out of a Protractor .filter() or .map() loop

I'm using Protractor and cucumber framework; how do I break out of a .filter or .map loop? I do not want to continue to iterate further if I found a match! Page.prototype.getElementByKey = function (key) { var foundElement = null; return someElement.all(by.css('.someClass')).map(function (rawItem, i...
pelican
2

votes
5

answer
5.3k

Views

Click a checkbox with selenium-webdriver

I'm testing my app with tumblr and I have to log in and out as I go through procedures. While doing so, I'm having trouble clicking a checkbox that keeps popping up. How can I use selenium-webriver in python to click it? I've tried selecting xpaths, ...by_ids, and by_classes, they won't work, so now...
marriedjane875
7

votes
6

answer
6.6k

Views

Puppeteer: Get inner HTML

does anybody know how to get the innerHTML or text of an element. Or even better; how to click an element with a specific innerHTML. This is how it would work with normal javascript: var found = false $(selector).each(function() { if (found) return; else if ($(this).text().replace(/[^0-9]/g, '') ===...
Noah
1

votes
1

answer
1.7k

Views

How do I write a simple test using pytest-bdd and pytest using python?

I am quite new to BDD. I have installed pytest-bdd with python 3.6 in Windows7. Can some one give simple example of test of pytest-bddimplementation? I am not able to find proper solution for this on internet.
Python_Novice
3

votes
1

answer
79

Views

Why can’t RSelenium press this button?

I’m trying to automate browsing on a site with RSelenium in order to retrieve the latest planned release dates. My problem lies in that there is an age-check that pops up when I visit the URL. The page(age-check-page) concists of two buttons, which I haven’t succeeded to click on through RSeleni...
Allan A
2

votes
3

answer
3.7k

Views

Python Selenium Find Element by Name

I am using Python Selenium and am trying to select in input box that does not have an ID inputElement = driver.find_element_by_id("quantity") What is the best way to select this element, by name?
fightstarr20
3

votes
1

answer
103

Views

Repeating actions with Selenium with a different value each time

I am new-ish to Selenium, so I use Katalon Automation Recorder through Chrome to quickly draft scripts. I have a script that makes an account on a website, but I want to make more than one account at a time (using a catchall). Is there a way for Selenium/Katalon to alternate its input from a databas...
M. Davis
2

votes
1

answer
801

Views

Checking Websites for Updates (Web Automation with Python + Selenium)

I am trying to write a simple script that does the following: Runs automatically every 6 hrs Checks real estate website for new listings Email new listings details if any found, else terminate script until next run I plan on using crontab to execute (1). Additionally, this is the script I have com...
tsnn2d
2

votes
1

answer
623

Views

How do I populate a <p> tag with text in Selenium Webdriver using PhantomJS?

I have an input form that I need to populate with text. It's a div and it has a child node that is a tag that needs to be populated with text in order to submit the form. I've tried send_keys on the div itself to no avail, and in my browser I selected the tag and changed it's TextContent property...
not_this_again
3

votes
3

answer
161

Views

Automate adding entries to a wiki

Once I have my renamed files I need to add them to my project wiki page. This is a fairly repetitive manual task, so I guess I could script it but I don't know where to start. The process is: Got to appropriate page on the wiki for each team member (DeveloperA, DeveloperB, DeveloperC) { for each of...
Klelky
6

votes
1

answer
13.7k

Views

Execute javascript trough Internet Explorer's com interface using PowerShell

I am writing some Internet Explorer automation scripts using PowerShell. Here is how I start the IE com object: $ie = New-Object -com "InternetExplorer.Application" $ie.Navigate("about:blank") $ie.visible = $true $doc = $ie.Document So, what I would like to do is to execute some javascript on the $d...
Philippe
1

votes
2

answer
4.2k

Views

How to add wait / Delay until web page is fully loaded in Automation Anywhere?

I want to know 'How to add wait or Delay until webpage is fully loaded,' in automations anywhere, I used wait for screen change But it hold the process until some time specified by the developer , but I want to add delay until the web page fully loaded, Is there anyone can help me? sorry for the b...
Roshan
2

votes
4

answer
9.1k

Views

How to find_element_by_link_text while having: NoSuchElement Exception?

This question has been asked over and over again - and in-spite of trying all the hacks I still can't seem to figure out what's wrong. I tried increasing the implicitly_wait to 30 (and even increased it upto 100) - yet it did not work. Use case -: I am trying to create a list that wil populate all...
ekta
3

votes
3

answer
17k

Views

Controlling a web browser using Excel VBA

I have been assigned the task of automating a web based task ( for a HTTPS website). The users currently are filling in the Excel sheet with the data, they now want to automate excel in such a way that it directly controls the browser and fills in the data. I found the iMacros Scripting edition as a...
Darshan Bhatia
1

votes
2

answer
16.7k

Views

how to find an image tag using selenium webdriver in java and how to check if it has been properly displayed?

I need to check a webpage for all the images and get their attributes like src and width etc using selenium webdriver. Can someone please help me with it ?
Dcoder
2

votes
3

answer
33.8k

Views

How to code vba to open internet explorer in new session?

I am struggling to get this done since months, how to code VBA to open internet explorer in new session i have an application with many logins i need to open them simultaneously using automation , i have used set ie=new InternetExplorer but it opens the ie within the old session, i want to open...
nothingisimpossible
3

votes
1

answer
894

Views

Global Variable and External functions in SpookyJS

I'm new to SpookyJS/CasperJS and I'm trying to figure out the execution flow. This is what I'm trying to achieve: load a page store an image of the page pass this image to a function and execute it (this process is quite long: ~15 seconds) wait for the function to return the result use the returned...
lerio
2

votes
0

answer
341

Views

Script an interaction with a website that uses flash?

I would like to write a script that interacts with a web service which does not provide an API, through it's public website. (To the best of my knowledge, this would not be a violation of the TOS for the site in question.) The catch is that the site's UI is written in Flash, so it's not as simple a...
Benj

View additional questions