Questions tagged [webautomation]

1

votes
1

answer
124

Views

How to rearrange tests in Selenium IDE test suite

As a Test Automator, I want to be able to rearrange macros within the kantu selenium ide test suite so I don't have to delete each macro and re-add them in the new desired order. Currently, if I have a new macro that I want to insert in the middle of an existing suite it isn't easy to do. For exampl...
MateoNicolás
1

votes
0

answer
138

Views

Selenium Python: delete_all_cookies() is not deleting all the cookies stored

There is this website : http://justnotepad.com/ Here we can write notes and it will store it in browser's storage so if we reload/reopen the page again it restores the previous notes. So I want to open this website 3 times in same Browser Instance without closing it by opening and closing new tabs....
user8810517
1

votes
1

answer
88

Views

Web automation for form fails by setting values of input

I am trying to automatically join a meeting on web conferencing software clearslide using nodejs and puppeteer, when i set values of input and try to submit the values disappear and form raises no input value validation error. Looking at the javascript code shows some code monitoring keypresses and...
arun singh
1

votes
0

answer
57

Views

Can not login to website with Invoke-Webrequest

would like to logon to XING (social network) to read my status updates. But I can't seem get it working. I dont get any specific error, but the login-request returns a site saying 'login trouble, try again blabla'. $loginURL = 'https://login.xing.com' $username = '[email protected]' # test account $p...
Moss
1

votes
1

answer
231

Views

How to scroll down in an instagram pop-up frame with Selenium

I have a python script using selenium to go to a given Instagram profile and iterate over the user's followers. On the instagram website when one clicks to see the list of followers, a pop-up opens with the accounts listed (here's a screenshot of the site) However both visually and in the html, only...
hiMom
1

votes
2

answer
58

Views

How to click select drag on a map element using Protractor typescript

I need help on doing this, i want to click on a particular area, then select drag the area, and then release the click. similar to the image below: i tried this code, but nothing happened: browser.actions(). mouseDown(element(by.id('waze_map1')), '{x: 191, y: 56}'). mouseMove(element(by.id('waze_map...
SeanRay
1

votes
1

answer
51

Views

What is the best approach for a testing framework which supports web and mobile testing?

Currently I have a Web testing framework implemented with Selenium + Java + testNg. I am to improve it to support mobile testing (Iphone + Android). My initial thought was using Appium + Java+ testNg for mobile and creating separate projects (one for each environment - Web, Mobile and Iphone). But I...
Maria Isabel
1

votes
1

answer
2.1k

Views

VBA IE automation, To trigger some action in VBA before whenever i navigate to other page in website

I need a VBA code which can do some action in VBA when the webpage frame is just about to navigate to other page.for example when i click on some link,button it navigates to other page i want to take screen shot of the page before frame navigates to other.i have done something like this but it is ta...
nothingisimpossible
1

votes
1

answer
275

Views

Headless browser with full javascript support [closed]

I've been using HTMLUnit and it's good but it does not work with all the sites, and when testing new sites I'm always unsure if it will work or not. Is there anything that has 'full' JS support? something that is just like a real browser? I'm ok with it not being able to run on Java. Python would be...
Arya
1

votes
1

answer
475

Views

Element is not ready to be selected, but wait.until() still continues regardless?

I'm new to Selenium and fairly new to Java. I'm a tester by trade, not a developer, so I'm trying to gradually convert my Selenium IDE scripts into something more robust and 'proper'. Unfortunately I'm struggling with a fairly basic task. As soon as the web page loads, I want to click a button. Th...
pledgeX
1

votes
3

answer
392

Views

How to automate a windows screen that has a webpage embed in it?

I have a msi installer, which after installation opens up configuration screen. Before I start configuring, I need to enter my login credentials. Now, this login screen opens in a window which has a web page embed to it. I need to automate this login screen to enter the user name and password. In th...
Virus
1

votes
1

answer
239

Views

How can i download with watir webdriver?

Here is the code on their website but I'm not understanding what to do exactly. I'm still considerably new to Ruby. download_directory = '#{Dir.pwd}/downloads' download_directory.gsub!('/', '\\') if Selenium::WebDriver::Platform.windows? profile = Selenium::WebDriver::Firefox::Profile.new profile['b...
marriedjane875
1

votes
1

answer
1.7k

Views

Extracting value from next td in a table using selenium

I have a situation in which i must extract a text and select a row and then i must get a value which is present in a td right next to the cell we selected.The corresponding html page looks like this : MyValue 65 I have selected the cell by using this xpath 'div[starts-with(text(),'MyVal')]'.I didn...
user2078883
1

votes
1

answer
456

Views

What is the difference between manually opened Chrome browser and opened using chrome driver

I am using Selenium for automating the chrome browser. When I download the files using automated Chrome browser it gives me a warning, 'This type of file can harm your computer' with keep or discard options. But when I manually open chrome and download the files from same site, I won’t get any wa...
IT researcher
1

votes
1

answer
590

Views

How to use UrlToBe in selenium for only part of the URL

I have a requirement two requirements in Selenium Chrome driver automation using .net. Waiting for particular base URL to load. For that I got the below code which works perfectly if I gave the exact URL, wait.Until(ExpectedConditions.UrlToBe('https://accounts.google.com/ServiceLogin?service=mail&p...
IT researcher
1

votes
1

answer
288

Views

iMacros is opening all the links in one tab one by one but not in every new tab?

I hope that everyone will be in perfect health.! I wrote an iMacros script but it has a problem it never opens the links in the new tab but instead it opens the links one by one in the TAB=2 i.e in the 2nd Tab while it perfectly shows that in every new link visit task it shows tab as incremented by...
1

votes
1

answer
2k

Views

What is the right way to implement a “Selenium driver pool” in Java?

I wrote a web automation tool using Selenium WebDriver and the geckodriver in Java. Currently every time I execute the task, a new FirefoxDriver object is instantiated. Now I want to implement multithreading. The first approach that came to my mind was building something like a fixed size pool - ins...
saxum
1

votes
2

answer
64

Views

Selenium Web Driver returns Selector not visible

I have a HTML page that looks like this. I have to click on a menu dropdown and click on its 6th item. User Account Management Account Analysis Delete User Account Unlock/Re-activate User Account De-activate User Account Update User Account Search RSD User I need to select the item 'search RSD use...
CaRtY5532
1

votes
2

answer
796

Views

How to refresh Capybara URL in Ruby

I've been playing with Capybara and the selenium web-driver to learn about web-automation. I've been trying to refresh a particular page with Capybara. I've seen a few methods but they each have issues that make them not feasible in certain cases. session.visit link is just doing nothing, as the ses...
Leon92
1

votes
1

answer
478

Views

Unable to click Submit button using python-Selenium

I am trying to extract a value from google search using selenium web automation. from selenium import webdriver import time import os #open googole.com driver = webdriver.Chrome() time.sleep(2) driver.get('https://www.google.co.in') #search for bitcoin exchange rates elem = driver.find_element_by_id...
Sameem
1

votes
1

answer
1.2k

Views

Sending a custom header via Google Chrome Headless

I am using Google Chrome Headless and telling it to browse to one of my endpoints. I would like to make Google Chrome send a custom header when making requests to my endpoint. How do I tell google chrome headless to send custom headers? Thanks!
mayk93
1

votes
1

answer
170

Views

Kantu Export screenshot of an Element?

How to Export Element screenshot taken using 'storeImage' in Kantu { 'Command': 'storeImage', 'Target': '//*[@id=\'setbackfix\']/div[1]/div/div[1]/div[2]/div/ul/li[2]/p/span[2]/span/a', 'Value': 'image' }, i have tried local Storage Export.
XPecto
1

votes
1

answer
0

Views

Selenium + Python + Chrome: simultaneously add_experimental_option and set desired_capabilities

I am trying to change settings for Chrome driver so that it allows me to do both of the following: It doesn't give me a popup (as discussed here). It allows me to change the download directory and settings (as discussed here). Although both the solutions work phenomenally in isolation, my attempts t...
RUN
1

votes
1

answer
0

Views

Getting a list of exclusive class name with a class name in puppeteer

I am trying to get class names and check if at least one of the tags have red class or not. So, if at least one of them includes red class, the function must return true, otherwise, false. The closest one is this: const nodeList = await page.evaluate(() => { const arrynodeList = document.querySelect...
c-an
1

votes
1

answer
0

Views

PDF created with puppeteer not showing font-awesome icons

i need to create a PDF Buffer and save this to the database. I am passing the complete DOM to puppeteer and most of it works just fine. When i open the created PDF Buffer, bootstrap styles are applied and i get a beautifull PDF. However, font-awesome icons will not show up. i have only two CSS files...
JustAMicrobe
1

votes
2

answer
0

Views

blacklist test requests from google analytics using watir

I have to automate tests for a web application which runs google analytics script. I have chosen watir for the automation since I can script all the test cases with the same. The only problem is i dont know how to remove my test requests to the web apps from the google analytics report. Can anyone...
Anjali
1

votes
2

answer
0

Views

PC/Windows equivalent of “Fake”

Doing some web testing and need a way to fill out forms automatically without much user interference. For OSX there is Fake (FakeApp.com) but is there an equivalent for Windows systems that are not Firefox/Chrome extensions?
Valien
1

votes
1

answer
191

Views

HttpWebRequest to Automate Secure Requests

I have done web automations in the past where I use fiddler and recreate the requests in C#. The website I'm currently working on automating doesn't have any viewable POST or GET requests in fiddler. Everything is either listed as secure or simply labeled 'Tunnel To' is there a way to figure out w...
1

votes
2

answer
2.7k

Views

VBA IE automation, To do events like displaying message,etc in excel when a link in webpage is clicked

My requirement is i need to have a VBA code in excel which runs to do some action in excel when a link in webpage is clicked.For example when i click a link 'login' in webpage my VBA code should press printscreen button in keyboard(like we use sendkeys). I have been searching for this solution since...
nothingisimpossible
1

votes
2

answer
7.7k

Views

How to get a specific frame in a web page and retrieve its content

I wanted to access the translation results of the following url http://translate.google.com/translate?hl=en&sl=en&tl=ar&u=http%3A%2F%2Fwww.saltycrane.com%2Fblog%2F2008%2F10%2Fhow-escape-percent-encode-url-python%2F the translation is displayed in the bottom content frame out of the two frames. I a...
1

votes
1

answer
2.3k

Views

Test Automation of CMS based web application

We are using BrightSpot as CMS in one the projects. I am proposing a test automation approach (as below) and would like to know what anyone else is doing along similar lines. Use Capybara/Selenium-Webdriver to automate the actual publishing of pages or drive the content editing interface of BrightSp...
user2327405
1

votes
1

answer
696

Views

Can't properly access element using Python Selenium WebDriver

So I am learning how to use Selenium for web automation - I am trying to write a script that returns my American Express balance to my console. The first step is actually logging on successfully... It appears that my action for clicking the login button raises an error of not finding the element, ev...
ploo
1

votes
1

answer
122

Views

Error converting Simple Captcha to string using tesseract

I want to automate some login processes for a ticketing system. There is a simple captcha at the login screen. I am able to take a partial snapshot of it, but as soon as I send that image to image_to_string() function, there is a error. The error says: '[Win Error 2] The system cannot find the file...
1

votes
1

answer
120

Views

IE Web Automation - How to auto select web combo box value matching with a cell using Excel VBA/XML Macro

I'm a beginner in VBA and I'm facing problem in selecting country name automatically in web Combo box using cell value from my Excel sheet via loop. It'll be great help if someone could just help me to fix my VBA and XMLHTTP code. My sheet and VBA code is as follows, Sheet, VBA Code, XML Code below,...
Talal Z. Rana
1

votes
2

answer
5.3k

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

View additional questions