By calling the method 'isSelected' on RadioButton object, we can check whether radio button is selected or not.ExRadioButton button1 = new RadioButton();button1.setText("Radio Button1");butt… Read More
By using 'setGraphic' method, you can add graphic icon to the radio button.ExRadioButton radioButton = new RadioButton();radioButton.setText("Java");/* Add an image to radio button */InputSt… Read More
By using 'ToggleGroup' instance, we can group the radio buttons. If you add 'n' radio buttons to a group 'group1', then at a time one radio button of that group will be selected.ExToggleGrou… Read More
By using 'setToggleGroup' method of ToggleButton class, you can add toggle buttons to a group. At any point of time, you can able to select only one toggle button from a specific group.ExTog… Read More
By adding a ChangeListener to 'toggleGroup' we can receive the events on change in radio button selection.ExtoggleGroup.selectedToggleProperty().addListener((ObservableValue extends Toggle&g… Read More
By using 'setSelected' method of CheckBox class, you can select the check box by default.ExCheckBox checkBox1 = new CheckBox();checkBox1.setText("Chess");checkBox1.setSelected(true);Find the… Read More
CheckBox class provides below constructors to create check box instances.public CheckBox()public CheckBox(String text) ExCheckBox checkBox1 = new CheckBox();checkBox1.setText("Chess");CheckB… Read More
We can style toggle button widgets using style sheets.Below step-by-step procedure explains, how to set the styles to ToggleButton using style sheets.Step 1: Put all the css styles in a file… Read More
By adding a change listener to checkbox, you can keep track of checkbox state changes.ExcheckBox.selectedProperty().addListener((ObservableValue extends Boolean> ov, Boolean old_val, Bool… Read More
CheckBox can be either in defined (Selected/notSelected) (or) undefined states. You can able to select/unselect the checkbox, when the checkbox is in defined state. You can't perform select/… Read More
ChoiceBox class provides below constructors to create choice box widget.public ChoiceBox() public ChoiceBox(ObservableList items)ExChoiceBox choiceBox1 = new ChoiceBox();choiceBox1.setItems(… Read More
By creating a Separator object, you can add separator between elements of ChoiceBox.ExSeparator SEPARATOR = new Separator();ChoiceBox choiceBox1 = new ChoiceBox();choiceBox1.setItems(FXColle… Read More
By calling 'setTooltip' method, you can set the tool tip to choice box.ExChoiceBox choiceBox1 = new ChoiceBox();choiceBox1.setTooltip(new Tooltip("Select the language"));choiceBox1.setItems(… Read More
TextField class provides below constructors to create TextField widget.public TextField()public TextField(String text)ExLabel name = new Label("Enter Your Name:");TextField nameField = new T… Read More
By adding change listener to ChoiceBox, you can set the behavior to choice box.ExchoiceBox1.getSelectionModel().selectedIndexProperty().addListener((ObservableValue extends Number> observ… Read More
By using 'setPromptText' method of TextField object, you can set the prompt textExTextField userName = new TextField();userName.setPromptText("Enter your name");Find the below working exampl… Read More
By adding change listner to scroll bar, you can catch the events of scroll bar.ExscrollBar.valueProperty().addListener((ObservableValue extends Number> ov, Number old_val, Number new_val)… Read More
How to create scrollbar?ScrollBar class provides default constructor to define scroll bar instance.ExScrollBar scrollBar = new ScrollBar();How to create horizontal (or) vertical scrollbar?By… Read More
JavaFX provides PasswordField class, it is specialized implementation of text field, it hides the characters typed by the user.How to create password filed?PasswordField class provides below… Read More
TextField class provides 'clear' method to clear the information entered in text field.Find the below working application.LoginForm.javapackage com.sample.demos;import java.io.FileNotFoundEx… Read More
TextField class provides getText and setText methods to process text field data.Find the below login form example. Enter user name and password fields in the login form and click on the Sign… Read More
By using 'ScrollPane' class, you can create a scroll pane.ExScrollPane scrollPane1 = new ScrollPane();scrollPane1.setHbarPolicy(ScrollBarPolicy.ALWAYS);scrollPane1.setVbarPolicy(ScrollBarPol… Read More
By using 'setHbarPolicy' and 'setVbarPolicy' methods, we can set horizontal and vertical scroll bars.ExScrollPane scrollPane1 = new ScrollPane();scrollPane1.setHbarPolicy(ScrollBarPolicy.ALW… Read More
By adding change listener to ScrollPane, you can handle the events on scroll pane.ExscrollPane1.vvalueProperty().addListener((ObservableValue extends Number> ov, Number old_val, Number ne… Read More
When we are holistically following DevOps and Automation techniques in our project then we come at the stage where our automation test case become so huge in number that ultimately it requir… Read More
We have already discussed in detail about the configuration of the Selenium Grid with the command line. That previous post is the well-described post which covered all the perspectives of th… Read More
1. Introduction
In addicts there are available multiple tutorials that teach how to use and configure Selenium. It is easy that we are often presented as a requirement to run the web ap… Read More
1. Introduction
PowerMock is a framework that extends both EasyMock
and Mockito,
complementing them and adding the possibility of:
mock up invocations to static methods,
mock class… Read More
1. Environment
This tutorial is written using the following environment:
Hardware: Intel Core 2 CPU T7200 @ 2.00GHz x 2
Operating System: Ubuntu 12.04 LTS x32
netBeans IDE 7.3
2. Introductio… Read More
In the last tutorial, we discussed running test automation with a headless browser. Whether it is physically installed browser in the system or headless browser, WebDriver will fetch all the… Read More
1. Introduction
After the introduction to Apache Solr ,
in this tutorial we will study how to index documents and retrieve them from the index, making use of the javasolrj api… Read More
1. Introduction
We saw in the tutorial Introduction to Selenium 2 and WebDriver how to launch integration tests on a web application. We saw that the WebDriver API can make us… Read More
1. Environment
This tutorial is written using the following environment:
Hardware: Mac Book Pro 17 “Notebook (2.6 Ghz Intel Core
i7, 8 GB
DDR3)
Operating System: Mac OS X Snow Leopard… Read More
socket.io-java-client and node.js - Error while handshaking
Problem
I'm trying to develop an android application which will connect to the node.js server. Here's error msg:
04-28 14:24:52… Read More
Selenium Automation has been trending over the internet for the past decade and has gained a lot of popularity among the Automation testers. Since selenium tests can be written in many langu… Read More
We have already discussed all the Appium basics required before running the Appium test on Android mobile browser. In general, we use Google Chrome on Android so in this tutorial we will lea… Read More
I would like to inform you that I am traveling while writing this blog post, Hope it will be completed in 1 hour 40 minutes flight journey. The main tutorial will be started after a few trav… Read More
SocketIO exception while using Android client for socketIO
Problem
I am building an Android chat application. I am using nodejs at server end and trying to implement android client for sock… Read More
DevOps is the current trend in IT for faster delivery of the ready product. During the whole pipeline process, automated test for desktop application will start automatically at the CI serve… Read More
Introduction to JEditorPane
JEditorPane class in java is used to display text components that can handle different types of text with style. By default, it can handle only HTML, plain… Read More
Originally, Selenium WebDriver meant for automation testing of web UI or simply GUI testing. Later on, different developers came and further implemented the WebDriver to achieve different pu… Read More
The beauty of Appium for mobile testing is that its tests can be written in any programming language including Python, Ruby, Java, JavaScript and C#. While we have covered extensive Appium t… Read More
Class MalformedURLException in Java MalformedURLException is common exception classes in java when working with a network and is thrown from an application to indicate that a malformed URL h… Read More
'StandardCharsets' class provides all the standard character encodings supported by Java. As per java specification, charsets provided by this class are guaranteed to be available on every… Read More
Below snippet takes a url and convert the query parameters to Map.public static MapgetQueryParamsMap(URL url) throws UnsupportedEncodingException {if (url == null) {return Collections.EMPT… Read More
Accessing Image Links
In this tutorial, we learn about Handling images using Selenium Webdriver. Image links in web pages are the links that represent an image. When we click an image it nav… Read More
How to parse web Page by using JAVA HttpsURLConnection : Parsing a web page is very important aspect in an any programming language. Java provide HttpsURLConnector library to connect websit… Read More
Definition of Java URLEncoder
Java URLEncoder is a utility class that supports for the HTML form encoding. Form of HTML becomes more reliable and stable using the URLEncoder class utility o… Read More
What is Desired Capabilities?
Desired Capabilities are a set of properties used to configure the driver instance of Selenium WebDriver. It is the component of the org.openqa.selenium.remo… Read More
Introduction to Class MalformedURLException in Java MalformedURLException is common exception classes in java when working with a network and is thrown from an application to indicate that a… Read More
What is Selenium Grid?
Selenium Grid is a testing tool which allows us to run our tests on different machines against different browsers, operating machines in parallel. It is a network f… Read More
Introduction to Java Authenticator
The java authenticator class is used to perform authentication for network connection. The java authenticator class is a built-in class in java. The authe… Read More
In this post, I am going to explain why you should be cautious while using the equals method of URL class. How URL equals method works? As per the Java documentation, equals method do… Read More
Introduction to Java for Automation Testing
Java programming language has an open-source framework for unit testing, and it is one of the frameworks used by java developers for creating and… Read More
All About Class URL in JavaClass URL represents a uniform resource locator-a pointer to a resource on the world wide web such as webpage or FTP dire… Read More
Posted on Jun 13 • Originally published at debugagent.com Everything Bad is Good for You is a pop culture book that points out that some things we… Read More