Category "automated-tests"

How to test a Laravel project for duration of requests

In a headless Laravel project we use unit and feature test. The unit and feature tests checks the input and output of the requests and the methodes but they won

check if text is bold

I am testing the output of a search and I want to be sure that I will get the text and that it would be bold. For example I want the name to include "ar". As an

extracting html element Id or xpath using computer vision

I am working on automating an inhouse automation testing software for my firm, I need to extract the X-path, or id of an HTML element when the tester clicks the

Can't click on Submit button, not working in automation testing, works manually

I have a standard form with 2 text boxes to fill and a submit button. The Submit button suppose to work after filling in the first mandatory text box. It works

С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