Getting started with Selenium

GETTING STARTED WITH SELENIUM

To start with selenium webdriver, you need to have the following items installed on your machine.
Prerequisite:

JDK (java 1.8 preferable)

Selenium libraries (Nowadays there is single jar ‘selenium-server-standalone.jar’ is enough unlike earlier period where we need to install multiple jars),

Browser drivers (.exe of chrome driver, ie driver, gecko driver)

Eclipse IDE

Now that you have downloaded the minimum required elements to start writing selenium code, so let’s start by setting up the environment:

Now select a java project:

Give the project name and finish.
Now configure the build path where you need to set your downloaded libraries i.e. selenium jar files, also need to set JDK and JRE path in the java compiler section. Right-click on your project and build path and configure build path.

Now select the libraries tab above and click add external jars. Add your downloaded selenium jars here:

Also now don’t forget to set your compliance level as per your JDK and JRE version.
For all your latest version of selenium, make sure the compliance level under the java compiler section must be set to java 1.8 or above. Ignoring this might lead to a “class not found” run time exception during running your selenium test script.

Now that you have set libraries and compliance levels, it’s time to write your first selenium code using java.
Right-click on your project and select create a new class.

Give it a name, check “public static void main..” , click finish. You are creating a sample test, where we are not using any testNG, cucumber, or maven therefore we need to include public static void main in our first class to run the test as the java execution will begin through the class where the main method is defined. In subsequent lectures, when we use testNG, cucumber, Maven, we will not use or include the main method as our execution will be taken care of by testNG or cucumber.

Now it’s time to write our first test script which simply opens the browser and navigate to the site specified in the script. We’ll write the code and understand the meaning of each one of them.
In our class, first include the required packages and classes which come with selenium libraries.

Now at class level, that is inside the class but before the main method, declare a webdriver instance variable:

Webdriver driver;

Now inside our main method, write code to set system property:

Here setProperty method is accepting two parameters in the form of key and value. The first one is the string parameter in which we are telling that we are going to use a chrome driver, and the second is also a string parameter where we are placing an entire path till the driver’s exe.
Now in the next line, we’ve initialized the driver with chromeDriver. This piece of the line will open the chrome browser upon execution. Now our browser is open, and we want to navigate to any site. This task will be done by driver.get(“”); method. So driver.get(“”) will land us to the specified URL.

INTERVIEW TIP: Why we cannot write Webdriver driver=new Webdriver();

Since webdriver is an interface therefore we can create its instance variable but cannot create its object. i.e. we cannot write Webdriver driver=new Webdriver(); this will throw error. We can rather write Webdriver driver =new FirefoxDriver(); or Webdriver driver=new ChromeDriver(); or Webdriver driver =new InternetExplorerDriver(); These FirefoxDriver, ChromeDriver, and InternetExplorerDriver are the actual classes which implement the webdriver interface and provide implementation to its methods. So we are assigning the instance variable of webdriver to its implementation classes.

SUMMARY

In this lecture, we’ve installed basic minimum items required for running and executing our first selenium script. We’ve installed JDK, eclipse, selenium libraries, drivers exe’s for browsers. We’ve created a java project, set all the libraries in our project’ build path, created a class, and imported the packages and classes needed to execute our test script. We’ve written the code to set system property, initialized our driver object, open the browser, and finally lands at the site specified in the driver.get(“”).

How To Lower Down Blood Pressure With Herbal Hypertension Remedies?

Diet and exercise plays a great role in maintaining normal blood pressure. Hypertension is one among the main health issues seen among old age people. If left untreated, this health issue can lead way to many problems like heart diseases. Here we are going to see how to lower down blood pressure using herbal hypertension remedies. Basil is one among the effective herbal remedies to treat hypertension. Today, many among the herbal products used for the treatment of hypertension are added with basil extract as a key ingredient.

High amount of antioxidant is one among the main features of basil. Apart from antioxidants, this herbal remedy is also equipped with antimutagenic and antiviral properties. If possible, make it as a habit to include basil leaf extract in daily diet. Today, you can also avail green tea powders from market with basil leaves as a key ingredient. Cinnamon is another herbal remedy to reduce the risk of hypertension problems.

As per studies, cinnamon powder is found to be as a source of magnesium compounds. In order to get effective result, feel free to use this herbal remedy in the diet foods that you prepare and consume. Cardamom, one among the common spices added for the preparation of herbal products is another cure for hypertension. It helps in relaxing blood vessels and treats health issues naturally. To get effective result, it is advised to make use of cardamom powder in daily tea that you consume.

Hawthorn is one among the effective herbal remedies to treat hypertension problems. As per studies, this herbal cure is found to be as a safe ingredient in many of the Chinese medicines. Improving cardiovascular health is a key feature of using hawthorn. It increases blood circulation and reduces the risk of many health issues. At present, you can easily get hawthorn products in the form of capsules and liquid extracts from market. You can also make use of this herbal cure in green teas that you prepare.

Celery seed is another safe cure to lower the risk of hypertension troubles. As per studies, compounds in celery seed are found to be enriched with cardioprotective properties. Diuretic property is another key feature of celery seed. If you are in search of a safe way to reduce high blood pressure troubles then never hesitate to include celery seed in daily diet. Stress is found to be as a main cause of hypertension troubles. You can alleviate this difficulty by making use of lavender oil in daily life.

Massaging with herbal oil is one among the best ways to reduce the risk of hypertension problems. It relaxes nerve cells and reduces the risk of health issues safely and naturally. Including hibiscus tea in daily diet is another safe cure to treat health issues like hypertension troubles. For the best result, it is advised to drink a cup of hibiscus tea daily in the morning. Stresx capsule is one among the best sold products to reduce high blood pressure problems. You can make use of this herbal remedy twice per day.

The Many Benefits of Care at a Chiropractic Clinic

There has been a growing trend in chiropractic care in the medical field. The reasons for the upward trend of chiropractic for some time now lie in the concept of chiropractic procedure itself. Unlike other types of clinical treatment, the chiropractic treatment procedure is centered on awakening the body to heal itself using its natural ability.

What are the benefits of chiropractic?

Bodily dysfunction is not exclusive to anyone irrespective of status. Since physical changes can happen to any age grade and sexual gender, that implies that anyone can also benefit from chiropractic treatment. The central concept of chiropractic is built on the medical procedure that aids the body to develop healing agents within the body to heal any form of health challenges.

The human body has an inherent capability to heal. On the other hand, Cape Girardeau Chiropractor provides relief from any form of pain, discomfort, and dysfunction. For anyone to feel comfortable and active in carrying out day-to-day responsibilities, the body system must be perfect. However, it won’t be easy to get the body to perform at an optimal level with body dysfunction. It is so because any attempt to use any part of the body with a damaged area or change in the nerve system can lead to immeasurable pain and discomfort.

Benefits of beginning care at a Cape Girardeau Chiropractic Clinic are as follows:

Chiropractic helps the body to stimulate healing mechanisms within the body to aid fast recovery.
It prevents future injury.
Chiropractic eliminates any forms of pain or soreness within the body.
It aids the distribution of oxygen and nutrients to different segments of the body timely.
Chiropractic reduces muscle spasm
With chiropractic clinics, the rate of lactic acid in the body can be eliminated or reduced drastically.
A chiropractic clinic is also known to improve the circulation of blood with the body system.
It is more relaxing.
Combination of Chiropractic and Common Sense

The best way to achieve optimal results from chiropractic is to combine its usage with that of natural techniques. The reason for this approach is because most chiropractors believe it will enable your body system to respond timely to chiropractic care.

To improve the efficacy of your chiropractor, you must arrange your daily activities in such a it incorporates some elements of physical activities like jogging, running, and swimming.

Below are some of the physical activities you should engage your body:

Ensure your body is hydrated at all times.
Always a healthy nutritional diet.
Engage in early morning and evening exercise.
Patients review from those who have undergone chiropractic care includes:

Clearer and sharper vision.
Improvement in digestion function.
Improvement in breathing.
Patients attained improved vitality.
Improvement in overall health.

Conclusion

Chiropractic care is good for overall human health management. It enables the body system to awaken the body system to develop the ability to heal itself. This medical care procedure has many advantages over surgical operations. Once a patient receives the first correction, the journey to total health recovery begins without delay.

However, some cases might be different. Patients with chronic issues may experience slower health recovery. In most serious cases, some patients with chronic health history may experience body aching and slight soreness due to their body readjustment to balance back to normal. It is also part of the recovery process and most associated with severe cases. It shouldn’t take the body much time to initiate the recovery process and restore normalcy to the body.