Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to navigate back to the previous page.
Selenium Python
driver.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'forward()' instead of 'back()' to go back.
Using 'refresh()' which reloads the current page.
✗ Incorrect
The back() method makes the browser go back to the previous page in history.
2fill in blank
mediumComplete the code to move forward to the next page in browser history.
Selenium Python
driver.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'back()' instead of 'forward()' to go forward.
Using 'refresh()' which reloads the current page.
✗ Incorrect
The forward() method moves the browser forward to the next page in history.
3fill in blank
hardFix the error in the code to reload the current page.
Selenium Python
driver.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-existent methods like 'reload()' or 'refresh_page()'.
✗ Incorrect
The correct method to reload the current page is refresh(). Other options are invalid method names.
4fill in blank
hardFill both blanks to navigate back and then refresh the page.
Selenium Python
driver.[1]() driver.[2]()
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of back and refresh.
Using 'forward()' instead of 'back()' for the first action.
✗ Incorrect
First, back() navigates to the previous page, then refresh() reloads it.
5fill in blank
hardFill all three blanks to navigate back, forward, and then refresh the page.
Selenium Python
driver.[1]() driver.[2]() driver.[3]()
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order of navigation methods.
Using invalid method names like 'close()' instead of 'refresh()'.
✗ Incorrect
The sequence is: back() to go back, forward() to go forward, and refresh() to reload the page.