Questions tagged [browser-automation]

Questions regarding automation of web applications for testing purposes according to specific of used web browser.

Filter by
Sorted by
Tagged with
1
vote
1answer
61 views

How do I enable ChromeDriver to use browser cache or local storage with selenium python

I was trying to automate a website and it's a PWA. I need the caching data for this site as it takes too long to load, once loaded it's pretty fast. But every time I run my scripts chrome starts a new ...
0
votes
0answers
25 views

After using BrowserMob proxy to manipulate HTTP Header unable to access WebElements

Below code works fine in launching the browser using the header request value passed through BrowserMob. However after the login has been completed using the requestvalue passed. I am unable to run ...
0
votes
3answers
49 views

How to Verify Previous Month Arrow should not present in Current Month in GoIbibo Site

I am unable to Verify Previous Month arrow should not be present in DatePicker but as it is not present in DOM getting Exception unable to find Such Exception. void fillDepartureDate() { // Date ...
1
vote
1answer
30 views

Fetching wrong Employee count corresponding to office location in Selenium

I am fetching Employee count according to locating using Map Highlighted No of employees count is mismatch in Image like If i search in Web table Tokyo there count is 5 but here getting 6 for ...
2
votes
1answer
60 views

Is it valuable to do end to end testing in a virtual environment?

We have to test an iframe that is developed by our team but launches from a partner website. But currently, there is no way to launch the iframe. So, the team asked us to automate the iframe in ...
1
vote
1answer
42 views

testCafe: How to configure the tests in the same spec file, to execute sequentially?

We are using testCafe for automation. when it comes to executing tests in parallel, test cafe even executes test blocks within the spec file, parallelly. Our tests are independent, but there are some ...
-2
votes
3answers
46 views

XPATH clarification [closed]

Refer: Picture of elements of HTML screenshot I am trying to get XPATH //*[@id="pg:pbEdit:conlist"] or //select[@id="pg:pbEdit:conlist"] Works but I want to be precise not ...
0
votes
1answer
82 views

Fixing an asynchronous JavaScript timeout out issue with Selenium in C#

Background I am running the following JavaScript code using the C# bindings for Selenium: async function addTableCellClassInjector(row, tableIndex, rowIndex) { for (let columnIndex = 0; column = ...
0
votes
1answer
99 views

Selenium thinks button is clickable even when disabled

I'm having an issue where Selenium is saying a button is clickable even when it's disabled. I'm using Selenium with a website where you have to select a date first and then time slot from a dropdown ...
0
votes
1answer
31 views

How do I write a better xpath of this element? [duplicate]

I am working on a project and building automation test suite for a webpage. A certain part of the webpage looks like this. The corresponding HTML is as follows: <p class="customer-service&...
6
votes
3answers
383 views

Are test-specific selectors a good idea?

In the past I had thoughts for more elegant HTML item selection. I found there may be a better approach, in contrast to "traditional" one. Old school way: .site-body .menu-box > li.item a.link ...
0
votes
0answers
75 views

Selenium with ChromeDriver not saving login cookies

In the test that I'm running using Selenium on Python, I simply create a new driver instance like so: options.add_argument("user-data-dir=cookies") # enables cookies ...
1
vote
1answer
374 views

Find Text without span Text - Python - Selenium

I want to get text that is stored on an element. Text is not a property instead when I expand Element (in chrome's inspection [DevTools]) it has two sub-properties, span and text. it looks something ...
0
votes
1answer
100 views

Find childs of element without sub-childs - Python - Selenium

I'm trying to create a bot. The functionality I need now is to find a way to get only childs of an element without sub-childs. Take this as example: <Body> <child1>Hi</child1> ...
6
votes
5answers
2k views

Is Cypress set to replace Selenium as the preferred tool for automating web applications? [closed]

I see many articles pointing out the effectiveness of Cypress as against Selenium for automating web applications. From most of the articles I've read, I see some points for Cypress such as: Cypress ...
0
votes
0answers
28 views

Is there any way I can have Cypress test steps printed out in the command prompt?

Cypress shows a log of all test cases / spec files executed while execution goes on in CMD. I want to know if there is a way that Cypress can show the test steps execution also in the command prompt. ...
-1
votes
1answer
111 views

Test script failing due to “INTERNAL_SERVER_ERROR” , when I try to automate application. It run fine when test the same flow manually

I am using Java. I am trying to automate a scenario, where am trying to search all details of an ID, it works fine when I test the scenario manually. It fails when I automate the scenario. Note: I ...
0
votes
1answer
112 views

My Cypress Reports Folder does not get properly deleted when I execute the rmdir command in the package.json file. Which command should I use?

I am running Cypress on a Windows machine. I am using this command (included in the package.json file) to remove the cypress/reports folder before the start of each test run: "clean:reports": "IF ...
1
vote
2answers
117 views

Unable to click on “Add Payment Method” button on Google Pay site

I am trying to click on "Add payment method" button under Payment Methods tab using selenium - https://pay.google.com/gp/w/home/paymentmethods Tried using xpath, className and cssSelector but looks ...
0
votes
1answer
352 views

Cypress: Problems in merging individual test suite Mochawesome reports. Consistent Errors observed

I'm using Mochawesome with Cypress to generate reports. I am consistently observing this error when I attempt to merge my individual Mochawesome test suite files into one combined report: ERROR: ...
1
vote
3answers
61 views

Scope of testing in terms of cross browser testing and cross platform testing

I would need support from QA experts to define the scope of testing for the following requirements Cross browser testing - When we get a requirement to test a website developed in PHP and angular js. ...
6
votes
3answers
512 views

Is the Page Object Pattern the ideal approach for browser automation for a website which has a front-end that has frames in frames?

I'm confronted with a web application which has a front-end that has frames in frames in frames. Regarding automated UI Tests with Selenium and Cucumber, is the Page Object Pattern the right approach ...
1
vote
1answer
29 views

Is there a tool to mirror input events on one device to multiple devices?

I am working on testing a progressive web app. Initially I've tried tools like Browserstack because it's tedious to manually run the same test multiple times on physical phone. Although these tools ...
0
votes
1answer
37 views

Select a day, month and year from calendar picker and copy the date value into a variable [duplicate]

I'm trying to select month, year and date from calendar date-picker. I'm writing my script using pom & page factory approach. I'm not able to pass the date I selected to the variable named ...
3
votes
1answer
174 views

What is progression in test automation? What open source tool could be used to design automation framework for that?

I 've been working in automation for the last 8 years. Recently, I have come across the term "Progression" in test automation. I've learned basics but still, I am not sure how to implement this ...
1
vote
2answers
614 views

Encountered Error Could not load type 'OpenQA.Selenium.Internal.IWrapsElement' from assembly 'WebDriver

I'm working in multiple browser testing. It was working code with chrome browser. Recently I have installed "Install-Package Selenium.WebDriver -Version 4.0.0-alpha04". MSedge Chromium and chrome ...
1
vote
1answer
348 views

Unable to load MS edge chromium with Selenium

I'm trying to load the msedge chromium. encountering error. Steps to recreate: Installed mschromium Beta and Dev versions. Installed the Nuget package "Install-Package Selenium.WebDriver -Version 4....
-1
votes
1answer
54 views

How to store text from a webpage using Ruby?

Ruby / automation beginner here - I'm trying to get and store an email address from a webpage using the element id, but am getting the error undefined local variable or method 'customer_email_address' ...
0
votes
0answers
31 views

Failing to update a date using python and selenium

I am trying to change a date one day forward on a calendar date picker using python and selenium. <td colspan="2" class="textBlack">&nbsp;Due:&nbsp; ...
0
votes
1answer
261 views

Nightwatch JS - How to run multiple individual test cases?

Are there any other way to run test cases individually other than using --testcase flag ? also are there any to run 2 single test case from 2 different test suites? For example: Test Suite 1 Test ...
0
votes
1answer
38 views

Using both espresso and uiautomator and test is failing on Firebase, but not on AS emulator

I have the following piece of code which is: click a toggle from Firefox app the toggle opens the Default apps menu from System settings I open the browser list, pick my browser and return to the ...
1
vote
1answer
238 views

How to disable selenium from taking physical mouse on Chrome on user's machine on a different monitor screen?

My issue is related to this question Disable physical mouse and keyboard in selenium but I didn't see an answer for this question. tests are being ran by Java + Selenium + Chrome on the same user's ...
2
votes
2answers
67 views

java.lang.NullPointerException problem in Selenium Test

I'm learning Selenium POM with Junit and ran into a problem. java.lang.NullPointerException at MainPage.clickSignIn(MainPage.java:27) at MainPageTest.signInTest(MainPageTest.java:28) My class: ...
3
votes
1answer
501 views

How to interact with ngx-monaco-editor

I have a web page that has the ngx-monaco-editor implemented in angular. But i am not able send any data to the editor using sendKeys() . I tried replacing textContent of the div element but it just ...
30
votes
8answers
13k views

How can Internet Explorer 5 be emulated in 2020?

Details One of our customers uses a rather old software solution, and this is still based (yes, it's unbelievable!) on Internet Explorer 5, and the customer still uses IE 11 in compatibility mode. ...
1
vote
0answers
146 views

How to automate Handsontable using Selenium WebDriver (Java)

I want to automate the Handontable using Selenium WebDriver using Java. Basically, I want to enter data in the handontable using selenium(Java). Is there any way available to enter data in the table. ...
0
votes
1answer
53 views

Trying to use xpath in order to select a text on desktop web browser [duplicate]

This is the error I am getting below: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="select-input-...
-2
votes
1answer
56 views

Automation Testing using selenium webDriver on a javaScript based application

I am having a JavaScript-based application to automate using Selenium WebDriver. Can I automate a Javascript based application using Java with Selenium WebDriver OR do I have to use protractor (...
1
vote
3answers
317 views

Reusing test code and test files organization in Testcafe

I'm having a hard time figuring out how to organize my test code, i.e. test cases, into suites and runs. On the one hand, tests should, by definition, be independent of each other, that's why I, ...
2
votes
2answers
4k views

How can I handle the chrome Http Authentication popup window in selenium without AutoIT?

I have tried https://{USERNAME}:{PASSWORD}@xyz.com pattern to authenticate URL but it doesn't work for me. Can someone suggest me the best way to handle chrome HTTP authentication popup?
1
vote
1answer
134 views

Trying to highlight elements on a page one by one using Selenium

I'm trying to highlight all the elements of a page, using Selenium to inject some JavaScript and CSS. However when I run my test i'm only getting back errors complaining that it can't find the ...
0
votes
2answers
527 views

Selenium starts firefox but only stays on a blank page

I've been looking at the distinction between webDriver.naviagate.to and webDriver.get and they seem the same. Certainly a web page launches..but then a big nothing burger. Not sure where to start ...
0
votes
0answers
115 views

Problem with parallel testing (POM, python, selenium, pytest)

I have a dir named PageObjects, there is a file Login.py. It stocks all the locators of elements plus functions that I call in test cases. It looks like this: class Login: # Locators of all ...
2
votes
2answers
102 views

Who are some of the Test Automation experts that are well-known and respected in Software Industry? [closed]

I am a complete beginner in Test Automation and was looking for some world experts on this subject. Could you list or refer to material of some of the best known experts in Automation industry who ...
0
votes
2answers
92 views

What are the things that one must consider while learning Selenium Webdriver Automation framework?

I am a newbie in Automated scripting using Selenium WebDriver with Java. Also, i have the most basic knowledge of core Java. With tons of resources on the web for learning WebDriver, i am a bit ...
0
votes
1answer
634 views

Cannot upload files when running tests in docker Selenium_Hub, Selenium-Node-Chrome-Debug and a container w/ Mocha + Selenium-Webdriver (JS)

I am trying to run javascript mocha selenium-webdriver tests on my company's application using docker containers. I seem to have everything working except that I am unable to upload files. Prior to ...
0
votes
1answer
188 views

Is performance testing needed to perform on User Interfaces?

Should we use performance testing on UI? Should we use End to End testing scenarios for performance testing?
1
vote
1answer
178 views

Selenium: Capture DOM Elements Image

I have an API to capture the image of a particular element in DOM and return them. For that, I have a list of WebElements which needs to be captured into a single webpage. For that same, I have found ...
-1
votes
1answer
22 views

Automation tools recommendations for E2E and integration testing a Firestore back-end application?

Does anybody have any experience and/or have any recommendations for automation tools for testing a suite of web applications that rely heavily on Firestore for data storage? We are currently working ...
0
votes
1answer
898 views

If command in selenium IDE

By using Selenium ID extension for fireofx (or chrome), I have problems by using "if" command and the !statusOK variable. In particular I get this error: verifyElementPresent on id=login-title OK 15:...

1
2 3 4 5
8