Skip to content

Tag: selenium

assertAll a list of booleans

There is a list of pages that can be accessed by a user. The verifyAccess has a function that returns true/false depending on which page the user is trying to access. For example – look for the profile IMG locator on a profile page, the Logout button on the logout page, and so on … I am using below imports

This version of ChromeDriver only supports Chrome version 99 Current browser version is 98.0.4758.102

My current chrome version : 98.0.4758.102 My current selenium version: 4.1.1 and cannot download chrome 99. My chrome 98 is updated to the last version, how do I get chrome 99 assuming it’s a beta version? Trace log : Answer Starting ChromeDriver 99.0.4844.51 Current browser version is 98.0.4758.102 Your chrome driver is for chrome version, which is not out yet.

Integrating regex in selenium xpath?

Hello I just start using selenium with java framework : I have this case : I need to count all the check boxes in my view which contains multiple pages (1,2,3) and in each web page i have a bunch of check boxes with the same xpath with different number see the exemple below: xpath fir the second checkbox in

TestNG – how to run the same method at the end of each test

I have something like: and I would like to move Assert.assertFalse(errorsExists()) to BaseTestCase or to TestListener so I will not have to pass it every time at the end of the test. I tried to move it to TestsListener to onFinish but method errorsExists() requires driver and I have problems to get it in there. Update: I want to method

Batch File creation for selenium project

I need to create a .bat file to execute my selenium project that i created with TestNG. I created the .xml file: The problem is i have two @Test and for some reason he executes them as if in the same time since when he tries to login he puts the login values twice. for reference this is my .bat

How can we pass in an ExpectedConditions as a parameter to wait.until in Selenium Java?

I’m finding trouble passing in an ExpectedConditions as a parameter in a method to wait.until(). The wait.until() expects a function to be passed in. I am relatively new to Java, and would appreciate the assistance. Offending code: wait.until() expects a function to be passed into it, which looks like ExpectedConditions.urlToBe(“”). I am trying to make a method that could be