How to practice \ get started with Selenium WebDriver?

Did he acted on… ?

Suggestion to practice your basic Selenium-Webdriver skills on IMDB.

What is the practice?
When I first started to practice selenium I looked for a cool general-web tasks which will make the learning more fun and interesting.
One idea that came up is to make a script which you can enter actors name and a movie, and it’ll look for the movie in the actor’s page via IMDB, return if movie found and even what character did he/her portray in it.

What are we practicing?


Actually the task helps us practicing basics elements of Webdriver, Find elements, clicks, retrieve data, compare texts are must for the script to work.
At first, you’ll need to reach the Actor’s page, you’ll need to activate Imdb’s search box and find a way to get to the Actors page using the find element function, send keys and clicks.
Saving all of his movies into a list of elements and be able to compare two strings (movie and actor) in order to find a match, pay attention that in order to find match, you’ll need to make some adjustment (for example, so it will be able still to compare lower /upper case).
Of course you’ll need to know how to return the correct data in order for the test to be a SUCCESS! (“Actor was not in that movie” is a proper answer as well 🙂 ).

If you’re into practicing code as well, try to separate the data you retrieve, such as movie name / year / character as three separated pieces of information.
And you can always add more cool ideas and features of your own of course.

Have fun,
Tal Shachar

Tal Shachar is a guest writer for Automind.

For more information about AutoMind and what we do – Click Here

Don’t forget to follow my blog to get new posts live into your inbox

One thought on “How to practice \ get started with Selenium WebDriver?

Leave a comment