I’m automating Android apps using Selenium-Appium (Java) and I got some difficult to address the following need: I have an element that doesn’t have any of ID or ACCESSIBILITY ID configured. But I’ve noticed that its value is a fixed pattern, a date, like “dd/MM/yyyy”. So, I need…
Tag: java
Caliing the getContentStream() function in FileNET/CMIS Web Services
I am attempting to call the getContentStream() function in the FileNET/CMIS SOAP/web service. It takes 2 required parameters, a String for the repositoryID, and a String for the documentID. The rest of the parameters are optional. The method signature is this: org.oasis_open.docs.ns.cmis.ws._200908.ObjectServ…
How to convert RGB color to grayscale in Java
I’m trying to create a method that converts a given java.awt.Color color to grayscale. Here’s what I have right now: However, when I call this method, it seems to be returning the color black every single time, regardless of the input color. How do I fix this? Answer The float components are in th…
if statement not working to add 1 based on a condition
This code determines the wins and losses of each quarter but I am having trouble with the PerfectQuarter. A PerfectQuarter is described as when one team has 0 points in a quarter but the other team scores. Everything runs fine but when I enter scores for each quarter and put 00-01 for quarter one, the print s…
How to get the only PDF url from web page?
I am trying to get some DOM elements using Selenium and I am doing all of this using Java but I am getting this Error when trying it out: I am still a newbie in all this but the code I am using to retrieve the DOM element is: I believe the error is that it cannot find the XPath
How to store ZonedDateTime of java in TIMESTAMPTZ in oracle?
I want to store the ZonedDateTime in TIMESTAMP WITH TIME ZONE datatype in oracle. If I am trying to store string directly as a String it throws not a valid month. then I found that I can convert it to the TIMESTAMPTZ in java then store because we need to convert the string to TIMESTAMPTZ and its throwing erro…
How can I copy the elements on an array into another array with a different size?
I’m working on a project with arrays. I’m using a method that adds values to an array of size 20. I’m supposed to be able to change the size of the array while also transferring values from the previous array into the new array. I used Array.copyOfRange which should work but for some reason …
Get value of BigDecimal created from string [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question I have created a BigDecimal with a scale of 2 like How can I extract the value of the bigdecim…
Why Can’t read data From Database Firebase?
I store name information that was working a few days ago and the information is stored on firebase Realtime, and now you don’t do it, and nothing goes to Database. in my dependencies i Used and in build Gradle (project) Answer In comments we find a problem, you need to add another one SHA-1, or change e…
remove specific legend apache poi excel graph XDDFChartLegend
i am using apache poi 5.0.0 version i have generated a graph in excel using the data and i am able to see the legends in the bottom of the graph. There are six legends shown. Now i want to remove two specific legends without removing them from the graph. There seems to be no functions available in XDDFChartLe…