How to read JSON file in Java

If you are using Java maven project below are steps.

1. Open pom.xml file and add below dependencies.

2. Create a java class and use below code

3. Run the Java class.

How to execute Javascript DOM capabilities in Java automation

1. How to open another tab and switch to it.

2. How to get the value of CSS locator from a DOM in the console

3. How to run any CSS or XPTH locator on the console using querySelector

How to get the YAML data and use it in Java

1. Create a YAML file. Below is the example

OnBoardingActivity:
getStartedButton: getStarted_btn

GetStartedActivity:
phoneNumberEditText: phone_number_layout
continueButton: send_sms

android: studio

2. Download snakeyaml jar file.
3. Create a java file.

Run the program. Below is the output
studio
{getStartedButton=getStarted_btn}
getStarted_btn