Category "java"

How to select a value from input type dropdown using selenium webdriver?

I am trying to select a value available in a read only drop down and I have tried so many options but still failing to select the desired option. The drop down

docker stats shows zero memory usage even for running containers

I have two containers ran by Docker Swarm: # docker ps CONTAINER ID IMAGE COMMAND CREATED STA

How to fix javax.net.ssl.SSLHandshakeException even though i have already added the certificate

I am working on a script to control my lights and because I'm lazy the communication is via email (works decently fast I know because it used to run on python b

How to disable wi-fi on Android device in Appium?

In our test case: I need to disable Wi-Fi at some specific point/action. I have verified: driver[deviceIndex].setConnection(Connection.NONE); assertEquals(Con

This application has no explicit mapping for /error bad request 400

I have a small spring boot project,, which works fine . But, I tried to add some kind of validation.. I worked on one html page but failed on the other with no

How to scroll smoothly with Selenium WebDriver and/or Sikuli in Java

As part of a test suite measuring FPS for a web application I need to perform a smooth scroll of the web page. That is, the same smoothness as when a user grabs

Why does it matter if I use a method reference or a lambda here?

When I try to compile this code import java.util.Optional; public class GenericTest { public static void main(String[] args) { Optional.empty().m

How I can Sort this Draggable List in Selenium

Link for Practice https://demoqa.com/sortable I tried with this code Actions action=new Actions(driver); List<WebElement> elements=driver.findElements(By.

Spring injection not working for FF4J web console

I am try to get the FF4j (ff4j.org) web console to work. According to the documentation on the website, I use the following configuration: <servlet>

Cordova build Execution failed for task ':app:compileDebugJavaWithJavac'

I am building mobile app using cordova https://cordova.apache.org/ I am facing error when I am trying to build for android platform even after updating build.gr

Inject HttpServerRequest in service via Quarkus

I'm trying to inject HttpServerRequest in service, but it always be null. @Slf4j @ApplicationScoped public class TokenService { @Context HttpServer

Android changing Floating Action Button color

I have been trying to change Material's Floating Action Button color, but without success. <android.support.design.widget.FloatingActionButton android:i

Change color of Floating Action Button from Appcompat 22.2.0 programmatically

I would like to know how to change the Floating Action Button color from the Support library 22.2.0 ? I've tried button.setBackgroundColor(color); but clear

TCP Send Buffer not doing anything

So i am experimenting with socket buffer sizes and have created 2 test cases Case 1[server sends data to client] First we have a server which sends 100 bytes of

What difference does it make to put an annotation @Lob or not?

There is a request table in my database. Here is its structure Usually I created the entity with my hands, but this time I decided to generate it from the data

Android/XML: RelativeLayout design

basically, I don't understand how to use RelativeLayout. I don't know how to design it. I always use LinearLayout with Table inside of it. Now I use RelativeLay

Class is public, should be declared in a file named .java

I'm having this problem which I'm not sure why it's caused. "class Account is public, should be declared in a file named Account.java" I have 5 classes in my

Processing exported application canvas size differs from ide launched application

I have a simple Processing 3 application I just migrated to Processing 4. The old version had some global variables fine tuned for 1920x1080 displays, so while

incompatible types: Myclass cannot be converted to CAP#1 where CAP#1 is a fresh type-variable:CAP#1 extends Myclass from capture of ? extends Myclass

In code I created user defined class Myclass and Myclass2 which extends Myclass and then used in ArrayList<? extends Myclass> as a arguments that means no

How to update chart after selecting item from JComboBox?

I'm trying to change the values of bar chart depending on the selected item from the combobox list. The code below is a short example. The method for creating/u