Category "automated-tests"

Сommand tox -r doesn't deploy venv python in project

I have some project, that on my local pc by windows correct work. When I copy this project through gitlab on server, I don't see some folders. So, tox -r comman

Can't generate cucumber reports after stop cypress runner

I am using Cypress + Cucumber. Trying to fail test and skip steps if one of the failed. For this, I'm using the following code: afterEach(function () { if (

How to mock a class of a library used by the app during instrumented test?

I am working on an Android library and I am writing an instrumented test for it using UI Automator and Mockk. The library has a class called InstallManager whic

How to handle data for integration tests in Flutter with Firebase Realtime Database?

I am in the process of adding integration tests for my flutter app (Android & iOS). I am planning on having a sort of BDD test structure, with the Given par

Selenium Webdriver test removes input on button click

I am running into an issue with my selenium webdriver test where, if I input something into a phone number field and then click the call button, it will clear o

Locating an element within another element

public LocatedCarParksMap locateAndClickOnTheCardByAddressIndicator(String location) { List<WebElement> quoteCards = driver.findElements(By.cs

Failing tests -> Cannot read properties of undefined (reading 'rpc')

I was writing a test in TypeScript for Adding two numbers. I am receiving the following error: Adds two numbers: TypeError: Cannot read properties of undef

I am unable to click on any element which is inside a frame tag in Test Cafe

I am able to login to my application but after that unable to perform any action because all elements are inside the frame tag. The approaches I have tried: Sel

Facing issue while switching between windows using testcafe

I am able to switch from one window to 2nd window but not able to switch from 2nd window to 3rd window when all windows are open. testcafe not able to open 3rd

Python unit testing with unittest module

This is how I wrote the code to start a test with the unittest module but it is returning as 0 tests. Is the return making any problems? (I am able to share the

Associating automated tests in Azure with XUnit shows "None" as outcome

I am trying to associate my automation with their test cases in Azure, but I keep running into an issue where after it runs, the outcome is "None" and the TC sh

Why am I not able to get rid of a context menu with Selenium or brute force Javascript

I have tried just about everything, but I am not able to get rid of the context menu. Steps Right click context menu. Accept alert Try to get rid of the context

Selenium C# - Recording how chrome driver do a test case

At this moment, in my tests I use Screenshots to locate where my test failed.. Screenshot is only taken while, test fails. Sometimes it is difficult to find a p

Conditional testing in Cypress - check if cy.xpath-element has class value

What I want to do: I want to click a button. Then some element expands, and the button class name is changing. I only want to expand the element if not done yet

firefox selenium proxy setup with proxy authentication (python)

I am trying to set up sock5 proxy setup with firefox + python + selenium. I am having IP and PORT of the proxy server. Even i added username and password it is

ExtentSparkReporter type or namespace cannot be found, why is this happening? C#

ExtentSprakReporter type or namespace not foundI'm trying to generate extent reports for my project and ExtentV3HtmlReporter is deprecated. The extent website s

Cypress doesn't take updated values in the repetition, only takes hard coded numbers

Why does it seems like cypress wants to know how many times the test cases will repeat before running all the test-cases. In my case I have two test files somet

Error calling a command based on the number of items within an array

I have the following problem: I want to call my service a number of times. This number of times must be based on the number of times in my array. Below my step

Unable to determine element locating strategy for -android uiautomator

I have a method which works perfectly on locally, but when I launch it on server I've got an error: org.openqa.selenium.InvalidArgumentException: Unable to det

Android Pre-launch test Crash due to androidx.test.espresso.web.sugar.Web$WebInteraction.doEval execption

It happens when the Robotest tries to load Google Webpages into the Webview of the App. Specifically for Samsung Device SM-G960U1, SDK 8, API Level 26. Fatal ex