'Let's Automate' Google Search Web GUI with Selenium WebDriver and Java - a 'How To' Case Study

preview_player
Показать описание
A short case study showing how we can start to automate Google Search via the GUI using Selenium WebDriver and Java.

Also, I'm only showing you how to do this, so that you don't have to. Find some other applications to automate instead of Google Search.

*************

In this video we:

- import JUnit and Selenium WebDriver 3 as dependencies
- Use Chrome dev tools to investigate the page to support automated
- start the browser
- navigate to the search page
- type search query
- press the search button
- extract results from the page
- demonstrate using the dev tools to find elements with CSS selector queries
- discuss some pros and cons of automating 3rd party apps
- debug and evaluate Java Code

*************

- link to setup webdriver on windows

- link to setup webdriver on Mac

The github repo containing the source code for this video is:

*************

Рекомендации по теме
Комментарии
Автор

Hi @EvilTester,
After typing test there are four suggestions shown in list, If i want to select 4 option what is the process?

akulajyothi
Автор

Hi @EvilTester
Can you please let me know if you got the solution for ahreaf thing faced above ? if you have uploaded any video for this. it would be helpful to receive link.

gauravbhatt
Автор

Hi Alan, big fan of your stuff! Might be a silly question, but when you wrote the first test which just opened google and closed window, why did you have the system.out.println in there?

jamesvickery
Автор

hey quick question there's actually two buttons that have the same name how can i troubleshoot this? :)




Exception in thread "main" no such element: Unable to locate element: {"method":"name", "selector":"btnk"}

rfullo
Автор

If i want simple Java app to automate some keys strokes using Selenium, but not for testing, can i follow same procedure and omit any testing annotations to create a Java app?

TheDatasmith
Автор

How can I automate voice search by sending an audio file to google assistant and google assistant providing me results by reading audio file

balwantbirajdar
visit shbcf.ru