Monday, July 18, 2016

AUTOMATION 16 - GUI 4, Selenium WebDriver Installation

Technical level: ****

One of the reasons I started you out on developer tools and TamperMonkey previously was because all these things were relatively easy to get started with.

Our next few pieces will use and explore Selenium WebDriver, which I hope you will follow along with at home - but to do that, you'll need to install a lot of extra software on your system.

Install Firefox browser

We mentioned last time that out of the box Selenium WebDriver works with the Firefox browser - so it's kind of helps if you have it installed.  If you do have it, make sure it's up to date, as I've found compatibility problems if both your browser and WebDriver aren't up to date.

Currently available from here.

Install Java Eclipse

Selenium WebDriver is driven from Java, which means we need to have a Java development environment to make it work.

Currently Eclipse Java Mars is my preferred program for this - and it can currently be found here.

Install Oracle JDK

Eclipse won't work just by itself - it requires a Java development kit installed for the supporting middleware between what you code in Eclipse and your computer.

I always use the Oracle kit from here.

Download Selenium WebDriver

Finally you need to download the WebDriver library from Selenium which is currently here.

There's a huge smorgasboard of stuff there, so it can get confusing (I've actually ended up downloading the wrong thing) - remember you're after the WebDriver for Java, which is here ...




You will need to extract onto your computer - I suggest Documents/WebDriver folder.

When you create a script in Java Eclipse you will need to import these JAR file (Java ARchives) into a library to use them - don't worry, I'll walk you through it.



Next time we'll set up our first project, and run our first manipulation with WebDriver.


Golden Rule

This and the next section, you might encounter difficulties as you go through.  I'm adding help where I've encountered problems (typically my problem is I never read the instructions fully before going ahead and doing something).

However my tried and tested method when I have difficulties is to Google any error message, and work through any message boards and advice which is out there, until I find something.  Turns out most developers do the same thing!

My point being, if you are having problems, don't give up at the first hurdle.  Here's another post showing similar instructions.

If you're seriously struggling, drop me a line on Twitter, and I'll see if I can help.  Although be prepared for ...


16 comments:

  1. It fun to have a content like this really worth to read it
    AWS Training

    ReplyDelete
  2. Excellent Post. Also visit Intellipaat

    ReplyDelete
  3. Nicely explained. Here you described the well written article from your in-depth knowledge. Truly impressive and nice information

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training JavaEE Training in Chennai Java EE Training in Chennai

    ReplyDelete
  4. Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    Selenium Training in Chennai

    ReplyDelete

  5. จีคลับ Gambling games that you can play every day.

    จีคลับ Online casino gamblers are allowed to play regularly. Full of selected gamblers. There is a lot of investment. Where to Play Where to Bet I came to play it. Give more return. Complete with various online bets. The higher the profit, the easier it is to play gambling, it can be played on a daily basis.

    When an investor invests in online gambling services on our site, the player will experience the online gambling game that defines our website. Online gambling games that will provide fun and exposure to online gambling.

    There is a simple play, no matter how you play. It can always be played at all times, guarantee that when you come into contact with gambling will make a good play and full with the bet is filled with the number one investment. It is easy to play with our standard online casino betting site. You will not be disappointed with the investment that we have to open it for you. บาคาร่า

    ReplyDelete
  6. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    RPA Training in Chennai
    Selenium Training in Chennai
    RPA Training
    RPA Training Institute in Chennai
    Selenium Training Institute in Chennai
    Best selenium training in chennai

    ReplyDelete
  7. Nice Article,Great experience for me by reading this info.
    thanks for sharing the information with us.keep updating your ideas.
    AWS Courses in T nagar
    AWS Course in Anna Nagar
    AWS Course in Bangalore

    ReplyDelete
  8. good work done and keep update more.i like your information's and
    that is very much useful for readers.
    German Training in Guindy
    german language training institutes in bangalore
    german courses in bangalore

    ReplyDelete
  9. Hi,
    I must appreciate you for providing such a valuable content for us. This is one amazing piece of article. Helped a lot in increasing my knowledge.
    Android Training in Chennai
    Android training
    Android training near me
    AWS Course in Chennai
    AWS Certification Training in Chennai
    AWS Training near me

    ReplyDelete