0% found this document useful (0 votes)
175 views18 pages

Hacker Rank Tutorial Walkthrough v2

Uploaded by

Nicolas Maranesi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
175 views18 pages

Hacker Rank Tutorial Walkthrough v2

Uploaded by

Nicolas Maranesi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HACKER RANK

Selenium Challenge - Walkthrough


SELECT MODE

1) Select mode.
Recommended to use
default: Online IDE

2) Click ‘Continue’
and fill out your
personal info
START TEST

Click on ‘Go to Test’


button. This will start
the timer (90 minutes in
this example)
SOLVE CHALLENGE

1) You will land on EXTRA:


You can see your remaining
this page with the time here
list of challenges
you are required to
complete.

You can decide


which challenge to
take first

STEP 2:
Start Selenium
challenge
STARTING THE SELENIUM CHALLENGE

3) File/class that you are


required to complete will be
displayed as a Tab in the
online IDE
1) Challenge instructions will
be displayed on this area
2) Online IDE will be
launched.
Terminal will display
background processes (such
as automatically
downloading dependencies,
etc.)
STARTING THE SELENIUM CHALLENGE

4) After some seconds, all


necessary dependencies
should be installed.
SWITCH BETWEEN IDE SECTIONS

Whenever you want, you can switch between 5 different menus inside the online IDE:

1) Question Description: See instructions


2) Explorer: See all folders, files, classes
3) Search: Search and replace functionality
4) Run and Debug: Debug functionalities (require set up)
5) Testing: Run your tests (already declared)
SECTION #1 QUESTION DESCRIPTION

This section provides the challenge instructions,


including required tasks, files to update, and all
essential details to get started.

Read the instructions carefully before proceeding.


SECTION #2 EXPLORER

Displays all the files & folders inside the solution.


Here you will find the tests (read-only), the class that you
are being asked to complete, as well as the source code
(HTML) of the page that you are automating.

Always look for the HTML of the page you are


automating in order to see the web elements
along with their attributes/locators.
SECTION #2 EXPLORE PAGE HTML
SECTION #3 SEARCH

Search and replace functionalities.

Allows you to search for a specific string, code


variable, method name, etc.
SECTION #4 RUN AND DEBUG

Customize run & debug functionalities.

This is not setup by default, you have to


manually configure it. Suggestion is to skip
this and run from next menu or via CLI.

You can run your tests from


the “Test” menu or from the
terminal with the commands
provided in the instructions.
SECTION #5 TESTING

After building your solution you will see the tests


here.

You can also run them from the


terminal (CLI) using the commands
provided in the instructions.
SECTION #5 TESTING

You will find the test status


here.
The terminal will also
display the results along
with detailed logs.
SWITCH TO DARK THEME

In the upper-right corner


you will find a button that
allows you to easily switch
to dark mode/theme.
SWITCH TO LIGHT THEME

You can also switch back


to light mode/theme.
TERMINAL (CLI)

You can execute terminal


commands to:
• Clean and build the project
• Execute tests
• Install dependencies

The suggested commands are


displayed in the “Question Enter your
Description” section (Instructions command here
screen) and hit ENTER
THANK YOU
Center of Excellence
[Link]@[Link]
[Link]

You might also like