Skip to content

Tag: automated-tests

How to write in pre tag?

I can’t write value to field using Selenium .sendKeys. So I use jsCode: and I can’t understand why these methods don’t work – the test passes but the value is not written to the field $(“div pre”).append(“RESPONSE”) – work in devTools Full html code: Answer If you are trying to append to the content of the pre tag then use

Difference between List and ActionSequence in jqwik

What exactly is the difference in between List<Action> and ActionSequence in jqwik. In the doc of jqwik, ActionSequence is created using Arbitraries.sequences(…) and the List<Action> is created using Arbitraries.oneOf().list() Since the purpose of ActionSequence and List<Action> is to provide a combination of actions to run after each other. Please guide me. Thanks 🙂 Answer Always use ActionSequence if you want

Cannot invoke “” because “this.hotelsLink” is null Maven

I try to do some tests using Selenium, but I can’t test what I do Error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See for further details. Starting ChromeDriver 101.0.4951.41 (93c720db8323b3ec10d056025ab95c23a31997c9-refs/branch-heads/4951@{#904}) on port 38072 Only local connections are allowed. Please see for suggestions on keeping ChromeDriver safe. ChromeDriver was

Automated test for OIDC Login

I have build an OpenID Connect Login for my java application (without spring). Now I want to have an automated test for the OIDC process. I am using KeyCloak as auth-server. For OIDC my test has to login on the keyloak login page by passing the username and password. For this I am using HtmlUnit and a simple http-server for

Java Selenium stale element reference, using AjaxLocatorFactory

I have a super-class Component, inside this class I store common ways to access elements attached to the component. In the Component constructor, I initElements with the pagefactory As I understand it, this will automatically keep element reference fresh, as long as the elements are annotated by the @FindBy annotation. I have a specialized Component called SearchResultRow which extends Component.

How shall I add Java class file?

I am using Goland IDE to build microservice in Go. If I have to write tests in Java, can Goland IDE support that. I don’t see the support for Java in Goland. But wanted to check with folks who are experienced in Goland. Answer To create a Java file in GoLand, you need to invoke File | New | File