Using Java and webdriver, I’m trying to setup a test to verify that the password I type is masked. With my tool, we have a setting that allows you to have the password masked or to show the text. I was wondering if anyone has ever verified something like this with Selenium. Here is what I want to check …
Tag: java
Need an explanation for apparent heap size reduction
From the GC logs, it appears that the heap size is being reduced across young and old generations after sometime. Below are three entries from the logs. {Heap before gc invocations=5: PSYoungGen total 44800K, used 44180K [0x18220000, 0x1b420000, 0x24a20000) eden space 38400K, 100% used [0x18220000,0x1a7a0000,…
commons-net is compatible with ssh-2.0 protocol
i have tried create a project with library commons.net for send via ftp some files. But i created a connection with my server i have received this error. i have followed this article for create my connection, and with official examples i’ve controlled article. my java code here: I do not understand wher…
How to verify an attribute is present in an element using Selenium WebDriver?
I have many radio buttons on my screen. When a radio button is selected, it has an attribute of checked. When the radio button is not selected, the checked attribute is not present. I would like to create a method that would pass if the element is not present. I am using selenium webdriver and java. I know I …
How to change fragments using Android navigation drawer
I know these types of question have already been here but still I have not found my answer for this question: I have created an application and used navigation drawer that has been created AUTOMATICALLY by the app (AndroidStudio) Here’s what I have: And some more here: I want to display another fragment…
Usecase of using AtomicStampedReference & AtomicMarkableReference
I am looking for a example of AtomicStampedReference and/or AtomicMarkableReference, that could help me understand these classes and their functions. I am not able to get any quality examples over the web. I can think of using these in garbage collection, but a quality example will help me understand these be…
Reading data from mysql database using java
Firstly, I’m reading the product name and number of products from user using jTextFields. For that product I read the product id and price from database using sql query. But in the below code I display the product price in a jtextField but while running tha file I get query executed successfully but I&#…
Why do static and instance init blocks in Enums behave differently from those in Classes
In studying for the Java certification test I learned that static initialization blocks run once when the class is loaded, in order of appearance within the source code, that instance initialization blocks run each time an instance is created, and that code in constructors runs each time an instance is create…
what is the use of annotations @Id and @GeneratedValue(strategy = GenerationType.IDENTITY)? Why the generationtype is identity?
Why we are using this annotations? i need to know if this autoincrement my table id values. (GenerationType.IDENTITY) is there any other types whats actually happening when we use this annotation *Is it necessary to extend Domain abstract class?What is the use? Answer First of all, using annotations as our co…
GetWindowTextA, GetWindowText returns empty value on Edit Control
I’m trying to list and get the content of Edit Controls from an external Window in C++ / Java, unfortunately with no success. When I call GetWindowText or GetWindowTextA it returns an empty value on Edit Controls, I know there are some differences between GetWindowText / GetWindowTextW and GetWindowText…