Selenium: Easy Guide to Automated Functional Testing Development with WebDriver, Autoit and IntelliJ | Claudiu GURA | Skillshare

Playback Speed


  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x

Selenium: Easy Guide to Automated Functional Testing Development with WebDriver, Autoit and IntelliJ

teacher avatar Claudiu GURA, Course Creator, IT Professional Expert

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Lessons in This Class

42 Lessons (3h 40m)
    • 1. Course Promo and Introduction

      2:35
    • 2. Functional testing automation Architecture

      3:02
    • 3. Install Java SDK

      7:19
    • 4. Selenium WebDriver and client components setup

      6:52
    • 5. Install Autoit automation components

      4:17
    • 6. Install and configure IntelliJ IDEA Community Edition

      7:24
    • 7. Configuring the Internet Explorer browser and development environment

      1:47
    • 8. Setup Section Summary

      0:50
    • 9. Intro to the Basics Section

      0:55
    • 10. HTML programing core; working with web page structure

      13:52
    • 11. Java programing core; create basic java programs

      14:33
    • 12. DOM, XPath and CSS selectors core

      7:51
    • 13. Challenge and solution. Basics section summary

      2:30
    • 14. Intro to the First Steps Section

      0:37
    • 15. Loading the Selenium libraries in the IntelliJ Java Project

      4:17
    • 16. Creating Your First Automation Project

      12:51
    • 17. Intro to Hyperlinks Automation Section

      0:46
    • 18. Selenium Hyperlinks Automation with samples

      10:13
    • 19. Challenge and solution. Hyperlinks automation section summary

      3:19
    • 20. Introduction to Input text fields automation Section

      0:48
    • 21. Selenium Input Text Fields Automation with samples

      8:10
    • 22. Challenge and Solution. Input text fields automation section summary

      5:24
    • 23. Introduction to Select Lists Automation Section

      0:44
    • 24. Select Lists Automation with samples

      9:18
    • 25. Challenge and solution. Select Lists Automation section summary

      3:23
    • 26. Introduction to Radio Fields Automation Section

      0:47
    • 27. Radio Fields Automation with samples

      7:02
    • 28. Challenge and solution. Radio Fields Automation section summary

      3:14
    • 29. Introduction to Checkbox Fields Automation Section

      0:49
    • 30. Checkbox Fields Automation with samples

      6:20
    • 31. Challenge and solution. Checkbox Fields Automation section summary

      4:27
    • 32. Introduction to Secure Access and Popup Login Automation Section

      0:49
    • 33. Secure Access and Popup Login Automation with samples

      12:33
    • 34. Challenge and solution. Secure Access and Popup Login Automation section summary

      4:32
    • 35. Introduction to Assertions Section

      0:43
    • 36. Easy way to approach Assertions with samples

      8:00
    • 37. Challenge and solution. Easy way to approach Assetions section summary

      3:36
    • 38. Intro to the Case Study: Create a Real Website Project Section

      0:47
    • 39. Sketch Your Project!

      7:00
    • 40. Create a Real Functional Testing Automation Project

      7:54
    • 41. Project Challenge and solution. Case Study: Create a Real Functional Testing Project

      4:42
    • 42. Bonus: Working with Edge, Chrome and Firefox. Selenium Multibrowser Automation

      13:09
  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.

598

Students

1

Project

About This Class

Selenium WebDriver, Autoit and IntelliJ: Easy Guide to Automated Functional Testing Development

This class teaches you Selenium WebDriver from scratch with clear samples of how to use Selenium WebDriver to automate functional testing on a wide variety of browsers.

I will be more than happy to provide one-on-one support, or add lessons to the course to answer any of your questions on this matter.

So, there's no reason to hesitate! You can basically try the course for free, and see if you learn anything.

I can't wait to see you in the class!!

This class also includes lectures on:

-Case Study Create a Real Functional Testing Automation Project using Java in IntelliJ IDEA Community Edition together with:

-Functional Testing Automation Architecture
-Complete Environment Setup
-First Steps with Selenium Webdriver framework

-Hyperlinks Automation
-Input text fields automation
-Select lists automation
-Radio fields automation
-Checkbox fields automation

-Secure access and popup login automation by combining Selenium Webdriver and Autoit

-Easy way to approach assertions
-All the source codes and clear samples ready to be downloaded and used!

I can't wait to see you in the class!!  Please enroll now or tell to your friends about this great class!

What my students are saying:

Bunghiuz Raluca-Catalina: "I liked this course because even if I am a beginner with Java and Selenium, by following the steps provided in the course, now I'm able to do my first automation scripts. Also the lessons regarding the intro to XML, Java and search method by DOM, xpath and css where very helpful. I believe that this course is a very useful resource for those who want to move to automation testing."

John Coleman: "It is a good course overall as it is quite comprehensive and easy to understand. I learned the basics about how to create Selenium Webdriver Java automation from scratch and how to apply them in a real website. The instructor is encouraging and is right on point. Thank you Claudiu for putting together the insightful course with many helpful examples and for offering them for free."

Thank you!

I can't wait to see you in the class !!  Please enroll now !


*All product names, logos and brands are property of their respective owners

Meet Your Teacher

Teacher Profile Image

Claudiu GURA

Course Creator, IT Professional Expert

Teacher

Hello, I'm Claudiu.

See full profile

Class Ratings

Expectations Met?
    Exceeded!
  • 0%
  • Yes
  • 0%
  • Somewhat
  • 0%
  • Not really
  • 0%
Reviews Archive

In October 2018, we updated our review system to improve the way we collect feedback. Below are the reviews written before that update.

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.

Transcripts

1. Course Promo and Introduction: Hello. This is Claudio, your instructor for the scores. Welcome to selling him with driver Auto it and the intelligent Easy Guide Toe Automated Functional Testing Development course. That's him A few words about myself. I worked on many courses Seaside Start United Technology Area in 2000. I have a strong experience in developing solutions and programming area. There's a relevant example here. This year I was involved in a big project having high pressure on timeline in resources to implement robust functional testing solution. In this project to develop functional tests, I followed mainly the steps I am proposing in the scores. I'm so excited that you are here because I really believe that this scores will help you to get the necessary skills. In order to be able to create automated functional tests and get more money in this video, I just want to talk a little bit more about the scores and the interesting things that are waiting for you. I am going toe teach you Silin with driver from scratch with clear examples on how to combine selenium and also its components to develop Java based automatic functional tests off multiple browsers such as Internet Explorer age Google, Chrome or Firefox. I know that is not very easy to start and develop automation, but based on my experience, I'm confident that you will be able to succeed every time you need support. I'm here to help you and to provide the most appropriate advice. I'm going to be your personal trainer for this next functional testing automation projects . Thank you for choosing the sports. 2. Functional testing automation Architecture : hello and welcome to the functional testing or commission or picture lesson. No, we'll see the solution. Architecture that will help us to create functional testing automation. What we have in here on the right side on the browsers, mainly used by our customers toe navigates through their application. In the middle, we have Cillian Web driver, which is the say, the core component in our solution. What we see in here is that we are having specific components off Cillian Web driver for different browsers such as Internet Explorer, Chrome or Firefox. In this example, on the left side is the programmatic part is the Java client off selenium that by using intelligent e will allow us to develop specific code specific programs in Java toe initiate requests through with drivers in to see the responses directly in the Web browsers. Other components in our solution are also it editor or ah, photo it Automation in general, which is used together with some other standalone components or photo it toe, make Xterra actions, for example, to make an external a gin in a webpage. As we will see during this course, what is important to mention here is that Cillian clients are not only for Java. You can write some civilian clients using Fight On or C sharp, for example. Let's see No, the key components off our solution. So it's selenium client. In our course it is. It is Java based intelligent E as environment to develop the code for functional testing automation, CNN Web driver, the core component off our solution. We're using one component specific for Internet Explorer, but also for the other browsers. As we'll see browser before brother we're using is the most popular one Internet exploder. And then although it tools for handling except elections. As I mentioned external begins or other stuff. If you have any questions, please ask them now in the course form, I will try toe answer as soon as possible to them. Thanks for watching. See you in the next lesson. 3. Install Java SDK: welcome. In the next lesson, I will teach you how to install. Job is decayed. Some points will address in this lesson why Java is the key. How to download Java is decay. How can we install it on Windows or other considerations on installing on other operating systems, such as Lennox or other White Joe? Easy key. A few points I have to mention out. Joe is the most popular programming language is very robust. It's quite easy to use it. And also he's having a important set of libraries that allow us to develop Java programs. It is about Gervais decay, and very important to mention is that this software is available. Cross platform. We can run it on Windows on Mac or on Leno's machines without any problems. Let's try toe Don't know. Java is decay. It's free to use. We can Donald be directly from this address for our platform. Either we are discussing about we knows or Leno's. Let's try to do this, not an adoption toe. Get the Donald link for Javaris Dickey is to use a search engine such as being okay and forced link. It's about Joey's decay, okay? And from here we'll choose. Job eight is decay so very important? We'll have to accept the license and then we'll choose a version that is specific to our operating system. I have Window 64 but if you are not sure or if you have Window 32 beats, we have to choose this one diversion. With I 5 86 I'll choose the one with x 64. I'll pose for a minute to download the file. Now that download is finished and I can open the folder. So what I have in here is the software that I've downloaded after I managed to. Donald, The file for Java is decay. We see what's happened next. Okay, so who have to install it on Windows? What is important to see is that the complexity off this software installation is quite low . Once the installation is done, we have to create a system viable called Java whom So let's do this together, Okay? DoubleClick Well, except these. Now, the software, uh, will be installed next in the screen. We can accept directly dislocation. It's important to remember C program files. Java is decay. Next, and then the standard installation process will be followed. I suppose for a minute. Just a fish this but on the set up is requesting us to install the Java runtime environment . This part is use only to run Java programs. Once everything is done, we can close this window. Next point is to create Java home variable. Let's see how you can do this in the Windows Explorer right click on this PC properties. Then with the Advent system settings and vitamin variables and on the lower part on the system variables, you have to add a new variable called Java Home. So click New John home and on the Value we Can Bro's for the directory. If remember, during the installation we've selected, see Program Feiss. If you're having 64 beats, otherwise we can choose program five x 86. So I'll select program fires. And then here it's Java. After these step, I was like the Java is the key 1 44 the one I've just installed. Okay, And then Okay. And finally Okay, we can close this window. That's all for setting the job available. Other considerations. If you're running Linux for operating systems by following this link, we can select other versions off Javaris Decay, and from there you can try to download appropriate file. Let's try to do this for this, uh, address. We can download visions for Lennox. We're make Solaris for Windows as well as you have seen, It is important to mention that the installation steps are specific for operating system. So if you're running Lennox, we have toe run specific scripts for Lennox operating system. If you have any questions, please ask them now in the course forum, and I'll try to answer as soon as possible to them. Thanks for watching. 4. Selenium WebDriver and client components setup: welcome to this lesson. No, you learn Selena with driver inclined components. Set up points will address in this lesson. Don't load seven, um, components. We'll see how to set up with them on Windows and some other specific considerations in our the low month. First of all, let's try to don't know the civilian were driver. Senator Webb. Driver can be directly downloaded from this location. It's available for different browsers. Either we're speaking about Internet Explorer, age grown Firefox Safari or other Windows Mobile. And so we use, for instance, either it Explorer as, ah Main Broza. How total downloads. Civilian with driver. So let's try to the lease together. Okay? My visit the Donald section and from here will salute the area into the Explorer. Dr. Davis, Several will choose 64 if we are sure that are operating system is compatible with 60 for technology. Other ways you can select 32 bits. So in my case, I lose Windows 64. There was sitting this one. Now the Donald will start after finalizing will open the folder to see that the software is in here. Next step is to extract their hive. We are having on a specific location. I proposed tohave see automation and decide this folder toe have different sub components. Now we're speaking about drivers. Let's try to release. Let's open the Seagrave. Right Leak new folder automation. Okay. And inside this folder, let's create a sub folder. Drivers okay, into this folder. Let's go pee the driver. Have I've just download you? I could beautify from here. Serai automation drivers could be here and then illustrated except by ah, uh, using we read or other. The super were having seven Z, for example. You start here What we're having Indian. It's ah next secretive in its application inside the driver folder. So which is great? No, Let's see how we can Donald the psyllium client components This genuine clan components can be downloaded from the same location. We'll see that these components are available for different languages. Java, fightin and so on were relying on Jeff apart in the scores. Miss, proceed to download silly noon Djebbour plane now okay from the Donald section will select the civilian client area and from here, the Java and then was download. The Donald is finished and we can open the folder. We'll see City noon, Java, then loaded in here. Next step is to extract it. Ever have specific for this Linnean client on our location? I proposed toe have the same address, see automation and then to create the sub folder client. Let's try this So she drive Welcome ation, right? Pete Glenn on this folder will copy there. Have we just don't know it. So from Donald's Silene Java rightly inclination client based Let's extract these. So with seven zip also accept you. We'll see the resulted files, libraries and some jaar components. We finalized this step. Other considerations. It's important to see that selenium is fully free to use in free, off charge. It is open source, and so so for other with driver components. Let's imagine that we need some if you want to use other browsers, toe make functional testing, automation, chrome or fire force and so on. We can visit the Donald section, and from there we'll try to Donald Appropriate were driver component. Let's try to see how so from the download section below, it's their party browsers driver. This part is not developed by selenium core team, but it supports using different browsers such as geological driver is for Firefox chrome, more age and some other browses. So we'll just download a driver from here, and then we'll use, as you will see in the next a few lessons. If you have any question, asked them now in the course forum, and I respond to them as soon as possible. Thanks for watching and see you in the next lesson. 5. Install Autoit automation components: welcome to this lesson. Now you learn how to install all the it components we'll see together from where you can download the software components, how we can install them and the other consideration. Drill Yvonne for the automation projects. The download off the IT components can be easily done through this address we're having. From there, we'll see there are two components also it which is the engine and alter its script editor , which is the component able toe. Create the scripts list right to visit together the address and then to see the components from there on their website on the download area. We're having the components. We discussed the engine and then they ditto. Where do you have to do now is to download both of them. Let's see how so. First of all, let's Donald the engine save the download is done. Let's proceed with the needle now link to download and click again on this one. Then save. Both fires are downloaded so we can choose to open the folder and you can you can see here on the downloads. Both software available. Next step is to copy the software on a specific location. Let's use. See automation or do it the talk on the C drive formacion and then to create a self folder . Order it. Let's get the fires from the download's and copy them. See automation really easy. No, the fire son to you. Installation. Now we'll see. It is very easy to do the installation of both off. No, for to eat Mr Together No. 19 stuff the and, you know next my re license. You choose that before settings run speed. Next, the location is C program fires. So 86 in my case, moderate. Three. So let's proceed to install the solution completes. Well, please finish now we're start installation off. The second component of what I eat next will be license in the installation is done now very easy. As I told you other consideration. Although it is available natively for Windows operating system for other operating systems , we can consult their website and from there, the forum area. As you can see the addressing here, if you have any questions as them now in the course forum and I answer to them, assume that's possible. Thanks for watching and see you in the next lesson. 6. Install and configure IntelliJ IDEA Community Edition: Hello. Welcome to this lesson. No, I will teach you how to install and configure intelligence community. Addition Tool in order toe Be able to create projects for functional testing automation. Well, learn why Intelligent e coming tradition is good for us. How to download Intel edgy, how to install the tool and also the other considerations, if necessary, to run the store on Lennox or other creating systems. Now let's focus on why intelligent e going to addition is good for us. First of all, it's a free tool and open source. It's very easy to use with a modern and is available on many operating systems, especially on Windows. Elano's or make. We can download the tour directly from their website. My using this address. It's available, as I mentioned for many operating systems. Let's see how you can do the download right now from the download section will select the community addition and then Donald and see. I'll pose for a while, just toe wait for the Donald to complete. No can open the Donald folders and you see the software is available for us in against to the installation. This is very easy to go. We can do this together now. From the download folder, double click on the application next. Well, except for location, which is programmed fires. Nice install, oppose for a while. Just wait for the installation. Skip to complete. No, the installation is done. This press finished. Next step is toe open the intelligent E and then to do a busy configuration to have to accept the license agreement. If there is a previous installation off Intelligent, you can import some settings, and then you can choose the U interface. But dark one or white based interface as a proposed for the configuration is done. We can create a new project you have tow. Specify the SdK for our first project. This is the case. Remember, we just installed in the previous lesson. And after all, the step the environment, intelligent environment is ready. Toby used for creating automation projects. Let's try to do this step off configuration together now from the menu will open intelligent e Okay, we'll choose nothing for sittings will prefer the white based interface, and they said the force okay lets great in the project. Let's specify that is decay well having so it's see problems for us, in my case is the program physically. But for Windows 32 reads, We have to select the program fires X 86 Obviously, program fights in my case, Java gvk 1 44 Next you can choose Create project from thing plate. We'll enter a name for Let's Put a Base package guru that continues Learning Academy and then fish. Congratulations. So we manage so for access the intelligent environment. And from this point we can start working on creating projects. Other considerations in Taji have also prayed version with many features. It is also available for Lennox or operating or ah Mike operating system. We can download these versions directly from their website, selecting the appropriate operating system. Let's try to do this together now. So if you need, for example, Lennox versions. So from the download section, let's select Lennox and then for the current tradition just will press done. Look here the same for the other operating systems. If you have any question, please ask them now in the course forum, and I'll do all the best to answer as soon as possible. Thanks for watching and see you in the next lesson 7. Configuring the Internet Explorer browser and development environment: Hello. Welcome to this lesson. Now I'll teach you how to configure Internet Explorer browser to work with selenium components. First of all, we have to open the Internet Explorer and then on the security tab, Toe Breath, Internet zone and then to check enable protected mode. Same settings have to be applied for all the other results local Internet trusted sites or restricted sites. Let's try to do this together. I'll open Internet Explorer settings. Internet, Internet options, security, Internet chick in a very protected mode for look at in the pli local Internet. In a little 15 modes, apply trusty side enabled for the mold and restricted sites. Enable protecting mold apply and okay now would have configured the browser to be ready to work with selenium components. Any questions? Please ask them now in the course forum, and I will do all the best toe answer there as soon as possible. Thanks for watching and see you on the next lesson. 8. Setup Section Summary: Hello. Welcome to set up section Summary. Congratulations will done what? Your run in this section, you learn about functional testing, automation architectures. You learn how to install Javaris decay, how to set up civilian Web driver and specific selenium client components. How to install although its components how to install and go figure intelligent environment in the photo configure Internet Explorer browser in the development environment in general . Any question, Please ask them now in the course forum and their answer to them as soon as possible. Thanks for watching. 9. Intro to the Basics Section: welcome to the basic section we'll see together. The Estevan programming core will be able to create and work with Quipped Pages will understand Java programming core will be able to create some Jeffer programs, and then we'll understand how to find elements in a webpage by using selectors. In the end, we'll have a new HTML five. Cui's a challenge in the six to in some way any questions. Ask them now in the course form, and I'll do the best to answer as soon as possible to them. Thanks for watching and see in the next lecture. 10. HTML programing core; working with web page structure: Welcome toe html core lesson. We'll see together What I the webpages, how the webpages are created and what are the elements behind the HTML language we are using in order to create our webpages? First of all, let's see what is HTML in especially HTML five. Mr Mill stands from hypertext markup language. It's a programming language, especially for creating Web pages and Web sites. HTML five is the latest version off these HTML language. Why we have to learn a steamer. So please remember that every page we're looking is written using HTML language. If you need some samples, let's take a look on Wikipedia, Facebook or Amazon Web sites. Everything created there is based on HTML language. Now let's see the Web page structure inside. Hey, Stearman language. So first element is Dr Html, which is the start element for on HTML five page. Then we'll have the root element off the HTML page, which is HTML and de Settlements. It is also at the end, but with a slash in front. Go specify the webpage, from where to where the webpage he's composed. The head element is the next one defines the title of the way page or other meta data information off the webpage. And then the body body tag contains the visible page content. All the text or the teachers were having a website are usually between first body in the last one. Easy, right. Let's try to create together a webpage right the way. So does this. It's open. Not bad. I'll make not that smaller. And then let's start to create together first our first webpage Cool look type this time of then we'll enter the main tag, the last one and then the hand section grows. This one in between, we're having title. Our We're Page is here and last but not least, the body you signed the body little text. You can write directly some text information. It's like after this, we can save the page. Mr. C has tried to save it in See Automation. First, we're page. Let's say it qualifies as extensions were page dot HTM, and there was perceived after the step. Let's open a browser to see what's happened, does not get to see Dr Commission, and we're seeing now the with federal creating so directly open and the weapons is directly opened, you know Rosa Court Right lets you know other basics. Tax, especially for formatting B, is used to define and paragraph strong or be to define a bold. Did you find it? Thanks. Written in bold for break. To create a new line, we can use this type. The are for making a text italics begin Use I or for strike through good news, then work to make take size smaller Began you small or two separate content with the result . A rule horizontal line. If you like, you can use HR Cool, right? Let's try to taste these together. Okay, I switch toe the Web page we're working on. Let's on the new line. What kind of enter, if you like, It's on the photograph. It's use some bold tax. Be my pain is you. Let's check the results. But before no forget to save. No wonder Broza improbably fish. So what we're having here is a result before webpage code. It's now more formatting. Thanks a new line. This right, something italic. Let's write something small letters. Well, let's try to throw some lines. Let's check the results. But don't forget to say the fire in the Web browser with president face, you see the great resulting here Other important basic tag. It's about hyperbole. To create a hyperlink, we have to use anchor the element e a drift followed by the address, the taste we're pressing on and then we have to close the attack. Destroy toe, create the high pulling right now together. Cool, right? Okay, lets other happily I finished it to be lovely. Don't get w CNN dot com visits, you know, save on the listing. The result. Bluefish. So we have a link specific to this life visits China and when pressed that link, it opens the whips and so does great. Another very important thing on HTML. Basics are the forms to capture the customer input lo gin on a website. We're having some forms with input elements behind to get our various into this picture behaving. The four middle mint open on this line enclosed on the last one, with some actions specifying what's happened when the for his submitted when the user will press the summit bottom with president again in this case when the usurper president again will send all the data to a specific webpage called Logan Jsp with a metal post or get there are two kinds off metals. Post is mostly used for Logan. We have four each element from the form When I d In this case. Next line it's for ah, but input field for email for collecting the mail. We're having an I. D or a name for this sealed. Explain this for the password with a specific idea or either name in the last one is the bottom to submit a four. Let's try to create together a simple for right. Okay, So listen another line. Just start include the four or Maxim method cost. I'm simplify a little bit. Okay, let's have email, and then the input type takes ID Your name. E mail. We don't any default value. Do you need? Then let's add another element for the subject bottom. I've simplified this for my i d with the element and tell you the difficult what toe have written on the bottom doh. Okay, Suppose you're doing looking only by using email address. And don't forget to close the four. That's all. Let's say this for safety and then let's check the Rosa. Okay. This place to fish and all form is he here? So we'll have anemia field this one and then a bottom to some in the form Gilligan missile . So we created together a simple for with HTML five. When I enter some information I can do looking So though, ah, where? Page This nation Web page is not available, but usually is able to process the information we're sending toe any questions? Ask them now in the courts for, um and they're respond to them as soon as possible. Thanks for watching and see you in the next lecture. 11. Java programing core; create basic java programs: Welcome toe, Jeff. Our programming court lesson. You will learn how to create basic Java programs. What is Jumma Joe? It's a modern language used for application development. It is free to use. Initially, it was released by Sun Microsystems in 95 and later both by Oracle Corporation. Why? To learn jar to develop ourselves more than applications Java, who is designed to be relatively beginner, friendly. Okay, let's see some samples. Who is using Java? Nouriel production to answer to discretion. Let's take a look on the 19 eBay or Amazon Web sites. All of do are using Java on the server side, according to the Wikipedia source mentioned in here. Sewn. Interesting, right? Let's see a first Java program. First statement we're having is to define a Class A class. It's a category for like inside the class. We can have month people methods, multiple operations that you can use main. In this case, it's the default method we are having on a program initially inside the method, you can write specific statements. One my statement. He sees them out. Print Line, which is printing, is displaying a text for information on the screen. And don't forget to import this thing. First line in the program is important and some other perimeters to import specific components necessary in our programs. For example, we really import specific components for mess if in our application, will do some Advest mathematics or will import some selenium specific components. If in our program will do some selenium with driver statements, But we'll see in the next lessons he's right. Let's try to create the first Java program together. First of all, it's open injury J. That's great on your project is the K. It's already there. Next this chick create project from template. Come on, education. Next. This gives your name first Java, ap P for Java application based package Guru, Continuous Learning academy and fish of the moment. We're not having any import into this file, but if you like, we can do something Ports Right now, Joe, you till we have the main class from here to here, take a look on the parent cases. Then first method main. This may thought Maine is automatically launched when I execute the program. That's right. Ah, hello World from here. System out print line in between us. Put our message Hello work from Joe. Then let's try to execute this program. My pressing this bottom? No, the program is beards. And this you don't book. Okay, The album, The execution results for execution. His printing. Hello, Word from general. Nice. Let's take a look. Two other core information in Java men Primitive data types are listed in here Bolan to represent the true force in from in Tasia, for example, to store 100 as a value long to store 64 bit signed integer values as an example who have ah suffix l 1000 0 99 l float for single precision The samples 4.7 cities we see for 34 f So take a look on F on the right double is double precision. It's quite similar with revision, but is with the for Dublin in the end and to store a single Unicode character, we have sure in addition to these our objects we're creating can have additional data Types created from these primitive data types, for example, will see strings to store. Send us it's us sequence off chairs. Let's see singing a bus. Why? The variables are necessary. The very was are used to store values. You have two stages. One is toe declared the variables age type, integer, for example, or salary. Double or ah, I don't know is varied as a Boolean, and after this stage we have variable initialization to put some values on the variables. A is 10 ages 23 salary is 3000 400. The 50 d He is varied as a Bolan is force, and so many times in our programs we are dealing with variables. Easy, right. Let's try to create some variables in tow, assigned some various to them. Okay, that's a point elegy and then to define available, Inform Intention Age, etc. And then let's have some values. Page equal Toe 24 Striker Print This value, my age. These plus heritage. Let's see the result now my in just 24. If I t. D's toe 34 for example, and the exit, but again the program, we'll see damn date decisions. Usually, you know, Java programs. We have to take decisions when something happened. Who has toe go some specific stain, Linds. Otherwise, then he could other statements to take a decision we can rely on if statement we have an expression depending on the result. If it is true legs, I could the first sequence off statements otherwise lazy to the statements after the else. Let's give an example. You know? Plus, this main method ages 30 We're asking if age is less than 20 Will print too young, otherwise will bring. You are older. So either ages 24 store 22nd. Well, uh, print you are older. Missed writing to an example in his regard. Okay, if age is less than 20 Okay. Sees them all Green line. You are cool. Young. Otherwise system out creeds line you? Uh huh. You Let's see the resulting ages 34. So the system will print. You are the senior. She's the eighth is not evaluating to true this command. We'll paint what is after the US This, um 40 before putting age 14. This chick again there is up. You are too young. Excellent for robots programming. We need to take care off exceptional situations. For example, in the NATO connection down were some other exceptions appears So in this case, we have to see how we can use Try cage statements. Let's take an example inside our main method we're having tried in the try block. Well, do the work what we're trying to do. If something happened when you are trying to do this work, the kitsch statement will get will catch the exception. And then we'll do some well, logic toe handle. That exception will print a nicely message to the user. We'll try to close some connections, and so let's have an example, I think. Okay, this try some comments. I don't just try to do some page this age. Bless seven kitsch Set some thanks. And that's been the message system out. Prince line. It's exception. It was here an exception. We're trying to do this work. Yeah, everything is fine. These statement is not executed. Only when something happened in the try block will execute what is behind the catch. Just try to do. For example, you start to exited the sample story. Okay. If I'm trying toe prints, the age is the Cokie based because she defined the result. The age should be the initial value plus seven. My new age. He's 21st Xa. It works. Any questions? Ask them now in the course forum and I respond to them as soon as possible. Thanks for watching and see you in the next lesson. 12. DOM, XPath and CSS selectors core: Welcome toe Dome expressed in CS is Selector Score Lesson. Why we need this toe Clearly find the target element is the answer Selena Web driver were using. Identifies the Web elements in a webpage based on their i D name class. Expects Doc name. She assist electors or link texts. Let's have some examples. Some specific examples. You can find elements in a webpage by using the I. D. Let's take a look. So this webpage. So we have a simple webpage with a form with the maid and passed for and behind. In the HTML, we're seeing input element I. D. Equal email. So this is a way to identify this element by I. D. Many by identifying the import element. Were Able problematically plan that some figures some values into these input text by using selenium. As you'll see later. Let's have an example on an open Internet Explorer and they hear Let's visit W. W. W. Continues learning. Dr Guru Letting it came into Guru resource is to forms. So let's visit this. Address the demo page. Assemble four into this page. If I press if trails on the bottom of the screen, I see the content off the webpage on their by using the Sylhet element bottom this one I'll select then the full name element from the for. But Chris and then today, Okay, No, I managed to select. Okay. And then I'll click in this moment, I'll select these bottom and then peek inside my input. What I see now is the line related toe. My selection is this one. And here I have an I D. If in 100. So this is the identifier on this taste element in protest element. So when I enter something here mainly the idea of the element behind his FN 100. If you decide to use CSS electors to select elements in a webpage, you can use a combination off start and I d or tug in class or tag an attribute as you are seeing in the samples. For example, to refer by using CSS toe the same element to the male element in here. I have to write down CSS equal toe input. Input is the element and e mail is I d off that Elham. Let's have an example also in this case on the same page, I've select the full name. And as you see, the I D. Is if n 100. So in this case, the targets input in the shoes I d is FN 100 and the stock We refer to the full name off the person in our four other ways toe find elements in a webpage is toe use document object model And from these perspective that has two methods get element by i d. And we have to provide the identifier, devalue or get elements by name to provide the name we'll see in a webpage we're opening now the name element gate in the form select filament king We can see the name off The element is you name from user name This is the name of the element Identify was seen in the previous dog i d If we're referring it, i d we have to use these value when we're referring toe the names we have to use the name at In some situations for complex were pages we have to locate elements in a webpage by using example nodes for these will use express does to locate a particular node and attribute inside, for example, from express perspective to locate the same element as I mentioned. You have to write down slash slash input, but name since you are referring so the name attribute and then the value email. But writing a such expression, we are referring to this element in the wherefore. I don't think it's too complex. But when we'll write down some specific projects would understand better this concept. Any questions, please ask them now in the course for, um, I will try to answer as soon as possible there. Thanks for watching. See you in the next lecture. 13. Challenge and solution. Basics section summary: Welcome to the basics Change and Solution section Summary Our Children for today is to add your name to your first weapons. Are we able to this I close the record to wait You to perform this challenge after these will come back with a solution? Okay. The solution to the challenge is to add inside the body element something like each one to write the header. It's like, What's your name? Let's try to do this together. I look for not good inside the Nobel. I'll open on files. The first webpage. Well, somewhere just before the second body, it's on each one. My name. Save these in this chick in the Broza. She's alive automation, first webpage and somewhere below the page you can see the name. So this is the solution to the change. Congratulations. Well done. What you learned into this basics section, you learn html core concepts. You learn how to create a webpage. You learn Java programming court, how to make a Java program and those who you see. We have seen some key concepts off how to find elements in a webpage by using expert senses , selectors and many others. Any questions? Ask them now in the course forum, and I'll do older visto answer to them as soon as possible. Thanks for watching and see you in the next section. 14. Intro to the First Steps Section: welcome Toe first steps section In this section we learn how to load selenium libraries in our intelligence age of a project in how can we start to create first automation project? Any questions? Please ask them now in a coarse forum. And I do all the best to answer as soon as possible to your questions. Thanks for watching. See you in the next lecture. 15. Loading the Selenium libraries in the IntelliJ Java Project: welcome through loading the civilian libraries in the Intelligence Java Project Lecture. In this lecture, I will present you the prerequisites and the steps to configure intelligence to support selenium projects. Now the prerequisites you have to have installed anywhere. Browsers, especially Internet Explorer for the beginning. The Java Development kit Selenium, Jared fires. And then So we have tohave installed in Tel Ajay I d. Environment. Now let's see how we can configure intelligence to support selenium projects. First of all, we have toe launch intelligent I d and make a new project. As you can see into this picture, then you have toe enter a project name, for example. First load selenium and then fish after the project is opened. In the interview J Environment, we have to select file mind menu and from Fla file project structure option, then dependencies in the modules area. You will select from there plus and then jars and directories. As you can see into the screen, you have to select all the jar files from the directory In the specific library directory. We have ah downloaded toe have multiple selections. You can press control key. No, After all these steps, we have on empty project with all the selenium libraries loaded. So let's try to do the same together. Now. First of all will open in Terry. J. Environment will select. Create new project. Next, we'll use this template. Common line application. It's fine. That's Enter the name first Selenium project and cities. In a moment a project will be opened. You can close this. No, from the file will select project structure. Then modules, dependencies, glass and jars or directories. Look, next we'll navigate on the C drive, then client and from the client we'll select by pressing control Key or the Cherif eyes together with library folder. And then okay. And then another. Okay, will press in this moment. You have all the client libraries loaded, as you can see in here. So we already to create automation. Excellent. Any questions, please Ask them now in the course forms. Thanks for watching. See you in the next lecture. 16. Creating Your First Automation Project: welcome to the lecture Creating your first automation project. Now I represent you the solution. Architecture Overview. How to configure in Terry J. Supports Iranian Project How we can write selenium specific Java statements to create automation projects. Now let's take a look on the solution architectures Overview. As you know, on the right side, these the Web browser. In our case, let's imagine there is Internet Explorer. On the left side is the Java client is the selenium Java client were developing now using in Terry J. Environment so we can compile our Java code in order to instruct Silin Web driver specific surrounding Web driver for Internet exploder to send comments, instructions to the Internet Explorer browser in order to automate what normal user a human they say user will perform in a specific where. Page this. Take a quick recap off the lesson on how we can configure into energy environment to create selenium projects so we have toe create a new project or to open an existing one and then to load all selenium jar libraries in order to be able to write Java state months. Let's try to do this together as a quick recap open, intelligent environment. And now I can choose either create new project or I can choose to open an existing one first Iranian project, for example, were first project I have I'm having you here, but let's start a new project from the beginning. No clues. Java eight. Next, we'll use the same template. Common nine. Application is fine. For the moment, that's enter a new name for the project. My first project. If he's as you remember from the previous lesson, I'll choose file project structure to load all the civilian libraries, then modules, dependencies plus jars or directories with a select selenium. Clients see Dr Automation client. We decided all the Jor if eyes plus the library's folder. Okay, and then okay, from this point can start writing our Java statements. Okay, for the moment, let's close. Ain't any J window to see some specific selenium java stain months before creating a specific project. Our start presenting you selenium java code First of all, are the imports specific import statements in orderto let us work with selenium. Java commands is not necessary toe open to end everything. In the beginning, we can automatically are the later during the code by pressing out key plus enter. So each line from the import statement can be, as I mentioned at it later during the code, by the easy way is to enter everything from the beginning. Now the main Java code is the Java code we are entering, usually in the main operation in the program. First of all, we have a comment will drive a set up, then for statement in which we are initializing Internet Explorer. We're driver. We're driver dot ie the driver, then the past. The full path to the file then will specify specific capabilities for the driver we are using Internet Explorer version 11. Then we'll initiate. But driver object will create a driver object using the driver defined before then will manage the window would manage the browser. We know after the step I'll specify the page. I'm trying to automate this Page continues learning Academy that girl resources to forced in this page. I search for a specific element when he made Element will see. After locating the element, I lent her some various tests testing my luxuries and then ah and, uh, Chris Auto magically the enter key and we'll have the first result. Don't forget in the end to close the driver object in orderto free the memory of the applications you have in here html code specific for this uh, expect I'm using in here. In general, we have a Java structure you have to follow, you know, projects at the beginning are the imports and then the main operation with all specific Java statements. So this is in the beginning and this is the page I'm trying to automate. Let's try to do these together. Please note that the Java code is available in the resources off this lesson. To shorten the video and simplify the learning. I will start from the Java code available in the resources for this lecture. I will enter the code from the resources as you can see in here. So let's take each line one by one. So first of all, we have the import statements to use Web driver component to specify capabilities to use specifically Internet Explorer driver to be able to do a search to locate specific objects in the HTML page or to work with Web elements in the HTML page in orderto enter some keys to emulate key press. You have to import this library, the keys library, now the main code. So first of all will specify the pets until the Internet Explorer with driver will specify diversion. Will ah, use this capability specified before will maximize the window and then we'll choose toe open this webpage. Let's check together this webpage in Internet Explorer browser, so I'll copy these and I'll open Internet Explorer. Okay, based. Okay, quite to having here. It's Ah, subscription toe a newsletter. So we have usually to enter an email and then to subscribe. Sees it is, ah, demo page. You can enter any email address and then breast subscriber enter or press enter key. Let's take a look on the HTML code request. If trails the Internet Explorer, we'll select the stool, and then we see that the key element in his day. He made name email. So when we will search for this object in the webpage, we can refer by using the name E mail. This is a test by pressing subscriber and turkey, so this is the result. What we want now is to automate this process by using Jeff a cold. So let's come back to the intelligent e. After open opening, the webpage will search for the email as we can see in here. After the element is selected, I'll enter automatically. Anemia Largest test e mail Largest as you have in here and finally will press enter Key to subscribe to the newsletter and finally will close the driver. Let's start the program by clicking on these bottom to run the code. The code is now compiled, and the webpage is open in this page automatically anymore. Largest will be added. As you can see the Java code he's emulating the key press to enter the sea. May largest and then we'll precedent it. So this is the result. We're now subscribes. So that newsletter let's get back to the lesson. Congratulations. You were able to create first selenium project toe automate a newsletter subscription. Any questions? Please ask them now in the course forum, and I will do the best to answer as soon as possible. Thanks for watching. See you in the next lecture 17. Intro to Hyperlinks Automation Section : Welcome Toe Hyperlinks automation section. In this section, I will teach you selenium, hyperlinks, automation concepts and specific java code for implementing selenium, hyperlinks, automation. In the end, you'll have a quiz and the challenge together with the solution. Any questions? Please ask them now in the course forums. And I will do all the best waves or as soon as possible to them. Thanks for watching. See you in the next lecture. 18. Selenium Hyperlinks Automation with samples: Hello, This is hyperlinks. Automation with samples Lecture No, you will learn how to go figure in Terry J to support selenium projects. Hyperlinks, automation Still in your concepts and hyperlinks. Automation, selenium specific Java code to create automation projects. Let's son first with the steps specific for configuring intelligent idee environment in order to have all the psyllium jar libraries loaded. So let's try to do this together now. In the intelligence, we'll create a new project next, using same common line template that's write the name Hi Polar links project, then fees to load all the silly new jars. First click on the file menu Project structure modules, dependencies Blas just for directories will get on the C drive automation client. We'll select both jars and library folder. Okay, and then Okay. In this moment we have all the libraries needed in orderto right hyperlinks project with selenium. Let's get back two lessons. Now let's see Hyperlinks, automation concepts. So, in a webpage, the goal is to find to search for a specific hyperlink and then to be ableto click to select it. In order to navigate on that specific location, you can search for a high bowling using an exact match for these, we have to use link text method assemble We have in here, in which we're searching for CNN. Exactly. Link text. So we have in the webpage CNN and in the Eastern Medal we have the link. CNN were not the case. Another option is to use a partial match. In this case, we have to use the partial wing text method with input parameter apart off the hyperlink text. Please note that the input parameters are case sensitive. So we have a hyperlink telling us bang search engine so we can enter only the first part of that link or began search for hyperlinks that are having images in this example who had Wikipedia. So there is ah ist ml hyperlink a title visit Wikipedia H ref, Wikipedia org and so on. So by using ah Chiesa's selector So the mental these? Yes, a selector in the bar Amita related to the title were able to select this hyperlink and then to perform a clean please note. Since we have started with coat, we'll have escaping there in here In order Noto have ah syntax error. Please know that link text or partial in text cannot be used for images. Right? Easy, I think, is not so complicated. So let's try to put all the components together in a Java project. The important area, as you have seen, then the main jave a cold. First of all, the code related with the Web driver. We're driver for Internet Explorer will maximize the window. After these will have the webpage we're trying to visit. So is this. One in that page will search for a specific element. Having a link. CNN, after we are searching for this element, were unable to make a click either using click method or the alternate option would be to use San Keys and then to send the enter key on Internet expert. There are some issues with the click method. You know such context. The alternate option is the preferred option in this regard. So let's try to do this together. Please note that the Java code is available in the resources and we will start from that code in orderto short on the video and simplify the learning. Now I'm back in the intelligent environment and then I based the Java code from the resources as I mentioned. So what we have in here, let's discuss the lines. First of all, are the import lines. So state months to import libraries we need to use in the next project on the main area. We are initializing the Web driver, the Internet Explorer specific Web driver. So setting these properties, setting the Internet Explorer versions, maximizing the window and then choosing toe open the webpage from this hyperlink. Let's try to open this webpage in an Internet Explorer browser right now. Okay, what we have in here there are some hyperlinks with CNN, BBC and so on. If we are pressing if trey of for CNN hyperlink he from If I'm clicking on these hyperbole , we see the hyperlink Texas hysterically CNN with upper case. Right? Okay, while for the other one for the BBC became the text is longer or for pictures. Hi Pollings with pictures. Have a chair if a tribute with some title and then the image in the media so we can search for a hyperlink with images by using Titan in this case, as you can see, let's get back to the project in until a J. We're aiming in this project toe open the CNN hyperlink. So we're searching for ah, high pulling, called CNN. After we're locating disciple ing. We're directly pressing. Enter key in orderto visit toe navigate. To that you are, please note that click method are having some bags on Internet Explorer. As you can see on this, you are there. Let's right now to execute the cold to see the result. CNN is selected and now opened. You know, Rosa now few words about partial match or in Beijing's. This code is in comment now, but is presenting us the option to select the partial wing text, the other one specific for image links in which you are searching for some specific title. That's all. For the moment, let's get back to the lesson. Congratulations. You manage toe automate hyperlinks. Any questions? Please ask them now in the course forums, and I will do the best to answer as soon as possible to them. Thanks for watching. See you in the next lecture 19. Challenge and solution. Hyperlinks automation section summary: Welcome toe Hyperlinks, Automation, change in solution and sections summary. No, let's have this challenge. Please automate this election. An action on the BBC hyperlink using the demo site we have visited before continues learning that guru resources to hyperlinks. I will oppose the video to let you finalized the challenge. After these, you will see the solution. I'm sure that you manage toe have a solution. Let's check with this. So what we have to do is to open that specific or l and then to search for that hyperlink with BBC using partially text after the element is located, we have only to press, enter or Greek. Let's try it to see on our previous example the solution in place. I switched directly to intended J Project from the High Police and what we have to do now is toe visit in Internet explorer this highfalutin to take a look first on the elements there. Okay, well, why did you have them in here if 12 this chick BBC hyperlink. So the hyperlink is your BBC click here? Who's partially text to search only for BBC. Let's get back to interview J. So for partial Mitch Conch comment this line needed off. This text will lose. B B c. I'm sorry, what has, uh, only to run the program. Clear The weapons is open and now the result. So we managed to have a proper solution. Well, them what you learn into this section, you know the hyperlinks, automation concepts. You learn how to create Java code to implement selenium hyperlinks, automation in three flavors by using exact match, partial match and image links. Any questions? Please ask them now in the course forum, and I'll do all the best to answer as soon as possible to them. Thanks for watching and see in the next section. 20. Introduction to Input text fields automation Section: Welcome toe input Text Fields Automation section In this section you learn about selenium this field automation you will see sample Java code for implementing selenium text fields, automation in our projects. Indian. You'll have a Cui's a challenge in the solution and finally a section summary And your questions please ask them now in the course forum and I will do all the best to answer as soon as possible to them. Thanks for watching. See you in the next lecture. 21. Selenium Input Text Fields Automation with samples: Hello. This is the input text fields Automation with samples lesson in this lesson, I will teach you how to configure intelligent to support selenium projects specific civilian concepts in regards to text fields Automation, we will see psyllium specific Java code to implement text field automation in our projects . Let's start by configuring intelligent e to load old selenium jars libraries in our project I open in 10 e j. I'll just create new project. Next It was the same template and let's give it the name input. Taste broad after the step. Let's load all selenium client libraries file project structure modules, dependencies, bless jars or directories There is not a good to see client from this screen will choose both jars and leave bowler. Okay, okay, we have all the libraries loaded. So what we have to do now is to enter Java code to create our project. Let's switch back to our lesson. You have a form from a webpage with some input text element in it. We can automate operations on standard text fields or passwords to access fields, text fields. Specifically you can use different methods like by i d by name by experts or citizens Selectors sector. If we're choosing to select the name method we're having here a sample. So we are searching for ah, input text element called you name from user name. Yeah, from user name. And after these were sending the keys clothes. You so will enter this text information in here. Please note that the perimeters are case sensitive. Another example we have if you're trying to use the I. D. Method is the second most use matter to locate text fields Information in a way page. So what we have to do is to use by I d method and as a perimeter to provide the i d information from the webpage. So if you're taking a look on this weapons so for the ah, thanks element on the top of the page, we have decide e f and 100. So we're just entering this input for a meter, and then we're providing automatically some value. Some text information. John Doe. Easy, right. Let's try to put all the components together in a Java project. First of all, we have to do the imports, you know about it, and then the main java coat in the beginning. Is the Web driver set up? We're working on Internet Explorer this time for other browsers. In the end, we have specific lessons. And now the Ural off the webpage in that webpage, this search for a specific element having the name you name by using the name method by name. After we are locating these element, we have just sending that text information. There's visit the page and then let's start toe code our Java project. Please know that the Java code is available in the resources and too short on the video. And to simplify the learning were stopped in directly from this code. We are intelligent, and now I'm entering exactly the code from various sources. Okay, so the important part Okay, then in the main block with driver, sit up where? Every day, No lease part. We are using Internet Explorer 11. Then we're trying to open this webpage for clarity. Let's try toe open this weapons in the Internet Explorer okay, with F trails that is specked this field they used on a field. What you have in here is that the name is your name. So we can surge for this field or use any feel by using the metal name specifying its your name may. Let's get back to in Terry J. Now let's search for desire element in the webpage. So we're using by name method in the name we have seen a few seconds ago. So you need after we're locating this element x text element. We're pressing we're entering, but text information just right now to do a test by running this project. So, President, wait for moments for the code to compile. Okay. And as you can see, the text information is entered into the user name form field. That's all for the moment. Now we're able to search for it. Input text field in a form and after these to enter some very some text varies in It is getting big. You're Listen any questions, please ask them now in the course forums, and I'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next lecture. 22. Challenge and Solution. Input text fields automation section summary: Hi there. Welcome to these lessons. No, you will see input, text, fields, automation, challenge and solution. And in the end, the section samarie. No, the challenge, Please Automate the selection and enter appropriate eggs. Varies for email and password. Feels using this address. I propose the video to let you finalize the solution. And then I'll get back with my solution. Hello again. Let's see the solution to our challenge. First of all, we're opening the your ill. Then we're searching for the email element by using in my name. After this, we're searching for the pencil Relevant. Using these texts values Indian. We're entering some text information for both email and password. Let's try to do these, but first of all, it's open Internet Explorer on this. Your l to see exactly the four. Now we have the form. Will press F trail to do the investigations, then will select the human element. As you can see, its name is email repeated. These also for the password. Its name. It's P A s is from vessel. Let's get back toe intelligent project toe code. The solution. Okay. In our project, I will comment these lies. Sorry, not that these. This one's okay. And then let's codes the solution. We're element elements. Email his driver friend Element by name in the name. It's emailed if I remember correctly. 10 This repeats the find element for the presser element P w de driver find element by name Its name is P A s s Okay After we are locating the elements tried to enter some village there Element e mail key the tender An email might be made This order Let's try to do the same for the penciled element. First words send keys, secrets one professor And then this is wrong the project and now the bastard. As you can see, our Java code is working Fine. Does get big to the lesson. Well done what you learn into this section. So you learn selenium input, text fields, automation, concepts You learn how to create java code for implementing selenium input Text field automation for both standard text in pester feels any questions? Please ask them now in the course forum and I will do all the best to answer as soon as possible. Thanks for watching and see you in the next lecture 23. Introduction to Select Lists Automation Section: welcome to select the least automation section in this section. I will teach you selenium. Select Least automation will show you sample Java code for implementing selenium Selig list automation I received with you Cui's and then a challenge. A solution in the section summary. Any questions? Please ask them now in the course for us. And I'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next lecture. 24. Select Lists Automation with samples : Welcome to the lesson. Select Least automation with samples. In this lesson, I will teach you how to configure intelligent to support civilian projects, selenium concepts in Vegas, toe select least automation. I will teach you also specific. Seven, um, Java code for a select list projects. Let's start by configuring intelli j environment to load all silly new jars libraries as we have seen in previous projects. So let's right through this together now I opened intelligent environment. We can choose either toe open an existing project or to create a new project that starved a new project right now that used the same template as before and then to enter some information he regards to project name. Let's call it select lists. Project fish. Next step is to load or jars, you know, project file, project structure modules, dependencies, glass jars or select directories. Willbros on the C drive client. From here, we're select both jars in library folder. And then Okay, Finally. Okay. And our project is having all the libraries to work with selenium component. So let's reach back to lessons. Select list automation concepts. We can automate the operations on selection lists order. We can call this drop down lists, if you like, So you can automate the selection value from a drop down list for doing this. First of all, we has toe select the drop down least element in the web page. So let's consider preferred language in this example. To do this selection, we can use different methods like by i d by name, by express or by ceases selector. We have in here a sample off using by name function, then as input perimeter is the name well, the least in the HTML page. This check the source and he has in here the name language. So we are addressing this element from these Tamil page also filaments selection. What you have to do is to choose a new option. From that least, we can choose by selecting based on the visible text we're having here English or other varies. We can do this by selecting visible takes German, you know, an example, or by selecting based on values on the values that are behind. So we have to open the HTML source code in F Trev toe to see the values, for example, against the lake, the E in this case for German. Or we can select by specifying the index index number. Tool means the third option in the least So first options English, French and served option within the index. Number two is German. Please know that a perimeter, our parameters are case sensitive in general. Another example. With selection by i. D. So you can select an element by using its i d. Link 100. So if you are looking in here, we can see Language 100 and then to choose an option, you can apply. The same select by visible text is the easier way to do this is right. Let's try to put all the components together in a Java project. First of all, we have to do the import statements. The last statement in here is specific toe select lists. There, we have to set up the Web driver. We're working with Internet Explorer Internet Explorer version you live on. We are maximising the window and no forget to opened. A You are in we're trying to automate is the same four form as in the previous lesson. After the step, we have to search for the desire select least element in our webpage. So we are searching by name language, and then let's elect a new option containing the visible takes journal. So we're having here the result. But let's try to do this in our project together right now. Please note that the Java code is available in the lesson resources so we can start directly from there, speed up the learning process and toe make this video shorter. In the intelligent environment. I'll copy that text from the resources. So we have imports, then the main method in our class with drivers. Sit up, then the u R l off the webpage we're trying to automate. I've proposed to copy this. You are in to check the HTML code behind. So this is the drop down list in our form, this place if 12 and then to analyze the element. So what we have here? It's a selection with the name language and I d lank 100. So we have toe photo, mate, the selection off this element and then choosing the German option. So we are intelligent right now, so have toe use the select type and then to find element by name language after we're selecting the element. We are choosing an option containing the visible takes German. So now I proposed to launch the project rent automatically. The German option was selected for us in here. Great. Congratulations. Any questions? Please ask them now in the course forums. And I will do all the best to answer as soon as possible to them. Thanks for watching and see you in the next lecture. 25. Challenge and solution. Select Lists Automation section summary: Welcome to silicon. Least automation Challenge and solution Lecture. This is a section summary lecture. Let's have, for the moment a challenge. Try this. So please try toe automate the selection by I d and select Italian option from the drop down. Least having the I d. Lank 100. Please note that the address we're trying to automate is the one from here. I'll pose the video to let you finalize the challenge and to develop the specific solution for this. Welcome back. No, let's see the solution. So, first of all, the u r. L were opening for doing the automation work, then for selecting by a d. Please note we're using by i d. Method having Lang 100 s perimeter, then from this list language object. We are calling the select by visible text method with Italian perimeter in order to select Italian option. So let's try to do this right now. When our project. Okay, we're in intelligence on the select least project, and no, we are changing directly. The coat to use I D in the perimeter. Vili's lang 100. And the selection should be Italian, Mr. Right to run the code to see the results. Okay. And now the result. We have Italian selected from the many options. So if I am pressing 12 if trail looking to diss element, we have the language. 100 in the option. Italian. Well done. Congratulations. What you learn into this section You learn specific concepts related to selenium. Sell it least automation. You learn how to create Java code toe implement selenium, silicon list automation. Any questions, please ask them now in the course forums. And I'll do the best to answer to them as soon as possible. Thanks for watching and see you in the next section. 26. Introduction to Radio Fields Automation Section : Welcome to radio Feels automation section in this section. I'll teach you selenium Radio feels automation concerts how to write Java code to implement selenium Radio feels automation projects. Then we'll have Cui's a challenge and solution and finally, a section summary. Any questions? Please ask them now in the course forums, and I answered to them as soon as possible. Thanks for watching and see you in the next lecture. 27. Radio Fields Automation with samples: Welcome to Radio Fields Automation with samples Lecture. Please find the agenda or figure into the J to support selenium project. Radio fields, automation, selenium concepts, radio fields, automation. Sununu's specific Java code to develop projects to automate radio field selection with Start by configuring in Terry J. Environment in order to load all selenium jars libraries. Let's try to do this together now I open intel. Edgy environment. I proposed to create a new project. Next, let's select this template. Let's give her name A radio feels project and finish to load selenium libraries. We're choosing file project structure modules, dependencies class at jars or directories. See Dr Automation client. Listen like both jars together with library directory. Okay, from then. Okay. In this moment, all the necessary Silin in libraries are loaded. So what we have to do is just ran the Jenna cold to start working on our project. Let's get back to the listen Now. Let's see. Radio feels automation specific selenium concepts so we can automate the operations. Will radio field so can automatically select in this example either male, female or other. So let's see how we can achieve these. So we have a Web element. Then we have toe find that element in the page by using one method either I d Expect or CSS selector. Please note in this example. So we have the radio bottles in here and in the HTML page, a specific i d for the radio bottom is available for this one for the other one we're having here. And so is your right. Let's try to put all the components together, you know, Java Project. First of all, you have the imports, as you have seen in other projects. The main area related Web driver set up. We're still working with Internet Explorer with driver, and then the fun stuff the urine off the weapons were trying to automate is the same four we have seen in the previous section. Then we're searching for the desired element in the webpage by using I d method. So in the HTML, while we're searching by a D, looking for RB made one i d. Then to select the radio field, we have either involved the method click. But due to some Internet Explorer issues, I prefer to use the alternate we by sending a space key on the elements selected before mystery to do this in the Java project. Intelligent Please note The Java code is available in the resources and we will start working on the code pathetically from this point, I loved the code from resources. Let's take a look on the code right now. So have the imports were using? This one is not used in this example. We will see and other lesson well, drivers set up, then the weapons you are tryingto open. Let's visit this u R L in the Internet Explorer Kayla's press if 12 to analyze the radio bottom, for example. This one and we have the i D are being made of one and the same. If you want to investigate the next time the female radio button with heat, it's ideas are be female one. So let's get back to the Java project. Now we are searching automatically in the Web page for the RB Male one Radio Parton element by using the I. D. It's i D. Once the Web element is locating is located. Either we can choose click or the alternate option toe send. The space deception will help us to avoid the product issue, which is described in here, especially on Internet Explorer. So the side exit with the code, the code is compiling right now. The weapon is opened and the mail radio bottom is selected as you have seen into these scrapes. Excellent. Any questions? Please ask them now in the course forms. And they answered to them as soon as possible. Thanks for watching and see you in the next lecture. 28. Challenge and solution. Radio Fields Automation section summary : Welcome to radio feels automation challenge and solution. Sexual summary. Now the change is toe automate the selection off a radio button called Other. Having the i D r b underscore other one in the main four, please. No, that the address we're working on is the one from below. I oppose the video to let you finalize the challenge. Welcome back. Now let's see the solution. We're chicken now, directly the main area off the Java project. First of all, this is the U R L We are working on in the webpage. We are searching for desire element, having the i d r b underscore as Irwan. So by using by that I d method after we're selecting this, hit him and we're clicking it or they alternate ways toe send the space. So I prefer to use these in order to avoid on Internet expert issue. Let's try to see these directly in our previous project. You know, Radio Fields project. What we have to do is tow changed a part. I mean, he said off RB made one to use our the other one and then we'll give the space everything in place this site to run it and see Gaza Radio button option is selected. If you have to take a look on the details, you can select this element. Okay. A indictees. RV, Oseola. Well done. Congratulations. What you learn in the section you learn selling your radio fields, automation, concepts. You learn how to create Java code to implement. Sell a new radio fields automation in our projects. Any questions? Please ask them now in the course forums. And I will do their best to answer to them as soon as possible. Thanks for watching and see you in the next section. 29. Introduction to Checkbox Fields Automation Section: Hello. Welcome Toe Checkbooks Fields Automation section. In this section, you will learn about selenium, checkbooks, fields, automation. You'll see some symbol Java code to implement selenium. Checkbooks feels automation. You'll have a cui's a challenge and solution and finally, a section summary. Any questions? Please ask them now in the course forums, and I do the best way in sort of them as soon as possible. Thanks for watching and see you in the next lecture. 30. Checkbox Fields Automation with samples: Hello. Welcome toe check box feels automation with samples. Lecture now the lecture agenda. Go figure intelligent to support. Still in your projects checkbooks feels automation, concepts and then Sorry. No specific Java code related to check box fields. Automation. Let's start to configure intelligent E to load. All still immune jars libraries. I open intelli j. I will create a new project. Next. Next. Checkbooks, Project fish, then file project structure. More jewels, dependencies plus jobs for directories. We will select automation client jars. Okay, Okay, that's what Then you have toe enter Jarvis 10 months to start working on our automation project. But before does get big. You are. Listen. Now let's see. Silly new concepts related to check box feels automation. So we want toe automate the operation on any checkbooks field. So automatically toe have this check box checked or unchecked, depending on our logic, we want to implement how we can achieve this very easy to use. Find element method in the Web page and tow locate. We can use different methods like by a D by name by eighth Beth or by Sisi's selector. The preferable way in this case is to use by 80. So we have the check books in here in the source code. He's showing us that the I d off this chick books is t O is first. So as you are having in here, so is not very complex thing to automate the checkbooks Fields. Please know that that the perimeters are case sensitive either, In this case, toe use names you can rely directly on by name, method and just and of the name off the element. Let's try to put all the components together in a Java project. The imports part. So statements to import the library's. Then the Web driver set up in the main area. The U R l of the webpage were Our form is located. Now this search for the desire element ready to check box in the weapons. So we're searching by a D with its idea. Teoh is first and then either can choose click or the alternate way possible tow. Avoid the issue on Internet exploder to send keys and then a space. This is the page that look like and we're tryingto automate the chick books selection. That's right. Two implemented these in our project. Please know that the Java code is available in the resources and we're starting from that point on. Okay. You know, project that's entered the code, the imports and then the main class and the main method. Where are the web driver? Set up state months, then the u R l of the webpage. We're trying toe visit this u R l with Internet Explorer to check the details. The form is in here. There's do some investigations and as you can see, these checkbooks is having t o is one as I d. Let's get back to the project, Okay? Our Web element is located by using I D. Method as Perimeter two is one. And then either we can called a click method or to avoid a known issue in Internet Explorer . I proposed to use San Keys and then a space is around the program. As you see, the checkbooks is selected very where any questions. Ask them now in the course forums, and I tried to answer to them as soon as possible. Thanks for watching and see you in the next lecture. 31. Challenge and solution. Checkbox Fields Automation section summary: Welcome to check Box feels automation Challenge in solution section summary Our challenge is to automate the selection and choose. I like bikes. Checkbooks Field, Please note that the Ural we are working on for this challenge is different than the previous one. So we have Tosa late. Www Continuous Learning Academy dot Guru Resources to checkbooks. I'll post the video to let you finalize the challenge. After this, I will get back with a solution. Hello again. Welcome back Now the solution Toe the checkbooks challenge. Let's open directly Idea Studio to create a new project for this challenge. Okay, create new. This is called the Project Checkbooks Challenge. It's open more Jews, dependencies plus jobs for directory towards all the selenium client components. So client libraries jars okay then will face the code from the resources representing the solution to this challenge. Okay, let's take a look. The imports, the main area the with driver set up. Everything in here is elated. Toe Internet explorer. Okay, then the urine. We're tryingto automate. Visit this rural to see the details. Okay, Internet Explorer will have this simple for so we're trying to automate a selection off. I like bikes so something ladies, This press f trail And then let's select this element see is detail. So its name its bikes with the value bike. So is really one for us. Toe. See that the name is bikes. So let's get back toe intelligent. Okay, intelligent can use the same checkbook for chair. Pose to whatever you have to rename also in this case, toe to keep consistency in the variable names. So let's use the nematode to search for the element with bikes as perimeter. After locating this Web element, what you have to do is who prays a space toe emulator. Click on that cheque Books is around the cold to see the result. Well, then, Excellent. So the I like bikes. Checkbooks is safety now. Great. Well done. What you learn into this section, you learn specific selenium. Checkbooks feels automation concepts. You learn how to create Java projects to implement selling you checkbooks, fields, automation, Any questions? Please ask them now in the course forums, and I'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next lecture 32. Introduction to Secure Access and Popup Login Automation Section: Hello. Welcome to secure access in public in automation section. In this section, I don't teach you selenium, Secure Access and Pope Rob Logan Automation Concepts Specific Java code for implementing selenium. Secure access in pop up Logan automation projects. Then you'll have a Cui's and the challenge together with a solution and finally, a section summary. Any questions? Please ask them now in the course forms, and I'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next lecture. 33. Secure Access and Popup Login Automation with samples : welcome to secure access in pop up Logan Automation with samples lecture, lecture, agenda working together. Although it insulin you, then we'll see how we can configure auto it. Editor for Pope Up Logan. How can configure in Terry J. I. D. To support selenium projects, then some specific concepts you guys toe pop up. Logan Automation will see how we can develop selenium specific Java code to implement pop up Logan automation projects. Now let's start with working together. Although it and selenium what we're proposing now is to be able to access some private areas in an automatically way. Let's imagine that were visiting this address in here and automatically a pop up window will show up waiting for us to enter a new user name and the password in order to be able to access the content. So what we're proposing now is to automate everything in this regard, to be able to access this private area in a pro grammatical way. Let's understand now the components in the interaction so we have also it, which is ableto handle windows in general that are known HTML while selenium, it's ableto handle only were based applications, so we are combining these two main components to implement pop up Logan Automation, in short from the Selenium client, will launch, although it component that will trigger the Pope Pablo gin. And then we'll enter specific user invested information. And finally, we'll get access to the private area. Now let it dive into the taste. So first of all will configure, although it component by launching the editor After we're launching the editor, we are launching a tool A used three in four. In order to obtain Windows de tastes such as Win Those Titles will pop up title information in the Auto It Editor will enter specific commands, toe automate the user and password interaction. Let's take a look over this code so this tainment will wait for a window having Windows Security title for 20 seconds to appear. If such window exists, then we're having two variables. User name and password, in which we're having this ring and this one related to the pestle. After this step we're sending, we're emulating. Keep restless, say we're entering the user name, followed by a tab. The key. Then we're waiting for one second After this step, we're sending the password 123456 We're waiting, steal one second and finally we're pressing in 30 in orderto submit the user impersonal information. So now the if condition is finalized after entering the information in tow. Although it editor, What we have to do is to save this file preferable in automation or to eat location. We're having with a specific name and also will build the executable file, as you see in few seconds Indian who have the source code for although it file and also the exit file file that can be used to automate the user and vessel authentication on a private area for a website. Let's try now to do this together. Let's open the a detour now. Then let's open the element. Identify tool. Then let's open Internet Explorer trying to visit the private area. We're trying to visit this area and, as you see a pop up window is appearing waiting for us to enter and user name in the password. In order to get this pop up window information, I am pressing the finder tool and then move over the pop up window we're having now. The title off the window is some other technical details for the moment, Red, even for us. Is the window tighter? We're in the auto it editor. We're pasting the code we're having in the resources in order to short on the video and simplify the learning. Let's discuss now the statements. So we're waiting for 20 seconds for a such a pop up window to appear. If the window is there, the couple window is there. We're activating the window and then raising two variables. As I mentioned with pushing this information toe that apoquindo first user name. Wait one second and the purse work. Wait one second and finally we're pressing Enter. So that's all this right to save the file file Save. We're saving the file on the C drive in window computer automation or great. Let's give it the name. See they User Lissy. After these, it's build the executable file. Okay, let's see the result. So we have one file, which is the applications An Excel file and this is the source code. So let's get back to the lecture to configure intelligent E for a selenium project. It is very easy. We have toe load all selenium jars, libraries in our project. The Strait of It is right now. I open intelligent. They Then let's choose. Create new project. Next this Gator project from Template. Just give it the name. Pop up again and fish to load. Civilian jar libraries file project structure modules, dependencies plus jars from directories. There's not get on the automation client lesson it. The jars in the library folder. It's OK. And then Okay. So in this moment we're having a selenium project loaded with all selenium client libraries in here. Let's move on. In orderto call the auto its script, we have toe run this statement. Runtime get run time. Exactly. And the full path toe our exit file. So please, no, that the file in here is the one that was build it by the auto it editor. Take care off the best separator in order to work on Windows operating systems. Let's try to put all the components together in a Java project, right. Okay. First of all the imports than the main area related toe were driver set up. We're still using Internet Explorer, and then this new statement we're having is the one which will lounge will execute this file created previously by Auto IT editor. After the step, we're navigating toe a private area to these To these your air. Excellent. So we're having the second window the group up displayed. We're entering user and pastor there. Race. OK. And finally, we'll obtain such nice screen. Welcome to the private area. Let's get big to, uh, our Java project to start the development we're now in intelligent e will start from the code available in the resources. So, first of all the imports, then the web driver specific. Sit up. No in tray kitsch area. We're trying to launch the order it script. Please take a look on these. So we're running this file then we're trained to visit this private area so the file will enter for us. They use their name and pestle in that pop up Logan. That will appear when we're trying to visit a private area. He's tried to run the project. Now get all the way to lender user impressed. Wait for us in the pop up window and welcome to the private area. Excellent. We manage it automatically, Logan in a private area by using although it components together with selenium code. Any questions. Please ask them now in the course forums, and I'll do the best to answer to them as soon as possible. Thanks for watching and see you in the next lecture. 34. Challenge and solution. Secure Access and Popup Login Automation section summary: Hello and welcome to this lecture. No, you'll have a challenge, a solution and a section in some way. No, the Children is automated. The secure access and log in for this cravat area using the user challenge in the password secret. Let's open together now. This private area to see once is happening there. Okay, So in order to access to this private to area, we have toe enter and user name in the best word secret. Okay, we want to automate this access to go. So let's get back to the challenge. I'll post the video for a while, not to let you finalize the solution. Welcome back. I'm sure that you manage to have a proper solution in place. But let's see my view on the solution. We have to configure although it editor to use a new user name in the new presser so challenge as user name and secret as a passer. Let's open or to Italy to right now. Okay, so let's start from the previous cold. So let's use challenges using him and she greeted special. Then the civis looking challenge. It's built the Excel file. Okay, let's check the result. So the file isn't here. Let's get back. Toe the list. Lecture. Okay, Now let's write some java code to call the auto. Find it. So we have to use this name. And then the euro were visiting. Is the one with private too? So let's try toe. Create a new project in desert, so create new with this template. Okay, Roebuck. Morgan Challenge. Okay, let's load selenium client libraries from a client key. Then let's use the code from the resources and toe start. Though it's script we have to use the new name, the Logan Challenge and the address. He's the one we to private too. This round the cold. Well done. Excellent. We managed to again to the second private area. Congratulations. What you learned into this section you learn key concepts related to selenium. Secure access in poor public. You know, commission. You learn how to create also excrete in Java code to implement selenium, secure access in public in automation projects. Any questions? Please ask them now in the course forums and I'll do the best to answer to them as soon as possible. Thanks for watching and see you in the next section. 35. Introduction to Assertions Section: Welcome Toe Assertions section in this section, I will teach you the common assertions with selenium, the Java code for implementing common assertions with selenium. Then you'll have a Cui's a challenge in the solution. Finally, a section summary. Any questions? Please ask them now in the course forms, and I'll do all the best to answer to them as soon as possible. Thanks for watching See you in the next lecture. 36. Easy way to approach Assertions with samples: Welcome to this lecture. The lecture agenda Configuring Terry J to support selenium projects Common of sessions, selenium concepts. And the key element is to write selenium specific java code to address the commonest sessions. Let's start by configuring intelligent e environment toe work with selenium libraries. So let's reach to the intelligence A I D. Right now. Okay, I opening TJ creating project. We'll use the same template a sessions has given. Name A sessions. Project file. Project structure modules, dependencies. Last jars for directories will select automation client libraries in the jars. OK, and then Okay. So our civilian libraries are available to be used. Okay, let's get back to the lesson. Okay. What are the sessions? A sessions provide a way to the users to validate any kind of test a session. Results are based on the comp aeration off actual and expected results. For example, if you want to check if the specific we're based title is there to compare, I would expected result with the actual result. You can do these bayous sessions if you want to compare any text in the webpage to check if a specific text is there is in the weapons you can do this by using a sessions. So is the pace cited as expected, or does the text exists in the webpage? That's very easy toe. Perform a such checks by using, assert, object and assert equal method, providing our expecting title and the actual one from the driver we're using and the Metal gate title there. So this is the title Foreal, and this is the expected title for the webpage. Or you can assert True Amazing. That's a true method taking in the page source in the HTML page. If a specific text demo in this example is there, please note that for bigger pages, bigger HTML pages this method can take a while. So from performance perspective, they have Toby very conscious when we are using this method. Other methods were using to check the sessions assert equals to compare if a specific value is there. If this is equal, is that true to check if the reason the result is true or false as air force or asset no to compare give the result is no doesn't exist anymore, Let's try to put only components together in a Java project. First of all, we have the imports and one specific line toe work with the sessions, then the Web driver. Sit up for Internet Exporter, you know, keys. The u R L. We are paging. You are working on for the webpage. He's the one with the stations. Then, you know, try kitsch block. We're waiting for a while for one 0.5 seconds for the Web page to load. And then we're trying to check if the page has cool title. If yes, If True. If we're on the try area the testes past and the webpage has the same title as expected. Otherwise, you for kitsch. His trigger, an exception is raised, so our test is failed. So the page title is different than the one we're expecting for straight to visit this page and then to do some development in the end, a deejay environment. Okay, open Internet exploder, the address we're working on. So no, if you are looking into the tastes, they have the page title. Are surgeons with Selena? You? This is the pace title in here. We're having the text inside the webpage from Barton. That can be praised. Let's get back to the Internet. Intel. Ajay will start from the code available in the resources. Okay, the with drivers. Sit up. Okay. The webpage. Where automated. We're trying to automate. We're waiting for 1.5 seconds for the webpage to load. And then we're checking if the space titled the actual driver provided beach title is equal with cool. Tighter. If it is true, will display this message. Are the rest will display just face. That's executor code. There is a mission here, so just try toe quick fix are doomed for to the class pet. Okay, you can use directly the intelligent e distribution library. Okay. And then that is a good. The project you're seeing is fine. The sea The session resulted. The page title is different than the expected one. Why? Because we're expecting cool title. And for really the title. We have assertions with silly new. Any questions? Please ask them now in the course forums, and they'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next lecture. 37. Challenge and solution. Easy way to approach Assetions section summary: Welcome to the section summary. Let's have now a challenge for you in regards to a sessions. So please check if the webpage body contains a session result. If it is true, display this bus. Otherwise, our this is failed. So we have to display this failed message judges were using is the one from below. I'll pose the video for a while to let you finalize the challenge. Then we'll get back for the solution. Welcome again. Let's see the solution All. So what you have to implement is to check the session result text in the weapons. So we're opening. You said address and then we're checking us a true using the page source. If contains assertion, results, everything inside the try kitsch. Look, if the result is true, we have toe display best best message, and the race will display this fit. So let's try to see these right now. Okay? We're using the previous code from the accession project, and we'll have to change this spark to use this time. So true. That's true. Then driver, baby source. Come days A system. What is that? Okay. If yes, just let's display test path under restless display passed the test failed. Okay, that's exactly the code now. Okay, So our test this past Miko's the text were searching for They're searching for a session result. So a session results using here it seemed the Whippet great. Well done. What you learn in this section, you learn the key concept related to selenium. Common assertions. You learn how to create java code to implement silly new common assertions projects Any questions, please ask them now in the course forums and I'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next section. 38. Intro to the Case Study: Create a Real Website Project Section: Hi. Welcome. Case Study section. Now let's see the section agenda. Skate your project. Create a really functional testing automation project with silly new get the projects or scold the entire source code available. India and you have a challenge together with a solution and a section summary. Any questions? Please ask them now in the course forums, and I'll do all the best when served to them as soon as possible. Thanks for watching and see you in the next lecture. 39. Sketch Your Project! : welcome to schedule Project lecture. I would take a look to the rial projected scenario that needs to be automated, then will have a review off the main selenium concepts discussed so far. So let's try to understand the projected scenario we're trying to automate. So we want to automate the functional testing for the register area somehow toe have automatically user registered on this website, the website. Others He's the one from below. Www continues Learning Academy dot guru Resources to wear site. Now let's see that a scenario detail. So we have toe verify the register area to confirm that everything there it's in place. It's working fine. So we're running a tous keys to enter very data for side registration. You have specific steps so we're visiting the website. Then we're performing a click on the register hyperlink. After this step in the form we have toe enter the full name. We have to select the preferred language German. You can select female as a radio bottom. We're entering very information for user name email Password will agree on the tension and conditions then were submitted for. We'll press the submit button in finally using assertions were very find out. We have some Thursday time here, for example, for ah, use the name you can coordinate was specific. Take string with four digit random Rendall number expected result is to have successfully the user registry it in the end, you have to verify if the Allgood contains that specific string starting with you have resisted with the email. Okay, so let's try to visit that website to see how the form look like. Okay, I'm on the website. It said them a website. We have to go select register, So it's ah, standard hyperlink. If I am pressing it, I can check this hyperlink. We register and then you have a four. Which full name name is full Name a drop down list for prefer language radio buttons, user name, E mail breast will feel checkbooks. And finally did you said, uh, bottom to submit before. Okay, so we have to enter some Berries before submitting the for. So let's get back to the lecture. Let's review the main concepts. When we were working with hyperlinks, you can find element by using link text is the easier way and then the register in our case and then click that hyperlink. You can use the method Click Order, dealt an adoption to send keys and then to send the enter key for input text you have tow, find element by name or by a D. And then we can directly send specific text information as I'm having in here called you when working with select least. First of all, we have toe search for the silica list in the webpage by I D. In this case, lengua hundreds. After we're locating that element, we can select an option from the drop down list by visible text using the methods select by visible takes and then value from the drop brownies visible very from the parties who radio bottles. I'll search by a D and then as perimeter. I'm providing the I D from the HTML page and then to select the specific radio button. I can use either the click method or dealt in it way to send keys and then a space key for the chick books. It's quite similar with the radio bottle. So first of all, we are searching for the desire element in the webpage by a D when providing the I D and then to select that checkbooks. Either I can use click or the alternate option to use sin keys and then the space for bottles. In some, it feels Soto submit the form with all the values. First of all, I have to search in the weapons for that element by name. You can see in here the name is sign up. After we're locating this element, we can use the method click or the alternate option sin keys and then to provide the space key. He's right. This tried to put all the components together in a Java project. Any questions? Please ask them now in the course forums. Thanks for watching and see you in the next lecture. 40. Create a Real Functional Testing Automation Project : Hi there. Welcome to create the rial Functional Testing Automation Project Lecture. No, I will teach you how to configure intelligent to support the new projects and how to create a really functional testing automation project with still in you. It's stuck by configuring intelligent e to load all selenium jars libraries. Okay, let's create a new project. Next. Let's use the same time plate his given name Really project. Let's see. Feast on this project. Its load All the selenium libraries. Okay, Client, Both jar files and library Fuller. It's OK. Excellent. So we're ready to start working on this project. The goal off are really testing Automation Project is toe automate the functional testing for register area in the website. So mystery to do these I love the code from the recesses. Okay, let's discuss each individual section. So first section is related to the web driver set up. Next is toe. Specify the website. You are l on that website. We're searching for register hyperlink. We're entering into the site. We're waiting one second. Well, im not one second. Two seconds in here. Two seconds for the web based to load. Then we'll search for the full name and well, provide some stringing here. Then we're searching from the drop down list in the webpage by name, using language. After we have locating that drop down list, we're choosing the German option. The German language. Then we're search for the radio button RB underscore Female one. And then we'll click will select that radio bottom. This section is related toe random number generation were generating a string with four digit. That will be, uh then concatenation did with the user name. So we have a fixed part on the user name and then some number, Which four digit in the end. Okay, after these, we are sending this value is random value to the you name element in the webpage. Then we are working on email address. We'll test using this email address. We're providing a password them We have to select the chick box in the web page. Then I'm selecting that checkbooks. Indian. We are taking care off. Submit button. So we are searching for sign up button in the page. And then we are pressing space on that button to submit the form. We're waiting now. Two more seconds for the weapons to load In the end, we have some decisions in which we're trying to check if this string is displayed in the weapons after we're doing the registration. Here's the thing. Is there that this case is passed. Otherwise have a test failed. So the expected output is not there. So let's tried to run the code. Well, as you see, you have on issue here but tried to fix it together. Okay, No problem. Let's at Juneteenth for to the cleft bet we can use directly Intelligent e library. Okay. And now we have a fine. Excellent. So now the values will be entered in this four in orderto finally have the registration that so first of all is the full name. Then the radio, the drop down list on the radio and now the user name We'll see on the user name also the random number in the end. Now the email and then the best part, the checkbooks. And finally we have to press the register button. Ok, Excellent. So the registration is done. Let's see the result off our reception to see if these test passed or not. Okay. So as you can see in here the testes past the whip. Egx contains the expected output. Congratulations. Any questions? Ask them now in the course forums, and I'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next lecture. 41. Project Challenge and solution. Case Study: Create a Real Functional Testing Project: welcome to case study section summary. Now we have a challenge, so please check if the first webpage title contains Dema website Rear functional testing Automation project with still in you. If you please display test pass otherwise please display test failed. The site we're working on is the one from below Www continuous Learning Academy That guru resources to website. I'll post the video for a while to let you finalize the challenge. Then I would be back with a solution. Welcome back now The solution This is the Ural we are opening with the website address and then we have ah variable as a string variable with our fixed we're searching for and then in a tray kitsch block we're using on a session to check if our text is equal with the one from the page title from the rial based title. If it is true, we're displaying test passed. Otherwise we are displaying test failed since on exception will be raised to illustrate to get back to our less project on the rial case study. Okay, I'm back in intelligence on the rear project. Who can you have the web driver set up? We have the u R l We are working on its fine is the same everything from here. Until here we can comment this work from here. Okay, so let's check. Ah, assert equal discreet drink variable my title. But our desire data okay and then are using us. Hit it equal. Okay, my title and driver get title. If it is true, this best has the expected title isi. Otherwise the weapons doesn't have the expected title. It's a simple project. Now is right que The site is loaded with f trails can tick the page dieting Just one. This is the website title. Let's get big Three intelligence to see Oh, artist is best So the page has the expected title Great Well done In this section you learn how to approach the project how to write Java code to create really functional testing automation project with still in you Any questions? Please ask them now in the course forums and I'll do all the best to answer to them as soon as possible. Thanks for watching and see you in the next section 42. Bonus: Working with Edge, Chrome and Firefox. Selenium Multibrowser Automation: welcome Toe edge chrome and Firefox browser automation with samples. In this lecture we'll see how we can configure intelligent to supports Iranian project, How we can work with age or with grown we're Firefox browsers and how we can implement multi browser automation with selenium. Now let's start to configure the DJ environment. I will create a new project. Let's call it multi Broza and fees. Okay, it's low. The selenium libraries. Okay, dependencies, glass jars for the victories. Information client library injures. Okay, that's all for the moment. Let's get back. Draw! Listen how we can work with EJ Groza. So, first of all, who have to download the appropriate driver the appropriate were driver for EJ from the official website. Okay, lets do this together now I'm on the main selenium website from here. I always select Microsoft Age driver and then from the download and download the latest version. You're safe. Okay, then I'll copy these with driver to our location in the automation drivers. This is for Microsoft Age really did perform this. So please note that the location is very important where we're coping the driver. Okay? Please note also that the Edge browser have to be is told working with Chrome browser will do the same, will download the web driver and then we'll copy on a specific location in C automation Drivers for Windows machines destroyed. To do these together. Okay. From the main website, we're selecting Google Chrome and then later release. Okay. And from here we're selecting the Windows National Lennox, or elevation. Depending on your operating system, I will save it. Okay. It is downloaded and copies to our location. In automation drivers, you have to extract the fire from get hives so right click open with windows XT ordered, for example And then I'll copy this file in our driver's location. So the Cromwell driver is here. Please note. We need tohave chrome browser installed on our machine working with Firefox. So we beat the same sequence off tips. But we're working for Firefox with Mozilla Jaco driver. So I would visit the main website. We'll download the release from their website. After these, we'll extract their hive in tow Driver's location, for example Of windows you can have see automation drivers just tried to do this together. I'm on the main selenium website on the Donald section and then we'll select Mozilla Jack a driver. Okay, Releases. And from here, depending on our operating system, we will choose one of high. Let's select this one. Okay, The file. It's carpeted here. I moved the file your location and drive us and then right, Click over with Windows Explorer and I will select the Jiko driver. These were driver is necessary for Firefox to run. Okay, so in summary you have one word driver for five folks, Another one for chrome, Another one from Microsoft Age in the initial one for Internet IQ score. Okay, Please note that Firefox browser have to be installed in order to be used in our automation testing. Okay, now let's outline the text fields automation so there is no difference between browsers were using When we're trying to select an element in the weapons, for example, can select by name then for this text field. Ah, to send some techs, various clothe you Other methods we can use as you remember is by a D by name. Makes better by citizens selector. Please know that a perimeter is case sensitive. Let's try to put all the components together in a Java project No. Take a look on the import area. The import. It's a little bit different, depending on the browser were using. We have towards specific line for edge. We have to import this one for the chrome browser. Have to import room driver or the fire folks you have to import transforms, Rival. Okay, now, for the age was difference on the main area. So the Web driver set up section have to be changed a little bit to invoke the edge with driver. So if you remember, we already copied that. We're driver for edge in this location and then we have to initialize our driver using New Edge driver method. After this, everything, it's the same. Now let's see what is different in case off using chrome. So we'll driver set up for chrome is having this property, mentioning the Web driver for chrome location and then new chrome driver. And from this point on, we'll work as it is so far for fire folks, the Web drivers sit up is using Firefox with driver. So Jekyll were driver. So have toe ad this property to our with driver for fire folks and then new Firefox drive after the Web driver set up is done. We have to specify our your l We are trying to automate and then to search an element in the webpage and after these to send some keys. For example, if it is a text field, so no difference in this regard. So let's try to do this together into open the edge, the chrome or Firefox Willbros. Okay, we are in Terry J. I will place the cold from the resources to start discussing directly right now. So one issue related to the session. But we will fix these soon on the Web driver set up, I have to change. But where they had in the past on the Internet Explorer with some other specific browser de tastes. Either it is age chrome or Firefox. Let's ah, start for the moment with chrome. Okay, so we are We're initializing the Cromwell driver and then No, you are ill. We're waiting one second for the page to load and then can enter some elements in the forms there. Okay. As you can see, we are not using any. A sessions on this line can be workout. Okay, Just try to see the phone chrome. Everything is working fine. As you can see, everything is working fine. So also, you can take a note. The message is displayed on the top thing that the Chrome browser is controlled by the automatic test software, so he's fine. Let's get back to the source code. Could test with Microsoft Edge. Okay, so let's comment. Chrome with driver. Let's on comment The age life. So we're sitting a property to the age with driver and then we're creating an object specific forage. Just please take note. I didn't change anything below. We're entering the same value in the form. So let's try to run this for the week for the edge with driver. Okay, and everything is working fine. So we are on a judge and the text is appearing in our for Let's get back to see how we can work with Firefox now. Okay, I'll comment this line, and I'll uncommon the fire folks, but so we're sitting a property to the fire folks. Specific driver. We're creating an object for five for driver. And from this point on words, we're working similarly as we did so far. So let's around the coat. Excellent. So we are on the fire. Folks in the commission is working. So we have the value in here. Great. Thank you.