Tan115 commited on
Commit
f664a1a
·
verified ·
1 Parent(s): 5f0744e

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +12 -0
  2. 05 - Design Test Cases Effective Test Case writing/003 Standard Test Case Format.mp4 +3 -0
  3. 05 - Design Test Cases Effective Test Case writing/005 Test Case Column Description.mp4 +3 -0
  4. 05 - Design Test Cases Effective Test Case writing/006 Test Case Column Pre-Conditions.mp4 +3 -0
  5. 05 - Design Test Cases Effective Test Case writing/007 Test Case Column Steps.mp4 +3 -0
  6. 05 - Design Test Cases Effective Test Case writing/008 Test Case Column Test Data.mp4 +3 -0
  7. 05 - Design Test Cases Effective Test Case writing/009 Test Case Column Expected Result.mp4 +3 -0
  8. 05 - Design Test Cases Effective Test Case writing/010 Test Case Column Actual Result and Status.mp4 +3 -0
  9. 05 - Design Test Cases Effective Test Case writing/011 Test Case Column Comments.mp4 +3 -0
  10. 05 - Design Test Cases Effective Test Case writing/012 Test Case Column Priority.mp4 +3 -0
  11. 05 - Design Test Cases Effective Test Case writing/013 Test Case Column Type.mp4 +3 -0
  12. 05 - Design Test Cases Effective Test Case writing/014 Test Case Column Bug Id.mp4 +3 -0
  13. 06 - Test Case Designing Techniques (BVA, ECP, Experienced Based)/002 Boundary Value Analysis (BVA).mp4 +3 -0
  14. 29 - Read & Write Excel Data(Xlsx file) OpenPyXl package (Advance Library)/003 Read All Rows & Cells Data_en.srt +300 -0
  15. 29 - Read & Write Excel Data(Xlsx file) OpenPyXl package (Advance Library)/004 Write Data to Excel_en.srt +480 -0
  16. 30 - Learn Element Locators/001 Section Introduction & Practice Target_en.srt +100 -0
  17. 30 - Learn Element Locators/002 What is Element Locators Why we use Element Locators_en.srt +352 -0
  18. 30 - Learn Element Locators/003 Understand basics of HTML to Fetch Element Locators_en.srt +568 -0
  19. 30 - Learn Element Locators/004 Locate or Search Element uniquely on the Page using Element-ID_en.srt +236 -0
  20. 30 - Learn Element Locators/005 Locate or Search Element uniquely on the Page using Element-Name_en.srt +172 -0
  21. 30 - Learn Element Locators/006 Locate or Search Element uniquely on Page using Element-Link text(inner text)_en.srt +184 -0
  22. 30 - Learn Element Locators/007 Locate or Search Element uniquely on the Page using Element-Class Name_en.srt +80 -0
  23. 30 - Learn Element Locators/008 Locate Element by CSS - Syntax 1 - using ID & Tag with ID_en.srt +212 -0
  24. 30 - Learn Element Locators/009 Locate Element by CSS - Syntax 2 - using Class Name & Tag with Class Name_en.srt +160 -0
  25. 30 - Learn Element Locators/010 Locate Element by CSS - Syntax 3 - using any attribute & Tag with attribute_en.srt +168 -0
  26. 30 - Learn Element Locators/011 Locate Element by CSS - Syntax 4 - using ID with attribute &Tag with ID & attrib_en.srt +152 -0
  27. 30 - Learn Element Locators/012 Locate Element by CSS - Syntax 5 - using Class & Attribute_en.srt +136 -0
  28. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/001 Locate Element by Xpath - Syntax 1 Use Single Attribute_en.srt +284 -0
  29. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/002 Locate Element by Xpath - Syntax 2 Use Multiple Attributes with OR condition_en.srt +304 -0
  30. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/003 Locate Element by Xpath - Syntax 3 Use Multiple Attributes with AND condition_en.srt +124 -0
  31. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/004 Locate Element by Xpath - Syntax 4 Use on place Attributes_en.srt +176 -0
  32. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/005 Locate Element by Xpath - Syntax 5 Use Innertext of Element_en.srt +144 -0
  33. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/006 Locate Element by Xpath - Syntax 6 Use Partial Innertext of Element_en.srt +156 -0
  34. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/007 Locate Element by Xpath - Syntax 7 Use Partial Attribute of Element_en.srt +144 -0
  35. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/008 Locate Element by Xpath - Syntax 8 Navigate through Parent (Axis)_en.srt +428 -0
  36. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/009 Locate Element by Xpath - Syntax 9 Navigate through Child(Axis)_en.srt +172 -0
  37. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/010 Locate Element by Xpath - Syntax 10 Navigate towards Sibling(Next & Previous)_en.srt +208 -0
  38. 31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/011 Locate Element by Xpath - Syntax 11 Use Parent, Child & Sibling_en.srt +260 -0
  39. 32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/001 How to Setup Selenium Library on Python using PIP_en.srt +96 -0
  40. 32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/002 Write First TestCase Open Browser Enter URL Maximize_en.srt +568 -0
  41. 32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/003 Work on TextBox Enter data into textbox_en.srt +304 -0
  42. 32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/004 Work on Radio Button Checkbox Link Button_en.srt +424 -0
  43. 32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/005 Work on Dropdown or List Select values from list of Dropdown_en.srt +384 -0
  44. 32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/006 Execute Test Case on Firefox Browser (Cross Browser Testing)_en.srt +180 -0
  45. 33 - Keyboard & Mouse Operations ActionChains Class/001 Perform Keyboard Operations Press Single Key, Multiple Keys_en.srt +556 -0
  46. 33 - Keyboard & Mouse Operations ActionChains Class/002 Perform Mouse Operations Left Click, Right Click, Double Click, Drag and Drop_en.srt +460 -0
  47. 34 - Fetch Data at Runtime from Application and Elements/001 Fetch Page Title Page URL Page HTML Source code_en.srt +276 -0
  48. 34 - Fetch Data at Runtime from Application and Elements/002 Fetch Element Text(Inner text) & Attribute Value_en.srt +244 -0
  49. 34 - Fetch Data at Runtime from Application and Elements/003 Fetch Values from dropdown or list_en.srt +256 -0
  50. 35 - PyTest Unit Testing Framework for Python (Use to Execute Test Cases)/001 PyTest Introduction What is Pytest and How to use Pytest_en.srt +256 -0
.gitattributes CHANGED
@@ -57,3 +57,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/001[[:space:]]Introduction[[:space:]]to[[:space:]]Test[[:space:]]Case.mp4 filter=lfs diff=lfs merge=lfs -text
58
  04[[:space:]]-[[:space:]]Practical[[:space:]]Testing[[:space:]]Process[[:space:]]When[[:space:]]Tester[[:space:]]find[[:space:]]a[[:space:]]Bug[[:space:]]and[[:space:]]do[[:space:]]Bug[[:space:]]Reporting/006[[:space:]]Difference[[:space:]]between[[:space:]]Smoke[[:space:]]Testing[[:space:]]&[[:space:]]Sanity[[:space:]]Testing.mp4 filter=lfs diff=lfs merge=lfs -text
59
  05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/004[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]ID[[:space:]][[:space:]]Test[[:space:]]Case[[:space:]]Number.mp4 filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/001[[:space:]]Introduction[[:space:]]to[[:space:]]Test[[:space:]]Case.mp4 filter=lfs diff=lfs merge=lfs -text
58
  04[[:space:]]-[[:space:]]Practical[[:space:]]Testing[[:space:]]Process[[:space:]]When[[:space:]]Tester[[:space:]]find[[:space:]]a[[:space:]]Bug[[:space:]]and[[:space:]]do[[:space:]]Bug[[:space:]]Reporting/006[[:space:]]Difference[[:space:]]between[[:space:]]Smoke[[:space:]]Testing[[:space:]]&[[:space:]]Sanity[[:space:]]Testing.mp4 filter=lfs diff=lfs merge=lfs -text
59
  05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/004[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]ID[[:space:]][[:space:]]Test[[:space:]]Case[[:space:]]Number.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/003[[:space:]]Standard[[:space:]]Test[[:space:]]Case[[:space:]]Format.mp4 filter=lfs diff=lfs merge=lfs -text
61
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/006[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Pre-Conditions.mp4 filter=lfs diff=lfs merge=lfs -text
62
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/005[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Description.mp4 filter=lfs diff=lfs merge=lfs -text
63
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/007[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Steps.mp4 filter=lfs diff=lfs merge=lfs -text
64
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/010[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Actual[[:space:]]Result[[:space:]]and[[:space:]]Status.mp4 filter=lfs diff=lfs merge=lfs -text
65
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/011[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Comments.mp4 filter=lfs diff=lfs merge=lfs -text
66
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/009[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Expected[[:space:]]Result.mp4 filter=lfs diff=lfs merge=lfs -text
67
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/008[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Test[[:space:]]Data.mp4 filter=lfs diff=lfs merge=lfs -text
68
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/014[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Bug[[:space:]]Id.mp4 filter=lfs diff=lfs merge=lfs -text
69
+ 06[[:space:]]-[[:space:]]Test[[:space:]]Case[[:space:]]Designing[[:space:]]Techniques[[:space:]](BVA,[[:space:]]ECP,[[:space:]]Experienced[[:space:]]Based)/002[[:space:]]Boundary[[:space:]]Value[[:space:]]Analysis[[:space:]](BVA).mp4 filter=lfs diff=lfs merge=lfs -text
70
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/012[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Priority.mp4 filter=lfs diff=lfs merge=lfs -text
71
+ 05[[:space:]]-[[:space:]]Design[[:space:]]Test[[:space:]]Cases[[:space:]][[:space:]]Effective[[:space:]]Test[[:space:]]Case[[:space:]]writing/013[[:space:]]Test[[:space:]]Case[[:space:]]Column[[:space:]][[:space:]]Type.mp4 filter=lfs diff=lfs merge=lfs -text
05 - Design Test Cases Effective Test Case writing/003 Standard Test Case Format.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4a88acfd93b59ddef546d30941158ea0301915a4eeeb86a606a7edae1563c58
3
+ size 28819760
05 - Design Test Cases Effective Test Case writing/005 Test Case Column Description.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b1b9e9924b6eec65c7291f72945e8a2c0d7608ec9be4615253559332f848737
3
+ size 21129804
05 - Design Test Cases Effective Test Case writing/006 Test Case Column Pre-Conditions.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9bef6ae18cc104865c8716c1b8950e67beb64276f47a7966e2febf868fa87b0
3
+ size 31031015
05 - Design Test Cases Effective Test Case writing/007 Test Case Column Steps.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d6d5c7cbb8a9af6204adf2183d4bc0a39fb7cd49f62b9e889dc741d2c44ded2
3
+ size 33409555
05 - Design Test Cases Effective Test Case writing/008 Test Case Column Test Data.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb3c4b6996dd1c6e3c32a8cb8292d31f8ae899b01abea25fa801dcf1b00e273b
3
+ size 68813664
05 - Design Test Cases Effective Test Case writing/009 Test Case Column Expected Result.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:799a1b93be511d36f522e6cb594eed415d7005d223ae3084bbd908a3c7fde23f
3
+ size 43390478
05 - Design Test Cases Effective Test Case writing/010 Test Case Column Actual Result and Status.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:810d30044e3adc41c94bd2430f56f466f4f9c1559eb042fab5b0676584a70a35
3
+ size 28567746
05 - Design Test Cases Effective Test Case writing/011 Test Case Column Comments.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c301d7c13c76760896a2316a4080509e52871c4de5dafd65a46a92d0705a212
3
+ size 13842136
05 - Design Test Cases Effective Test Case writing/012 Test Case Column Priority.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f44b8cbdfacbdca4f5a07d84a72fe76e6ce45d5538b3996ebc4e9a1bfc7bb03f
3
+ size 38218638
05 - Design Test Cases Effective Test Case writing/013 Test Case Column Type.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de22623e9d01b15a69db53efdedf303f870f53de91689e5e7537e8f497709a39
3
+ size 40259497
05 - Design Test Cases Effective Test Case writing/014 Test Case Column Bug Id.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1612452c0fa006c2a10869cf8000309003946cce2bf8e63a5026539763a4db5d
3
+ size 13626987
06 - Test Case Designing Techniques (BVA, ECP, Experienced Based)/002 Boundary Value Analysis (BVA).mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c7fbdf5b92290a766777192b057a3e0ddcadfd383d8e75e562a17d476e167cc
3
+ size 9799756
29 - Read & Write Excel Data(Xlsx file) OpenPyXl package (Advance Library)/003 Read All Rows & Cells Data_en.srt ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:09,000
7
+ So previously, we have seen how we can read data from Excel now to show you how we can read complete
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:10,000
11
+ data from the Excel myth.
12
+
13
+ 4
14
+ 00:00:11,000 --> 00:00:17,000
15
+ Previously I was passing from which cell you want to read data, but now I'll show you how we can read
16
+
17
+ 5
18
+ 00:00:17,000 --> 00:00:23,000
19
+ complete data from the Excel for reading the complete data from the Excel sheet.
20
+
21
+ 6
22
+ 00:00:23,000 --> 00:00:30,000
23
+ First of all, we should be aware about how many rules we are having with the data and how many columns
24
+
25
+ 7
26
+ 00:00:30,000 --> 00:00:32,000
27
+ we are having with data.
28
+
29
+ 8
30
+ 00:00:32,000 --> 00:00:36,000
31
+ So first of all, we need to find out how many rules we are having, so find.
32
+
33
+ 9
34
+ 00:00:40,000 --> 00:00:51,000
35
+ Roles, having data for that, we have option like I'm just storing into the rules and we have the option.
36
+
37
+ 10
38
+ 00:00:52,000 --> 00:00:57,000
39
+ As such, Doc makes a rule.
40
+
41
+ 11
42
+ 00:00:57,000 --> 00:01:04,000
43
+ It will find out how many rules we are having and in the same way I'm doing columns or columns is equal
44
+
45
+ 12
46
+ 00:01:04,000 --> 00:01:09,000
47
+ to as such -- because rules and columns are inside the sheet.
48
+
49
+ 13
50
+ 00:01:09,000 --> 00:01:18,000
51
+ So I mean, sheet object, not mix column, so that the maximum rules and maximum columns I want to
52
+
53
+ 14
54
+ 00:01:18,000 --> 00:01:23,000
55
+ print and check it is able to fetch it successfully or not.
56
+
57
+ 15
58
+ 00:01:23,000 --> 00:01:32,000
59
+ So print total rules are and rows variable is integer value.
60
+
61
+ 16
62
+ 00:01:32,000 --> 00:01:41,000
63
+ So if I want to print, I have to type got into that string format in the same way I'm just copying
64
+
65
+ 17
66
+ 00:01:41,000 --> 00:01:45,000
67
+ this total.
68
+
69
+ 18
70
+ 00:01:45,000 --> 00:01:51,000
71
+ Columns are and here I'll come columns.
72
+
73
+ 19
74
+ 00:01:51,000 --> 00:01:51,000
75
+ That's my variable.
76
+
77
+ 20
78
+ 00:01:52,000 --> 00:01:54,000
79
+ I'm just going to execute this.
80
+
81
+ 21
82
+ 00:01:54,000 --> 00:01:55,000
83
+ Let's see the answer of it.
84
+
85
+ 22
86
+ 00:01:57,000 --> 00:02:02,000
87
+ OK, here, the variable is wrong, so total rules are for but the column we are getting into.
88
+
89
+ 23
90
+ 00:02:03,000 --> 00:02:10,000
91
+ So I'm printing columns now, executing OK, the total rules should be four and column should be three.
92
+
93
+ 24
94
+ 00:02:11,000 --> 00:02:19,000
95
+ So if we check it here for entry and if I show you my Excel sheet, we have four rows and three columns.
96
+
97
+ 25
98
+ 00:02:21,000 --> 00:02:25,000
99
+ Now I want to read data from all the rules and all the columns for that.
100
+
101
+ 26
102
+ 00:02:25,000 --> 00:02:27,000
103
+ You know how we can go for the law.
104
+
105
+ 27
106
+ 00:02:28,000 --> 00:02:30,000
107
+ I'm going to look for.
108
+
109
+ 28
110
+ 00:02:31,000 --> 00:02:33,000
111
+ First of all, I'm running a look for rules.
112
+
113
+ 29
114
+ 00:02:34,000 --> 00:02:45,000
115
+ I in range and one to my rules, but I have two rules plus one.
116
+
117
+ 30
118
+ 00:02:45,000 --> 00:02:46,000
119
+ Why I'm giving rules.
120
+
121
+ 31
122
+ 00:02:46,000 --> 00:02:56,000
123
+ +1 whenever we are working on range and if we pass one to 10, the loop is going to execute one to nine
124
+
125
+ 32
126
+ 00:02:56,000 --> 00:03:00,000
127
+ means it will skip the last value.
128
+
129
+ 33
130
+ 00:03:00,000 --> 00:03:07,000
131
+ But here I don't want to skip because if my rules are 10, so I want to go from one to 10.
132
+
133
+ 34
134
+ 00:03:07,000 --> 00:03:11,000
135
+ For that, I have just wasn't 11 here rules plus one.
136
+
137
+ 35
138
+ 00:03:12,000 --> 00:03:14,000
139
+ So now if the rules are four.
140
+
141
+ 36
142
+ 00:03:15,000 --> 00:03:16,000
143
+ So here the value is five.
144
+
145
+ 37
146
+ 00:03:17,000 --> 00:03:18,000
147
+ So it will execute.
148
+
149
+ 38
150
+ 00:03:19,000 --> 00:03:22,000
151
+ Loop will execute from one to four because last will you will skip.
152
+
153
+ 39
154
+ 00:03:23,000 --> 00:03:33,000
155
+ In the same way I'm running a loop four columns in range, one and column.
156
+
157
+ 40
158
+ 00:03:35,000 --> 00:03:40,000
159
+ Plus one, and we know why we are going for the one for printing the value, first of all, we need
160
+
161
+ 41
162
+ 00:03:40,000 --> 00:03:41,000
163
+ to create a cell object.
164
+
165
+ 42
166
+ 00:03:41,000 --> 00:03:49,000
167
+ The sea is equal to as such dot cell, which cell you want to work on.
168
+
169
+ 43
170
+ 00:03:49,000 --> 00:03:57,000
171
+ I'm buzzing a comma g rule comma column and not print value.
172
+
173
+ 44
174
+ 00:03:57,000 --> 00:03:59,000
175
+ Print C dot.
176
+
177
+ 45
178
+ 00:04:00,000 --> 00:04:00,000
179
+ Well, you.
180
+
181
+ 46
182
+ 00:04:03,000 --> 00:04:05,000
183
+ Just going to execute this.
184
+
185
+ 47
186
+ 00:04:08,000 --> 00:04:14,000
187
+ And if you check it here, username and password one, hello, one that is coming from the Rogue One.
188
+
189
+ 48
190
+ 00:04:15,000 --> 00:04:21,000
191
+ If you want to see username, password, hello one username, password, hello to username, password,
192
+
193
+ 49
194
+ 00:04:21,000 --> 00:04:25,000
195
+ hello two, then third row four through.
196
+
197
+ 50
198
+ 00:04:26,000 --> 00:04:33,000
199
+ So we are able to successfully pick all the data from Excel a C..
200
+
201
+ 51
202
+ 00:04:33,000 --> 00:04:34,000
203
+ I'll show you one more approach.
204
+
205
+ 52
206
+ 00:04:36,000 --> 00:04:43,000
207
+ So what I'm doing, I'm just commenting these lines and I'll show you one more approach.
208
+
209
+ 53
210
+ 00:04:45,000 --> 00:04:57,000
211
+ Other approaches we can pass, like for a row in and as such inside that we can do the range.
212
+
213
+ 54
214
+ 00:04:57,000 --> 00:05:01,000
215
+ So I want to start from even to seat Fool.
216
+
217
+ 55
218
+ 00:05:02,000 --> 00:05:15,000
219
+ So I'm saying from even to see Fool, I want to move from a two three four and are first of all, I'm
220
+
221
+ 56
222
+ 00:05:15,000 --> 00:05:17,000
223
+ moving forward rows in this range.
224
+
225
+ 57
226
+ 00:05:18,000 --> 00:05:29,000
227
+ Then in the same way, I'm running a loop for column in R means what I'm doing.
228
+
229
+ 58
230
+ 00:05:30,000 --> 00:05:34,000
231
+ First of all, I'm moving for each row in this range.
232
+
233
+ 59
234
+ 00:05:35,000 --> 00:05:40,000
235
+ And now I'm moving for each column in this row means whatever the row object is created over here.
236
+
237
+ 60
238
+ 00:05:41,000 --> 00:05:51,000
239
+ And now I'm writing like Brain C dot value because C is a sell in that particular room running, it
240
+
241
+ 61
242
+ 00:05:52,000 --> 00:05:55,000
243
+ will get done, so we'll get the same answer.
244
+
245
+ 62
246
+ 00:05:56,000 --> 00:05:58,000
247
+ So that is very important to understand.
248
+
249
+ 63
250
+ 00:05:58,000 --> 00:06:02,000
251
+ First of all, I'm giving the range like this range I want to work on.
252
+
253
+ 64
254
+ 00:06:03,000 --> 00:06:05,000
255
+ So for each row in this range.
256
+
257
+ 65
258
+ 00:06:05,000 --> 00:06:12,000
259
+ So we are putting out over here Ami's any object, then for each cell in this rule.
260
+
261
+ 66
262
+ 00:06:13,000 --> 00:06:14,000
263
+ Just find out.
264
+
265
+ 67
266
+ 00:06:16,000 --> 00:06:17,000
267
+ There is another approach in which we need.
268
+
269
+ 68
270
+ 00:06:18,000 --> 00:06:22,000
271
+ We need to find out how many maximum rows are there, how many maximum cells are there.
272
+
273
+ 69
274
+ 00:06:22,000 --> 00:06:27,000
275
+ You can do any range and we'll pick the value from that range.
276
+
277
+ 70
278
+ 00:06:29,000 --> 00:06:34,000
279
+ So here we have seen two approaches by which we can pick complete data from Excel.
280
+
281
+ 71
282
+ 00:06:36,000 --> 00:06:43,000
283
+ So here in the last few sessions we have scored how we can stall open excel, which is a package, how
284
+
285
+ 72
286
+ 00:06:43,000 --> 00:06:46,000
287
+ we can work on Excel, how we can read data from the Excel.
288
+
289
+ 73
290
+ 00:06:46,000 --> 00:06:53,000
291
+ So it could be one cell data or it could be all cell data, or it could be from a particular range.
292
+
293
+ 74
294
+ 00:06:55,000 --> 00:06:57,000
295
+ So that's all we have for the session.
296
+
297
+ 75
298
+ 00:06:58,000 --> 00:06:59,000
299
+ Thanks for watching this video.
300
+
29 - Read & Write Excel Data(Xlsx file) OpenPyXl package (Advance Library)/004 Write Data to Excel_en.srt ADDED
@@ -0,0 +1,480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:06,000
3
+ Welcome to the testing world in previous session, we have seen how we can read data from the Excel
4
+
5
+ 2
6
+ 00:00:06,000 --> 00:00:10,000
7
+ sheet now I'll show you how we can write data to the Excel file.
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:13,000
11
+ Moving to the project here, we can see that Excel Read code.
12
+
13
+ 4
14
+ 00:00:15,000 --> 00:00:17,000
15
+ I'm just moving to create a new file.
16
+
17
+ 5
18
+ 00:00:18,000 --> 00:00:19,000
19
+ Excellent.
20
+
21
+ 6
22
+ 00:00:20,000 --> 00:00:21,000
23
+ Right.
24
+
25
+ 7
26
+ 00:00:22,000 --> 00:00:29,000
27
+ Again, the steps are seen, first of all, we have to import package, so import open the way.
28
+
29
+ 8
30
+ 00:00:31,000 --> 00:00:33,000
31
+ Now we need to create object the workbook, then sheet.
32
+
33
+ 9
34
+ 00:00:34,000 --> 00:00:40,000
35
+ So W.K. is equal to open Excel Dot workbook.
36
+
37
+ 10
38
+ 00:00:41,000 --> 00:00:49,000
39
+ That's a class with the workbook, so I'm carrying objeot of the workbook class now whenever we're building
40
+
41
+ 11
42
+ 00:00:49,000 --> 00:00:53,000
43
+ object of the workbook, class of our book is created internally.
44
+
45
+ 12
46
+ 00:00:53,000 --> 00:00:59,000
47
+ As of now, it's not saved, but it is created and by default we have a sheet over there with the name
48
+
49
+ 13
50
+ 00:00:59,000 --> 00:01:01,000
51
+ sheet if you want to check it.
52
+
53
+ 14
54
+ 00:01:01,000 --> 00:01:06,000
55
+ So we know that if you have only one sheet that will be active, I'm going for the active sheet.
56
+
57
+ 15
58
+ 00:01:07,000 --> 00:01:09,000
59
+ And then I'm finding out the title.
60
+
61
+ 16
62
+ 00:01:09,000 --> 00:01:15,000
63
+ So hope you remember previously we have seen how we can find out the title of active sheet.
64
+
65
+ 17
66
+ 00:01:17,000 --> 00:01:19,000
67
+ So I'm just running this.
68
+
69
+ 18
70
+ 00:01:19,000 --> 00:01:21,000
71
+ You will notice it will show sheet.
72
+
73
+ 19
74
+ 00:01:23,000 --> 00:01:28,000
75
+ There is sheet so means once it is by default, created when we are going for the logbook.
76
+
77
+ 20
78
+ 00:01:29,000 --> 00:01:36,000
79
+ No, I want to change the name of that sheet and then want to enter data into it.
80
+
81
+ 21
82
+ 00:01:37,000 --> 00:01:44,000
83
+ So first of all, I'm going to switch with just sheet object W.K. Dot Active, whatever the active sheet,
84
+
85
+ 22
86
+ 00:01:45,000 --> 00:01:48,000
87
+ just great object of object for that and store into the assets.
88
+
89
+ 23
90
+ 00:01:49,000 --> 00:01:53,000
91
+ No, I'm just giving link as such dot title.
92
+
93
+ 24
94
+ 00:01:53,000 --> 00:02:00,000
95
+ I want to change the name of that and I want to keep the name like, hello testing word.
96
+
97
+ 25
98
+ 00:02:00,000 --> 00:02:02,000
99
+ That's the name I want to give to the sheet.
100
+
101
+ 26
102
+ 00:02:02,000 --> 00:02:10,000
103
+ OK, now if I want to print the name of the sheet, so I'm seeing print, that's a sheet object and
104
+
105
+ 27
106
+ 00:02:10,000 --> 00:02:11,000
107
+ paper.
108
+
109
+ 28
110
+ 00:02:13,000 --> 00:02:14,000
111
+ I'm just running it.
112
+
113
+ 29
114
+ 00:02:17,000 --> 00:02:18,000
115
+ Here.
116
+
117
+ 30
118
+ 00:02:18,000 --> 00:02:25,000
119
+ Hello, distinguished so by default, when we created one book object, we only one sheet.
120
+
121
+ 31
122
+ 00:02:25,000 --> 00:02:29,000
123
+ So first of all, I take on the object of the sheet and stare into the S.H..
124
+
125
+ 32
126
+ 00:02:29,000 --> 00:02:35,000
127
+ No finding notch in the title of that and fetching the title of that fetching and displaying the title
128
+
129
+ 33
130
+ 00:02:35,000 --> 00:02:35,000
131
+ of that.
132
+
133
+ 34
134
+ 00:02:36,000 --> 00:02:43,000
135
+ No, I want to put any data into the sheet as such and which sell.
136
+
137
+ 35
138
+ 00:02:43,000 --> 00:02:49,000
139
+ You want to work on something a full.
140
+
141
+ 36
142
+ 00:02:50,000 --> 00:02:51,000
143
+ Right.
144
+
145
+ 37
146
+ 00:02:51,000 --> 00:02:54,000
147
+ Dot value, what value you want to give?
148
+
149
+ 38
150
+ 00:02:54,000 --> 00:03:03,000
151
+ I want to give like w w w tha testing word dot com, I want to put this value.
152
+
153
+ 39
154
+ 00:03:04,000 --> 00:03:09,000
155
+ After that, I want to save my sheet because that is taking place in the memory.
156
+
157
+ 40
158
+ 00:03:10,000 --> 00:03:11,000
159
+ I want to see it.
160
+
161
+ 41
162
+ 00:03:11,000 --> 00:03:12,000
163
+ So look at Dot.
164
+
165
+ 42
166
+ 00:03:12,000 --> 00:03:14,000
167
+ See very, very.
168
+
169
+ 43
170
+ 00:03:14,000 --> 00:03:15,000
171
+ You want to save it.
172
+
173
+ 44
174
+ 00:03:16,000 --> 00:03:22,000
175
+ I want to save it in the ether with the name byte sheet dot.
176
+
177
+ 45
178
+ 00:03:23,000 --> 00:03:24,000
179
+ Excellent X.
180
+
181
+ 46
182
+ 00:03:27,000 --> 00:03:29,000
183
+ Now, everything is done just running it.
184
+
185
+ 47
186
+ 00:03:32,000 --> 00:03:35,000
187
+ And if you're not getting any error means it is executed.
188
+
189
+ 48
190
+ 00:03:36,000 --> 00:03:49,000
191
+ I'm just moving to that location, so I'll drive by 10 Sheet Dot X X that is going to be open and we
192
+
193
+ 49
194
+ 00:03:49,000 --> 00:03:51,000
195
+ are getting on a fossil.
196
+
197
+ 50
198
+ 00:03:51,000 --> 00:03:52,000
199
+ We are getting this data.
200
+
201
+ 51
202
+ 00:03:53,000 --> 00:03:55,000
203
+ And you can check sheet name here.
204
+
205
+ 52
206
+ 00:03:57,000 --> 00:04:05,000
207
+ So here we have seen how we can write data to the data sheet, which is by default created in the workbook.
208
+
209
+ 53
210
+ 00:04:06,000 --> 00:04:12,000
211
+ OK, now I want to create one more sheet, so we have the option like.
212
+
213
+ 54
214
+ 00:04:15,000 --> 00:04:19,000
215
+ I'm just going for a book because she is going to be created inside the workbook.
216
+
217
+ 55
218
+ 00:04:21,000 --> 00:04:23,000
219
+ Create sheet.
220
+
221
+ 56
222
+ 00:04:25,000 --> 00:04:25,000
223
+ Here.
224
+
225
+ 57
226
+ 00:04:25,000 --> 00:04:27,000
227
+ What is the title you want to give?
228
+
229
+ 58
230
+ 00:04:27,000 --> 00:04:32,000
231
+ So I'm saying data is equal to and my title is Lake.
232
+
233
+ 59
234
+ 00:04:34,000 --> 00:04:35,000
235
+ Distinct W.
236
+
237
+ 60
238
+ 00:04:36,000 --> 00:04:37,000
239
+ OK.
240
+
241
+ 61
242
+ 00:04:38,000 --> 00:04:39,000
243
+ I'm just running Discord.
244
+
245
+ 62
246
+ 00:04:40,000 --> 00:04:41,000
247
+ And let's see.
248
+
249
+ 63
250
+ 00:04:41,000 --> 00:04:43,000
251
+ The sheet is created or not.
252
+
253
+ 64
254
+ 00:04:44,000 --> 00:04:48,000
255
+ OK, let's open that.
256
+
257
+ 65
258
+ 00:04:48,000 --> 00:04:50,000
259
+ So if you check it, one more shoot is created.
260
+
261
+ 66
262
+ 00:04:53,000 --> 00:04:55,000
263
+ No, now, total, we have two sheets.
264
+
265
+ 67
266
+ 00:04:57,000 --> 00:05:01,000
267
+ I want to enter data into the next sheet now.
268
+
269
+ 68
270
+ 00:05:01,000 --> 00:05:03,000
271
+ First, we have entered into the first sheet.
272
+
273
+ 69
274
+ 00:05:03,000 --> 00:05:04,000
275
+ Now the second sheet is graded.
276
+
277
+ 70
278
+ 00:05:05,000 --> 00:05:07,000
279
+ I want to enter data into the second sheet.
280
+
281
+ 71
282
+ 00:05:07,000 --> 00:05:08,000
283
+ So here.
284
+
285
+ 72
286
+ 00:05:09,000 --> 00:05:15,000
287
+ Second sheet is created and here we have the first sheet.
288
+
289
+ 73
290
+ 00:05:15,000 --> 00:05:17,000
291
+ We entered into it.
292
+
293
+ 74
294
+ 00:05:18,000 --> 00:05:20,000
295
+ Now I want to enter it into the second sheet.
296
+
297
+ 75
298
+ 00:05:20,000 --> 00:05:24,000
299
+ So we need to create object with the sheet, something as such one.
300
+
301
+ 76
302
+ 00:05:25,000 --> 00:05:29,000
303
+ And we know that we have seen this approach while reading the data from the Excel.
304
+
305
+ 77
306
+ 00:05:30,000 --> 00:05:32,000
307
+ So I want to create object with the sheet.
308
+
309
+ 78
310
+ 00:05:32,000 --> 00:05:33,000
311
+ Second sheet.
312
+
313
+ 79
314
+ 00:05:34,000 --> 00:05:39,000
315
+ So I'm just passing the name, which is distinct.
316
+
317
+ 80
318
+ 00:05:39,000 --> 00:05:41,000
319
+ W. So that's my one.
320
+
321
+ 81
322
+ 00:05:42,000 --> 00:05:43,000
323
+ And what data you want?
324
+
325
+ 82
326
+ 00:05:43,000 --> 00:05:45,000
327
+ Enter such one.
328
+
329
+ 83
330
+ 00:05:45,000 --> 00:05:51,000
331
+ And on the place of a three, you want to give data like, that's our phone number.
332
+
333
+ 84
334
+ 00:05:52,000 --> 00:05:57,000
335
+ If seven four three nine one three one two one and it's a plus.
336
+
337
+ 85
338
+ 00:06:00,000 --> 00:06:00,000
339
+ Line one.
340
+
341
+ 86
342
+ 00:06:01,000 --> 00:06:08,000
343
+ So that is a data which I want to enter at the end we are saving, so once we save, it is going to
344
+
345
+ 87
346
+ 00:06:08,000 --> 00:06:10,000
347
+ save all the sheets because we are saving workbook.
348
+
349
+ 88
350
+ 00:06:13,000 --> 00:06:15,000
351
+ I'm just running it.
352
+
353
+ 89
354
+ 00:06:19,000 --> 00:06:20,000
355
+ It is done.
356
+
357
+ 90
358
+ 00:06:20,000 --> 00:06:21,000
359
+ Let me show you again.
360
+
361
+ 91
362
+ 00:06:22,000 --> 00:06:27,000
363
+ So there is a shift in focus, should we have this if data?
364
+
365
+ 92
366
+ 00:06:27,000 --> 00:06:30,000
367
+ And in second shift, we hear it through data.
368
+
369
+ 93
370
+ 00:06:32,000 --> 00:06:35,000
371
+ So we have created two sheets and we have some data into it.
372
+
373
+ 94
374
+ 00:06:37,000 --> 00:06:39,000
375
+ No, it might be possible.
376
+
377
+ 95
378
+ 00:06:39,000 --> 00:06:41,000
379
+ You want to remove any sheet.
380
+
381
+ 96
382
+ 00:06:42,000 --> 00:06:44,000
383
+ So we have the option for that as well.
384
+
385
+ 97
386
+ 00:06:44,000 --> 00:06:50,000
387
+ So now I'll show you the more sheet and I want to remove the first sheet that we have created, which
388
+
389
+ 98
390
+ 00:06:50,000 --> 00:06:51,000
391
+ is this.
392
+
393
+ 99
394
+ 00:06:52,000 --> 00:06:57,000
395
+ So we have approved for that W.K. workbook.
396
+
397
+ 100
398
+ 00:06:57,000 --> 00:06:58,000
399
+ Don't remove.
400
+
401
+ 101
402
+ 00:07:01,000 --> 00:07:05,000
403
+ Sheet, but which should you want to remove, so we need to create object for that.
404
+
405
+ 102
406
+ 00:07:05,000 --> 00:07:09,000
407
+ So what we can do W.K. Dark.
408
+
409
+ 103
410
+ 00:07:12,000 --> 00:07:19,000
411
+ W.K. and in single course, we can give the name of the shoot, even you can pass such as well because
412
+
413
+ 104
414
+ 00:07:19,000 --> 00:07:21,000
415
+ we have already created the object of that shoot.
416
+
417
+ 105
418
+ 00:07:21,000 --> 00:07:23,000
419
+ Or you can directly create object here.
420
+
421
+ 106
422
+ 00:07:25,000 --> 00:07:26,000
423
+ Now I'm running it.
424
+
425
+ 107
426
+ 00:07:28,000 --> 00:07:35,000
427
+ It is showing that method is deprecated so you can go for remove only.
428
+
429
+ 108
430
+ 00:07:35,000 --> 00:07:39,000
431
+ So it is done, but still it is deprecated.
432
+
433
+ 109
434
+ 00:07:39,000 --> 00:07:40,000
435
+ You can use the latest one.
436
+
437
+ 110
438
+ 00:07:40,000 --> 00:07:43,000
439
+ So let me show you first that she just deleted.
440
+
441
+ 111
442
+ 00:07:43,000 --> 00:07:46,000
443
+ But if you want, I can show you again.
444
+
445
+ 112
446
+ 00:07:47,000 --> 00:07:49,000
447
+ We can use, not remove it.
448
+
449
+ 113
450
+ 00:07:49,000 --> 00:07:51,000
451
+ We can use, only remove.
452
+
453
+ 114
454
+ 00:07:52,000 --> 00:07:53,000
455
+ So still, it will work.
456
+
457
+ 115
458
+ 00:08:00,000 --> 00:08:07,000
459
+ It is done so here, if you take it here, that this sheet will be visible this time.
460
+
461
+ 116
462
+ 00:08:08,000 --> 00:08:12,000
463
+ So we have seen previously we have a method we remove under scoresheet.
464
+
465
+ 117
466
+ 00:08:12,000 --> 00:08:18,000
467
+ Now we remove method and we need to pass the object of the sheet, not the name only.
468
+
469
+ 118
470
+ 00:08:20,000 --> 00:08:24,000
471
+ So here in this session, we have gone through how we can write data to the Excel file.
472
+
473
+ 119
474
+ 00:08:25,000 --> 00:08:27,000
475
+ That's all we have for the session.
476
+
477
+ 120
478
+ 00:08:27,000 --> 00:08:29,000
479
+ Thanks for watching this video.
480
+
30 - Learn Element Locators/001 Section Introduction & Practice Target_en.srt ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:06,000
7
+ So previously, we have completed the installation process.
8
+
9
+ 3
10
+ 00:00:07,000 --> 00:00:08,000
11
+ Now I'll show you the next section.
12
+
13
+ 4
14
+ 00:00:09,000 --> 00:00:12,000
15
+ And this is the introduction videos of the section.
16
+
17
+ 5
18
+ 00:00:12,000 --> 00:00:15,000
19
+ So here we are going to cover element locators.
20
+
21
+ 6
22
+ 00:00:16,000 --> 00:00:25,000
23
+ So as I have updated in the previous video where we have covered learning roadmap before moving to the
24
+
25
+ 7
26
+ 00:00:25,000 --> 00:00:28,000
27
+ actual automation, you are using selenium and python.
28
+
29
+ 8
30
+ 00:00:28,000 --> 00:00:32,000
31
+ First of all, we have to cover element locators.
32
+
33
+ 9
34
+ 00:00:32,000 --> 00:00:38,000
35
+ So element locators are used to locate or search different elements on the web page.
36
+
37
+ 10
38
+ 00:00:39,000 --> 00:00:45,000
39
+ If we take an example, you are working on the Facebook dot com you want to enter username, then you
40
+
41
+ 11
42
+ 00:00:45,000 --> 00:00:46,000
43
+ want to enter password.
44
+
45
+ 12
46
+ 00:00:47,000 --> 00:00:54,000
47
+ So for entering the username or password, we have to look uniquely locate this element so that we can
48
+
49
+ 13
50
+ 00:00:54,000 --> 00:00:55,000
51
+ perform action on.
52
+
53
+ 14
54
+ 00:00:55,000 --> 00:01:00,000
55
+ That means we can type some text on there for locating different elements.
56
+
57
+ 15
58
+ 00:01:00,000 --> 00:01:02,000
59
+ We are going to use element locators.
60
+
61
+ 16
62
+ 00:01:03,000 --> 00:01:06,000
63
+ That's a prerequisite before moving to the actual automation.
64
+
65
+ 17
66
+ 00:01:06,000 --> 00:01:14,000
67
+ Using selenium here in this section and in next section, we are going to cover different types of different
68
+
69
+ 18
70
+ 00:01:14,000 --> 00:01:15,000
71
+ techniques to look at element.
72
+
73
+ 19
74
+ 00:01:16,000 --> 00:01:21,000
75
+ Also, we're going to cover best practices of the ultimate scenarios and quiz.
76
+
77
+ 20
78
+ 00:01:22,000 --> 00:01:26,000
79
+ So here these two sections working with the element locators.
80
+
81
+ 21
82
+ 00:01:26,000 --> 00:01:31,000
83
+ And then we are going to cover export element locator in detail.
84
+
85
+ 22
86
+ 00:01:31,000 --> 00:01:36,000
87
+ So these are the two sections which we are going to cover for learning element locators.
88
+
89
+ 23
90
+ 00:01:37,000 --> 00:01:42,000
91
+ Also, you will get some quiz here to verify your learning.
92
+
93
+ 24
94
+ 00:01:43,000 --> 00:01:48,000
95
+ Let's move to the different techniques of locating element that is already here.
96
+
97
+ 25
98
+ 00:01:49,000 --> 00:01:50,000
99
+ Thanks for watching.
100
+
30 - Learn Element Locators/002 What is Element Locators Why we use Element Locators_en.srt ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:07,000
3
+ Welcome to the testing world in this session, you're going to understand what is element locators.
4
+
5
+ 2
6
+ 00:00:08,000 --> 00:00:10,000
7
+ So first of all, we need to understand what is elemental.
8
+
9
+ 3
10
+ 00:00:11,000 --> 00:00:15,000
11
+ And then we can check how we are going to fetch element crookedness.
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:22,000
15
+ But before going to the technical definition, I'd take an example and we have a group of students and
16
+
17
+ 5
18
+ 00:00:22,000 --> 00:00:24,000
19
+ I want to ask a question.
20
+
21
+ 6
22
+ 00:00:24,000 --> 00:00:31,000
23
+ So whenever I'm asking a question, I'm not pointing out any specific student.
24
+
25
+ 7
26
+ 00:00:31,000 --> 00:00:33,000
27
+ In that case, it might be possible.
28
+
29
+ 8
30
+ 00:00:33,000 --> 00:00:37,000
31
+ Nobody is going to reply me or more than one person.
32
+
33
+ 9
34
+ 00:00:37,000 --> 00:00:43,000
35
+ I'm going to reply, but I want to ask a question from a specific person.
36
+
37
+ 10
38
+ 00:00:43,000 --> 00:00:48,000
39
+ So what I have to do, I have prepared a specific property of the person.
40
+
41
+ 11
42
+ 00:00:48,000 --> 00:00:50,000
43
+ It could be the name of the person.
44
+
45
+ 12
46
+ 00:00:50,000 --> 00:00:50,000
47
+ It could be.
48
+
49
+ 13
50
+ 00:00:50,000 --> 00:00:58,000
51
+ I knew the person or it could be any other property in the CV when we are going for the automation and
52
+
53
+ 14
54
+ 00:00:58,000 --> 00:01:00,000
55
+ we are going to automate any web page.
56
+
57
+ 15
58
+ 00:01:00,000 --> 00:01:05,000
59
+ And I want to perform action on any specific element.
60
+
61
+ 16
62
+ 00:01:05,000 --> 00:01:06,000
63
+ OK, let's take an example.
64
+
65
+ 17
66
+ 00:01:07,000 --> 00:01:10,000
67
+ I'm just moving to I'm just going to the browser here.
68
+
69
+ 18
70
+ 00:01:10,000 --> 00:01:14,000
71
+ I'm thinking example, like, I want to automate this Facebook dot com.
72
+
73
+ 19
74
+ 00:01:15,000 --> 00:01:21,000
75
+ So here I want to automate its log in functionality for automating this functionality.
76
+
77
+ 20
78
+ 00:01:21,000 --> 00:01:23,000
79
+ I need to enter username.
80
+
81
+ 21
82
+ 00:01:24,000 --> 00:01:30,000
83
+ If I write automation script in which I'm saying OK and then use username in a text box, but which
84
+
85
+ 22
86
+ 00:01:30,000 --> 00:01:31,000
87
+ textbooks?
88
+
89
+ 23
90
+ 00:01:31,000 --> 00:01:37,000
91
+ Because they're on the page, we are getting many text boxes, so we have to look at that specific text
92
+
93
+ 24
94
+ 00:01:37,000 --> 00:01:40,000
95
+ box by its unique property.
96
+
97
+ 25
98
+ 00:01:40,000 --> 00:01:40,000
99
+ It could be it.
100
+
101
+ 26
102
+ 00:01:40,000 --> 00:01:43,000
103
+ It could be name or it could be anything else.
104
+
105
+ 27
106
+ 00:01:43,000 --> 00:01:47,000
107
+ So locate any element uniquely on the page.
108
+
109
+ 28
110
+ 00:01:47,000 --> 00:01:49,000
111
+ The linking element locators.
112
+
113
+ 29
114
+ 00:01:49,000 --> 00:01:55,000
115
+ So if I come to the technical definition of Element Locator with the Help Element Locator, we can locate
116
+
117
+ 30
118
+ 00:01:56,000 --> 00:01:58,000
119
+ any element uniquely on the page.
120
+
121
+ 31
122
+ 00:01:58,000 --> 00:02:03,000
123
+ So for you to look it in the element, uniquely, we are going to use element locators.
124
+
125
+ 32
126
+ 00:02:05,000 --> 00:02:07,000
127
+ We have different type of element locators.
128
+
129
+ 33
130
+ 00:02:08,000 --> 00:02:10,000
131
+ We have different types of element locators.
132
+
133
+ 34
134
+ 00:02:11,000 --> 00:02:18,000
135
+ I have listed few common locators, which we are going to use very frequently, like ID, name, last
136
+
137
+ 35
138
+ 00:02:18,000 --> 00:02:20,000
139
+ name, SEISS and export.
140
+
141
+ 36
142
+ 00:02:21,000 --> 00:02:24,000
143
+ But our agenda here to understand SEISS and export.
144
+
145
+ 37
146
+ 00:02:26,000 --> 00:02:28,000
147
+ First, I'm going to show you how we can use this element locator.
148
+
149
+ 38
150
+ 00:02:29,000 --> 00:02:32,000
151
+ Then I'll show you a detailed understanding of export.
152
+
153
+ 39
154
+ 00:02:33,000 --> 00:02:39,000
155
+ But before moving to see this as an export, we need some plug ins to be installed on the browser.
156
+
157
+ 40
158
+ 00:02:40,000 --> 00:02:46,000
159
+ So first of all, I would just move the browser and whatever the element you want to work on, or whichever
160
+
161
+ 41
162
+ 00:02:46,000 --> 00:02:48,000
163
+ the element you want to work on.
164
+
165
+ 42
166
+ 00:02:48,000 --> 00:02:54,000
167
+ First of all, we need to check of that element or that just right, and we have optional to inspect.
168
+
169
+ 43
170
+ 00:02:55,000 --> 00:02:57,000
171
+ This option is not specific to the browser.
172
+
173
+ 44
174
+ 00:02:57,000 --> 00:03:00,000
175
+ So if you're working on the Chrome, you are going to get this option.
176
+
177
+ 45
178
+ 00:03:00,000 --> 00:03:04,000
179
+ If you're working on the Firefox, also, you will get this option.
180
+
181
+ 46
182
+ 00:03:04,000 --> 00:03:10,000
183
+ If I right click a link to that option inspect element almost on all browsers, you are going to get
184
+
185
+ 47
186
+ 00:03:10,000 --> 00:03:12,000
187
+ this option.
188
+
189
+ 48
190
+ 00:03:12,000 --> 00:03:17,000
191
+ So whichever the element we want to locate, we have to go to the extension of that element.
192
+
193
+ 49
194
+ 00:03:17,000 --> 00:03:23,000
195
+ Also, we need to install some plugins, so I'm going to show you one plug in which we need to install,
196
+
197
+ 50
198
+ 00:03:24,000 --> 00:03:26,000
199
+ which we are going to install on Chrome browser.
200
+
201
+ 51
202
+ 00:03:27,000 --> 00:03:30,000
203
+ If you're looking to Chrome, just go to the Google.
204
+
205
+ 52
206
+ 00:03:31,000 --> 00:03:39,000
207
+ And here we are, going to get a plugin with the name ceases and export checker.
208
+
209
+ 53
210
+ 00:03:39,000 --> 00:03:43,000
211
+ So this plugin is going to be stored on the Chrome browser.
212
+
213
+ 54
214
+ 00:03:43,000 --> 00:03:44,000
215
+ I'm just installing it.
216
+
217
+ 55
218
+ 00:03:47,000 --> 00:03:54,000
219
+ Add to Chrome so that it's going to be installed and you will find this an extension.
220
+
221
+ 56
222
+ 00:03:55,000 --> 00:03:58,000
223
+ It would take some time to complete this installation process.
224
+
225
+ 57
226
+ 00:03:58,000 --> 00:04:03,000
227
+ So I'm just waiting for this installation to be completed once it is done.
228
+
229
+ 58
230
+ 00:04:03,000 --> 00:04:09,000
231
+ You will get this option here on the right hand side of the browser top right corner of the browser.
232
+
233
+ 59
234
+ 00:04:09,000 --> 00:04:11,000
235
+ So once we get it, yes, we haven't started.
236
+
237
+ 60
238
+ 00:04:12,000 --> 00:04:16,000
239
+ I'll show you how we're going to use it in the same way on Firefox.
240
+
241
+ 61
242
+ 00:04:17,000 --> 00:04:19,000
243
+ We can install selenium ide e.
244
+
245
+ 62
246
+ 00:04:20,000 --> 00:04:21,000
247
+ Why do we need to install today anyway?
248
+
249
+ 63
250
+ 00:04:22,000 --> 00:04:23,000
251
+ I'll show you, but it's a free tool.
252
+
253
+ 64
254
+ 00:04:24,000 --> 00:04:24,000
255
+ Just install it.
256
+
257
+ 65
258
+ 00:04:25,000 --> 00:04:30,000
259
+ So I just click on the download selenium and here I'm searching for it.
260
+
261
+ 66
262
+ 00:04:31,000 --> 00:04:33,000
263
+ So anybody for Firefox?
264
+
265
+ 67
266
+ 00:04:33,000 --> 00:04:35,000
267
+ So I'm just starting this on the Firefox browser.
268
+
269
+ 68
270
+ 00:04:37,000 --> 00:04:40,000
271
+ So the I'm getting this option and Firefox, Econet and.
272
+
273
+ 69
274
+ 00:04:45,000 --> 00:04:51,000
275
+ OK, so no stadium I'd installed on the Firefox browser, no.
276
+
277
+ 70
278
+ 00:04:52,000 --> 00:04:54,000
279
+ So we installed these two plugins.
280
+
281
+ 71
282
+ 00:04:54,000 --> 00:04:57,000
283
+ Now the point is why we installed these plugins.
284
+
285
+ 72
286
+ 00:04:57,000 --> 00:04:58,000
287
+ What's the use of that?
288
+
289
+ 73
290
+ 00:04:58,000 --> 00:05:05,000
291
+ So whenever we're writing any CSIS and spot for any automation tool, it's not especially good selenium
292
+
293
+ 74
294
+ 00:05:05,000 --> 00:05:07,000
295
+ only if you're working on APM.
296
+
297
+ 75
298
+ 00:05:07,000 --> 00:05:14,000
299
+ Daniel also testing whether the best application you need these locators in the same way if you're working
300
+
301
+ 76
302
+ 00:05:14,000 --> 00:05:19,000
303
+ on Ketlen Studio, if you're working on water.
304
+
305
+ 77
306
+ 00:05:19,000 --> 00:05:25,000
307
+ So almost all automation, which are working on the web based application, are supporting these CCS
308
+
309
+ 78
310
+ 00:05:25,000 --> 00:05:27,000
311
+ and export at Element.
312
+
313
+ 79
314
+ 00:05:27,000 --> 00:05:34,000
315
+ So whenever you are working on any automation tool and I want to use any element locator so we can find
316
+
317
+ 80
318
+ 00:05:34,000 --> 00:05:38,000
319
+ out element locator by the techniques which we're going to understand in this course.
320
+
321
+ 81
322
+ 00:05:39,000 --> 00:05:43,000
323
+ But before using that, I want to check the technique is correct or not.
324
+
325
+ 82
326
+ 00:05:43,000 --> 00:05:47,000
327
+ So these techniques can be checked by using these plugins.
328
+
329
+ 83
330
+ 00:05:48,000 --> 00:05:54,000
331
+ So whatever the locator, I'm going to find out in the coming sessions, I just check it on these plugins.
332
+
333
+ 84
334
+ 00:05:55,000 --> 00:05:56,000
335
+ Is it correct or not?
336
+
337
+ 85
338
+ 00:05:57,000 --> 00:05:58,000
339
+ So I'll show you how we can do that.
340
+
341
+ 86
342
+ 00:05:59,000 --> 00:06:05,000
343
+ So in this session, we have seen what is elemental locator and we have done some setup on Firefox and
344
+
345
+ 87
346
+ 00:06:05,000 --> 00:06:06,000
347
+ Chrome browser.
348
+
349
+ 88
350
+ 00:06:07,000 --> 00:06:10,000
351
+ That's all we have for the session tags watching this video.
352
+
30 - Learn Element Locators/003 Understand basics of HTML to Fetch Element Locators_en.srt ADDED
@@ -0,0 +1,568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the wrestling world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:09,000
7
+ So in previous session, we have seen what is element locator and also we have seen two plugins.
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:16,000
11
+ One is CIUSSS, an export checker, which we have installed on Chrome and other one this name I.D.,
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:18,000
15
+ which you have installed on Firefox.
16
+
17
+ 5
18
+ 00:00:18,000 --> 00:00:23,000
19
+ So in this session, I'll show you a basic understanding of HDMI.
20
+
21
+ 6
22
+ 00:00:23,000 --> 00:00:27,000
23
+ And also, I'll show you what is the use of installed plugins?
24
+
25
+ 7
26
+ 00:00:28,000 --> 00:00:31,000
27
+ First of all, I'll give you a basic understanding of HDMI.
28
+
29
+ 8
30
+ 00:00:32,000 --> 00:00:35,000
31
+ We are not going to understand details of the HDMI here.
32
+
33
+ 9
34
+ 00:00:35,000 --> 00:00:41,000
35
+ We will understand only the part which is required for us for fetching element locators.
36
+
37
+ 10
38
+ 00:00:42,000 --> 00:00:46,000
39
+ So I'm just moving to the browser first and I'm taking example.
40
+
41
+ 11
42
+ 00:00:46,000 --> 00:00:52,000
43
+ I have an application like the testing word dot com for much less testing.
44
+
45
+ 12
46
+ 00:00:52,000 --> 00:00:56,000
47
+ So it's a simple website which we are going to use for fetching element locators.
48
+
49
+ 13
50
+ 00:00:56,000 --> 00:00:58,000
51
+ Okay, an example.
52
+
53
+ 14
54
+ 00:00:58,000 --> 00:01:00,000
55
+ I want to work on this text box.
56
+
57
+ 15
58
+ 00:01:00,000 --> 00:01:02,000
59
+ I just right click Inspect.
60
+
61
+ 16
62
+ 00:01:04,000 --> 00:01:07,000
63
+ We will get estimates of the textbooks here.
64
+
65
+ 17
66
+ 00:01:07,000 --> 00:01:10,000
67
+ I'll just copy this a.m..
68
+
69
+ 18
70
+ 00:01:13,000 --> 00:01:14,000
71
+ And I'm taking it to the.
72
+
73
+ 19
74
+ 00:01:16,000 --> 00:01:23,000
75
+ Here, so normally, if you're aware about achievement, so here it still is written in the form of
76
+
77
+ 20
78
+ 00:01:23,000 --> 00:01:27,000
79
+ Peg's means, each element is having a tag.
80
+
81
+ 21
82
+ 00:01:27,000 --> 00:01:29,000
83
+ So here my bag is input.
84
+
85
+ 22
86
+ 00:01:30,000 --> 00:01:35,000
87
+ So this this is the starting tag we just started from here and it here and the end bag.
88
+
89
+ 23
90
+ 00:01:35,000 --> 00:01:40,000
91
+ So whenever we are going to use name, big bag means this.
92
+
93
+ 24
94
+ 00:01:40,000 --> 00:01:43,000
95
+ So here in our case, the tag is input.
96
+
97
+ 25
98
+ 00:01:43,000 --> 00:01:46,000
99
+ OK, let me take you a different example.
100
+
101
+ 26
102
+ 00:01:47,000 --> 00:01:51,000
103
+ I'm just trying to locate any other element like this dropdown.
104
+
105
+ 27
106
+ 00:01:52,000 --> 00:01:58,000
107
+ So if you check it here in the dropdown bag is select so we can have any dig.
108
+
109
+ 28
110
+ 00:01:59,000 --> 00:02:03,000
111
+ If you talk about this radio button, I'll just right click Inspect.
112
+
113
+ 29
114
+ 00:02:03,000 --> 00:02:10,000
115
+ And here the biggest input in the same way, I'm just coming to this link and I'll just check it.
116
+
117
+ 30
118
+ 00:02:10,000 --> 00:02:16,000
119
+ The stimulus tag is a so we can have any tick, but we must understand that is big.
120
+
121
+ 31
122
+ 00:02:18,000 --> 00:02:18,000
123
+ OK?
124
+
125
+ 32
126
+ 00:02:19,000 --> 00:02:23,000
127
+ What are the values which we are getting with starting dog?
128
+
129
+ 33
130
+ 00:02:23,000 --> 00:02:27,000
131
+ So my starting tag is started from here till this point.
132
+
133
+ 34
134
+ 00:02:27,000 --> 00:02:32,000
135
+ So other than tick, what are the values you are getting that is called attributes?
136
+
137
+ 35
138
+ 00:02:32,000 --> 00:02:41,000
139
+ So here in our case, we have many attributes like class name, required type, placeholder value.
140
+
141
+ 36
142
+ 00:02:41,000 --> 00:02:44,000
143
+ Foo Attribute Values are there if you are blank.
144
+
145
+ 37
146
+ 00:02:44,000 --> 00:02:46,000
147
+ But these all are attributes.
148
+
149
+ 38
150
+ 00:02:47,000 --> 00:02:50,000
151
+ So now we go to understanding what is DAG?
152
+
153
+ 39
154
+ 00:02:50,000 --> 00:02:58,000
155
+ So if I take an example like, that's my dog and I'll just change the color, that's my tick.
156
+
157
+ 40
158
+ 00:02:58,000 --> 00:03:00,000
159
+ What all the attributes we are having.
160
+
161
+ 41
162
+ 00:03:00,000 --> 00:03:04,000
163
+ So we have many attributes here, like class is one attribute.
164
+
165
+ 42
166
+ 00:03:05,000 --> 00:03:09,000
167
+ So that is my class name is another attribute.
168
+
169
+ 43
170
+ 00:03:09,000 --> 00:03:13,000
171
+ So that is a second attribute required is the third attribute.
172
+
173
+ 44
174
+ 00:03:13,000 --> 00:03:17,000
175
+ So what are the values we are getting here with the starting date?
176
+
177
+ 45
178
+ 00:03:17,000 --> 00:03:20,000
179
+ This is what attribute type is one attribute.
180
+
181
+ 46
182
+ 00:03:20,000 --> 00:03:22,000
183
+ So we have many attributes here.
184
+
185
+ 47
186
+ 00:03:23,000 --> 00:03:28,000
187
+ Sometimes you will notice there is a text written between starting tag and tag.
188
+
189
+ 48
190
+ 00:03:29,000 --> 00:03:35,000
191
+ So the text, which is written between the starting tag and take it, is not mandatory that this text
192
+
193
+ 49
194
+ 00:03:35,000 --> 00:03:36,000
195
+ will always be here.
196
+
197
+ 50
198
+ 00:03:36,000 --> 00:03:39,000
199
+ But if it is here, that is called in the text.
200
+
201
+ 51
202
+ 00:03:40,000 --> 00:03:42,000
203
+ So here that is my inner text.
204
+
205
+ 52
206
+ 00:03:43,000 --> 00:03:50,000
207
+ So we have seen yellow is that big, red are the attributes and we have few more attributes, which
208
+
209
+ 53
210
+ 00:03:50,000 --> 00:03:51,000
211
+ I did not mention.
212
+
213
+ 54
214
+ 00:03:51,000 --> 00:03:54,000
215
+ Like, if I highlight this, this is all to attribute.
216
+
217
+ 55
218
+ 00:03:55,000 --> 00:04:01,000
219
+ And if we have some data between the tags means the starting date, and that is what inner text.
220
+
221
+ 56
222
+ 00:04:01,000 --> 00:04:09,000
223
+ So while writing add element locators or say while writing this and x export, we are going to use tags,
224
+
225
+ 57
226
+ 00:04:09,000 --> 00:04:11,000
227
+ attributes and in our text.
228
+
229
+ 58
230
+ 00:04:12,000 --> 00:04:12,000
231
+ OK.
232
+
233
+ 59
234
+ 00:04:12,000 --> 00:04:19,000
235
+ Let me go to any other example like I'm just moving to the browser and I want to work on this link.
236
+
237
+ 60
238
+ 00:04:19,000 --> 00:04:23,000
239
+ So if we check it here, this is a link that gives it here.
240
+
241
+ 61
242
+ 00:04:24,000 --> 00:04:28,000
243
+ And if I ask you, can you tell me what all the attributes we are having?
244
+
245
+ 62
246
+ 00:04:28,000 --> 00:04:30,000
247
+ So First Attribute is a giraffe.
248
+
249
+ 63
250
+ 00:04:31,000 --> 00:04:34,000
251
+ Then we have a style and then we have a class.
252
+
253
+ 64
254
+ 00:04:35,000 --> 00:04:37,000
255
+ So these are the three attributes we are having.
256
+
257
+ 65
258
+ 00:04:38,000 --> 00:04:40,000
259
+ If I ask you, OK, what is in our text over here?
260
+
261
+ 66
262
+ 00:04:41,000 --> 00:04:47,000
263
+ So if we check it, that is my starting tag and there is a big starting take is completed here.
264
+
265
+ 67
266
+ 00:04:48,000 --> 00:04:54,000
267
+ So the data, which is written between the starting Typekit and big, which is the details that is in
268
+
269
+ 68
270
+ 00:04:54,000 --> 00:04:54,000
271
+ the text.
272
+
273
+ 69
274
+ 00:04:56,000 --> 00:04:58,000
275
+ OK, let me take you one more example.
276
+
277
+ 70
278
+ 00:04:58,000 --> 00:05:02,000
279
+ I want to work on this log in, so I just right click Inspect.
280
+
281
+ 71
282
+ 00:05:02,000 --> 00:05:06,000
283
+ So if you check it here, in this case, my bag is label.
284
+
285
+ 72
286
+ 00:05:08,000 --> 00:05:12,000
287
+ And if you notice, if I ask you what all the attributes we are having.
288
+
289
+ 73
290
+ 00:05:12,000 --> 00:05:16,000
291
+ So in this case, we have only one attribute, which is four.
292
+
293
+ 74
294
+ 00:05:17,000 --> 00:05:19,000
295
+ And if I ask you what is in our text?
296
+
297
+ 75
298
+ 00:05:20,000 --> 00:05:21,000
299
+ So in our texters, log in.
300
+
301
+ 76
302
+ 00:05:22,000 --> 00:05:31,000
303
+ So here, by going through any external element, we can find out tag attributes in our text and we
304
+
305
+ 77
306
+ 00:05:31,000 --> 00:05:33,000
307
+ are going to use tag attributes.
308
+
309
+ 78
310
+ 00:05:33,000 --> 00:05:36,000
311
+ And in our text, we're writing our export mixes.
312
+
313
+ 79
314
+ 00:05:38,000 --> 00:05:45,000
315
+ So first, we have seen basics of achievement to use of plugging OK from the next section onwards.
316
+
317
+ 80
318
+ 00:05:46,000 --> 00:05:53,000
319
+ We are going to write C assistant export, but when we're writing C assistant or export, how we can
320
+
321
+ 81
322
+ 00:05:53,000 --> 00:05:56,000
323
+ make sure the syntax we have written is correct or not.
324
+
325
+ 82
326
+ 00:05:57,000 --> 00:06:00,000
327
+ So in that case, these plug ins are going to help us.
328
+
329
+ 83
330
+ 00:06:01,000 --> 00:06:06,000
331
+ So first of all, I'll show you how we can use plug in on the Chrome browser, which is C assist and
332
+
333
+ 84
334
+ 00:06:06,000 --> 00:06:07,000
335
+ export checker.
336
+
337
+ 85
338
+ 00:06:07,000 --> 00:06:11,000
339
+ So I'm just coming to the Chrome browser and here I'm starting C assistant next budget.
340
+
341
+ 86
342
+ 00:06:12,000 --> 00:06:15,000
343
+ First of all, you need to select, you want to go for the thesis or export.
344
+
345
+ 87
346
+ 00:06:16,000 --> 00:06:17,000
347
+ I'm waiting for the scissors.
348
+
349
+ 88
350
+ 00:06:17,000 --> 00:06:19,000
351
+ OK, what's the assist you want to see?
352
+
353
+ 89
354
+ 00:06:20,000 --> 00:06:20,000
355
+ Want to use?
356
+
357
+ 90
358
+ 00:06:20,000 --> 00:06:32,000
359
+ So I'm saying, okay, my thesis is label and we're a tribute for is equal to.
360
+
361
+ 91
362
+ 00:06:34,000 --> 00:06:40,000
363
+ Deb, too, so I have written a particular cases as of no, you are not aware about the cases.
364
+
365
+ 92
366
+ 00:06:40,000 --> 00:06:42,000
367
+ We need not bother about that.
368
+
369
+ 93
370
+ 00:06:42,000 --> 00:06:44,000
371
+ We are going to learn it in the coming sessions.
372
+
373
+ 94
374
+ 00:06:44,000 --> 00:06:50,000
375
+ But aside from just showing what are the scissors and export you're going to right, it will highlight
376
+
377
+ 95
378
+ 00:06:50,000 --> 00:06:53,000
379
+ that element, the element or else the correct element is highlighted.
380
+
381
+ 96
382
+ 00:06:54,000 --> 00:06:57,000
383
+ Means yes, you're getting the correct pieces or correct export.
384
+
385
+ 97
386
+ 00:06:57,000 --> 00:07:01,000
387
+ But if you're giving any incorrect syntax or if you're using any wrong value.
388
+
389
+ 98
390
+ 00:07:01,000 --> 00:07:03,000
391
+ So here I missed syntax.
392
+
393
+ 99
394
+ 00:07:03,000 --> 00:07:05,000
395
+ I missed single code here.
396
+
397
+ 100
398
+ 00:07:05,000 --> 00:07:06,000
399
+ So it is not highlighting.
400
+
401
+ 101
402
+ 00:07:06,000 --> 00:07:08,000
403
+ It means that is not located.
404
+
405
+ 102
406
+ 00:07:09,000 --> 00:07:15,000
407
+ If I use an incorrect value, still you will notice it is not highlighting anything means you're not
408
+
409
+ 103
410
+ 00:07:15,000 --> 00:07:16,000
411
+ writing correct.
412
+
413
+ 104
414
+ 00:07:17,000 --> 00:07:22,000
415
+ Theses seem we can test on Firefox browser.
416
+
417
+ 105
418
+ 00:07:22,000 --> 00:07:31,000
419
+ So here I'm just starting my application and here to check my thesis or export this correct or not.
420
+
421
+ 106
422
+ 00:07:31,000 --> 00:07:36,000
423
+ We can use this stadium I.D. So if you are working on the Firefox, you can easily name it.
424
+
425
+ 107
426
+ 00:07:37,000 --> 00:07:44,000
427
+ OK, I started Stadium I.D. Once installed, you will get the option here on the top right corner here.
428
+
429
+ 108
430
+ 00:07:44,000 --> 00:07:48,000
431
+ Use when we started the new I.D. it is asking for Would you like to create a new project?
432
+
433
+ 109
434
+ 00:07:48,000 --> 00:07:48,000
435
+ Yes.
436
+
437
+ 110
438
+ 00:07:49,000 --> 00:07:50,000
439
+ What are the names you want to give?
440
+
441
+ 111
442
+ 00:07:50,000 --> 00:07:51,000
443
+ Just give it time.
444
+
445
+ 112
446
+ 00:07:51,000 --> 00:07:52,000
447
+ Sync testing.
448
+
449
+ 113
450
+ 00:07:53,000 --> 00:07:53,000
451
+ OK.
452
+
453
+ 114
454
+ 00:07:53,000 --> 00:07:56,000
455
+ Would you like to record it as a console?
456
+
457
+ 115
458
+ 00:07:57,000 --> 00:07:59,000
459
+ So I'm not going to record now.
460
+
461
+ 116
462
+ 00:07:59,000 --> 00:08:00,000
463
+ Click on the first line.
464
+
465
+ 117
466
+ 00:08:00,000 --> 00:08:02,000
467
+ And what are the command you want, right?
468
+
469
+ 118
470
+ 00:08:02,000 --> 00:08:04,000
471
+ I'll just right click.
472
+
473
+ 119
474
+ 00:08:04,000 --> 00:08:06,000
475
+ We are not going to use it, but I'm just writing the command.
476
+
477
+ 120
478
+ 00:08:06,000 --> 00:08:07,000
479
+ Click.
480
+
481
+ 121
482
+ 00:08:07,000 --> 00:08:10,000
483
+ Now come to the target and whatnot the element locator you are having.
484
+
485
+ 122
486
+ 00:08:10,000 --> 00:08:10,000
487
+ You can write it.
488
+
489
+ 123
490
+ 00:08:11,000 --> 00:08:17,000
491
+ So I want to test cases, so I just want to see if this is equal to and whatever the value you fetched
492
+
493
+ 124
494
+ 00:08:19,000 --> 00:08:20,000
495
+ and the value was.
496
+
497
+ 125
498
+ 00:08:20,000 --> 00:08:20,000
499
+ Step two.
500
+
501
+ 126
502
+ 00:08:21,000 --> 00:08:21,000
503
+ OK.
504
+
505
+ 127
506
+ 00:08:21,000 --> 00:08:27,000
507
+ Now click on this highlight find target on the page.
508
+
509
+ 128
510
+ 00:08:27,000 --> 00:08:32,000
511
+ As you click on this, you will notice this area will be highlighted.
512
+
513
+ 129
514
+ 00:08:32,000 --> 00:08:33,000
515
+ OK, let me show you again.
516
+
517
+ 130
518
+ 00:08:34,000 --> 00:08:35,000
519
+ I just click here.
520
+
521
+ 131
522
+ 00:08:35,000 --> 00:08:37,000
523
+ So you will notice that is highlighted.
524
+
525
+ 132
526
+ 00:08:37,000 --> 00:08:40,000
527
+ So if it is highlighting means, yes, we are writing the correct locator.
528
+
529
+ 133
530
+ 00:08:41,000 --> 00:08:45,000
531
+ If I write an incorrect value and try to locate it is not.
532
+
533
+ 134
534
+ 00:08:45,000 --> 00:08:48,000
535
+ Highlighting anything means the element locator is not correct.
536
+
537
+ 135
538
+ 00:08:49,000 --> 00:08:50,000
539
+ Or maybe Synaptics is not correct.
540
+
541
+ 136
542
+ 00:08:52,000 --> 00:08:55,000
543
+ So here we have seen what is the use of plugins?
544
+
545
+ 137
546
+ 00:08:56,000 --> 00:09:02,000
547
+ We are using these plugins just to check what all the locators we are writing are having correct syntax
548
+
549
+ 138
550
+ 00:09:02,000 --> 00:09:02,000
551
+ or not.
552
+
553
+ 139
554
+ 00:09:03,000 --> 00:09:06,000
555
+ And by that, we are locating correct element or not.
556
+
557
+ 140
558
+ 00:09:06,000 --> 00:09:12,000
559
+ So before using this locator in our automation, we can just make sure by using these plugins.
560
+
561
+ 141
562
+ 00:09:14,000 --> 00:09:16,000
563
+ So that's all we have for the session here.
564
+
565
+ 142
566
+ 00:09:16,000 --> 00:09:23,000
567
+ We have seen what basic understanding of HTML and the use of plugins parents watching this video.
568
+
30 - Learn Element Locators/004 Locate or Search Element uniquely on the Page using Element-ID_en.srt ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:09,000
7
+ So previously we have seen what is Element Locator, all the plugins that we need to set up on the browser.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:12,000
11
+ So we have set up CIUSSS, an expert checker.
12
+
13
+ 4
14
+ 00:00:13,000 --> 00:00:18,000
15
+ Also, we have set up selenium edy and then we have seen basics of HDR.
16
+
17
+ 5
18
+ 00:00:19,000 --> 00:00:21,000
19
+ So what does attribute what is in our text?
20
+
21
+ 6
22
+ 00:00:21,000 --> 00:00:23,000
23
+ We got this understanding.
24
+
25
+ 7
26
+ 00:00:23,000 --> 00:00:31,000
27
+ Now I'm moving to the First Element Locator, which is Edy, so we can locate any element to its.
28
+
29
+ 8
30
+ 00:00:32,000 --> 00:00:39,000
31
+ If you check this a.m. So here in the estimate, the set idea of the element so we can use this ID to
32
+
33
+ 9
34
+ 00:00:39,000 --> 00:00:41,000
35
+ look at an element unique to the page.
36
+
37
+ 10
38
+ 00:00:42,000 --> 00:00:42,000
39
+ OK.
40
+
41
+ 11
42
+ 00:00:42,000 --> 00:00:46,000
43
+ Let me show you on application.
44
+
45
+ 12
46
+ 00:00:46,000 --> 00:00:47,000
47
+ So that's a facebook.com.
48
+
49
+ 13
50
+ 00:00:48,000 --> 00:00:50,000
51
+ I want to look this username box.
52
+
53
+ 14
54
+ 00:00:51,000 --> 00:00:53,000
55
+ I just right click Inspect.
56
+
57
+ 15
58
+ 00:00:53,000 --> 00:00:55,000
59
+ So first of all, I'm moving to the estimate of the element.
60
+
61
+ 16
62
+ 00:00:58,000 --> 00:00:58,000
63
+ OK.
64
+
65
+ 17
66
+ 00:00:58,000 --> 00:00:59,000
67
+ That element is highlighted.
68
+
69
+ 18
70
+ 00:01:00,000 --> 00:01:06,000
71
+ If you notice it is equal to e-mail, developers said this ID is equal to e-mail.
72
+
73
+ 19
74
+ 00:01:06,000 --> 00:01:09,000
75
+ No, I can use this ID directly in my automation.
76
+
77
+ 20
78
+ 00:01:10,000 --> 00:01:15,000
79
+ But before moving to that, I just want to check this idea is unique or not, because it might be possible.
80
+
81
+ 21
82
+ 00:01:15,000 --> 00:01:19,000
83
+ We have five element of the page or 10 element of the page with the same ID.
84
+
85
+ 22
86
+ 00:01:20,000 --> 00:01:25,000
87
+ So I want to check this I.D. is what is unique or not for that.
88
+
89
+ 23
90
+ 00:01:25,000 --> 00:01:25,000
91
+ What we can do.
92
+
93
+ 24
94
+ 00:01:25,000 --> 00:01:30,000
95
+ We can start selenium I.D. and start private previously.
96
+
97
+ 25
98
+ 00:01:31,000 --> 00:01:35,000
99
+ And here I see, OK, record a new test.
100
+
101
+ 26
102
+ 00:01:36,000 --> 00:01:42,000
103
+ I'm just giving the the best one click, OK, don't give any.
104
+
105
+ 27
106
+ 00:01:42,000 --> 00:01:44,000
107
+ You are a little of so recording has not started yet.
108
+
109
+ 28
110
+ 00:01:45,000 --> 00:01:51,000
111
+ As of now, I'm going to use the E just to highlight element through locator.
112
+
113
+ 29
114
+ 00:01:51,000 --> 00:01:54,000
115
+ So let me show you here in command.
116
+
117
+ 30
118
+ 00:01:54,000 --> 00:01:56,000
119
+ You can give any command I'm giving lately.
120
+
121
+ 31
122
+ 00:01:57,000 --> 00:02:01,000
123
+ You can select any command here now in Target, you can write your locator.
124
+
125
+ 32
126
+ 00:02:01,000 --> 00:02:05,000
127
+ So I'm going to use a locator ID and the value is email.
128
+
129
+ 33
130
+ 00:02:05,000 --> 00:02:08,000
131
+ So I mention it is equal to email.
132
+
133
+ 34
134
+ 00:02:09,000 --> 00:02:09,000
135
+ No.
136
+
137
+ 35
138
+ 00:02:10,000 --> 00:02:13,000
139
+ I'll just reducing its sage.
140
+
141
+ 36
142
+ 00:02:13,000 --> 00:02:14,000
143
+ That's my search button.
144
+
145
+ 37
146
+ 00:02:15,000 --> 00:02:16,000
147
+ Find out how to get on the page.
148
+
149
+ 38
150
+ 00:02:16,000 --> 00:02:20,000
151
+ So acyclic you will notice this, it is going to be highlighted.
152
+
153
+ 39
154
+ 00:02:20,000 --> 00:02:24,000
155
+ So let me show you again if that area is highlighted.
156
+
157
+ 40
158
+ 00:02:24,000 --> 00:02:27,000
159
+ Means yes, it is locating correct element.
160
+
161
+ 41
162
+ 00:02:28,000 --> 00:02:32,000
163
+ But if we give any incorrect, will you like if I do email one and try to look it?
164
+
165
+ 42
166
+ 00:02:32,000 --> 00:02:36,000
167
+ That is not highlighting means it is not locating that element.
168
+
169
+ 43
170
+ 00:02:36,000 --> 00:02:44,000
171
+ So before taking this element locator to my automation, I can just verify here on the Lilium I.D. It
172
+
173
+ 44
174
+ 00:02:44,000 --> 00:02:45,000
175
+ is correct or not.
176
+
177
+ 45
178
+ 00:02:45,000 --> 00:02:51,000
179
+ So now if I click on Find Target on the page, it is highlighted highlighted means yes, it's correct
180
+
181
+ 46
182
+ 00:02:52,000 --> 00:02:52,000
183
+ in the same way.
184
+
185
+ 47
186
+ 00:02:52,000 --> 00:02:54,000
187
+ OK, let me show you one more example.
188
+
189
+ 48
190
+ 00:02:55,000 --> 00:02:59,000
191
+ I'll just go to the password and that's the estimate of the password.
192
+
193
+ 49
194
+ 00:02:59,000 --> 00:03:01,000
195
+ And if you check it, developer set, it is equal to pass.
196
+
197
+ 50
198
+ 00:03:01,000 --> 00:03:04,000
199
+ I just want to check it OK for that.
200
+
201
+ 51
202
+ 00:03:04,000 --> 00:03:06,000
203
+ I was just reducing the size of this estimate.
204
+
205
+ 52
206
+ 00:03:07,000 --> 00:03:11,000
207
+ Now I'm coming here and I want to check it is equal to pass.
208
+
209
+ 53
210
+ 00:03:11,000 --> 00:03:18,000
211
+ So if you know look identical to pass, just highlight so that password boxes highlighted again, you
212
+
213
+ 54
214
+ 00:03:18,000 --> 00:03:20,000
215
+ can check it highlighted.
216
+
217
+ 55
218
+ 00:03:20,000 --> 00:03:26,000
219
+ So if it is highlighting the correct element, yes, we are able to look at that element uniquely.
220
+
221
+ 56
222
+ 00:03:26,000 --> 00:03:29,000
223
+ Now I can use this locator in my automation.
224
+
225
+ 57
226
+ 00:03:31,000 --> 00:03:34,000
227
+ So here we have seen First Element Locator, which is it.
228
+
229
+ 58
230
+ 00:03:35,000 --> 00:03:37,000
231
+ That's all we have for the session tags.
232
+
233
+ 59
234
+ 00:03:37,000 --> 00:03:38,000
235
+ Watching this, we do.
236
+
30 - Learn Element Locators/005 Locate or Search Element uniquely on the Page using Element-Name_en.srt ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:05,000
7
+ So previously, we have seen how we can look locate element to it.
8
+
9
+ 3
10
+ 00:00:06,000 --> 00:00:10,000
11
+ Now I'll show you how we can look it element through name.
12
+
13
+ 4
14
+ 00:00:11,000 --> 00:00:18,000
15
+ So if you check in HDMI, if you have a name of the element so we can use this name for locating the
16
+
17
+ 5
18
+ 00:00:18,000 --> 00:00:19,000
19
+ element.
20
+
21
+ 6
22
+ 00:00:20,000 --> 00:00:22,000
23
+ But why should I go for the name?
24
+
25
+ 7
26
+ 00:00:22,000 --> 00:00:23,000
27
+ If we already have the ID?
28
+
29
+ 8
30
+ 00:00:24,000 --> 00:00:26,000
31
+ Yes, if you already have the ID, you can use it.
32
+
33
+ 9
34
+ 00:00:26,000 --> 00:00:27,000
35
+ But it might be possible.
36
+
37
+ 10
38
+ 00:00:28,000 --> 00:00:32,000
39
+ We do not have idea of the particular element, or it might be possible.
40
+
41
+ 11
42
+ 00:00:33,000 --> 00:00:35,000
43
+ It is duplicate for the multiple element.
44
+
45
+ 12
46
+ 00:00:35,000 --> 00:00:41,000
47
+ So if that is, I should move to the next element locator and the next locator is name so we can use
48
+
49
+ 13
50
+ 00:00:41,000 --> 00:00:43,000
51
+ name to locate an element.
52
+
53
+ 14
54
+ 00:00:44,000 --> 00:00:45,000
55
+ Let me show you.
56
+
57
+ 15
58
+ 00:00:45,000 --> 00:00:53,000
59
+ So I'm just moving to browser here on Facebook.com and I just still of this user name box.
60
+
61
+ 16
62
+ 00:00:53,000 --> 00:00:58,000
63
+ So here next year, if you check developer select name of the element, which is email.
64
+
65
+ 17
66
+ 00:00:59,000 --> 00:01:04,000
67
+ So I can look at element through email again before using this name in my automation.
68
+
69
+ 18
70
+ 00:01:04,000 --> 00:01:06,000
71
+ I just want to verify, is it correct or not?
72
+
73
+ 19
74
+ 00:01:07,000 --> 00:01:11,000
75
+ It is locating unique element or not for that, I just go to.
76
+
77
+ 20
78
+ 00:01:14,000 --> 00:01:19,000
79
+ Stadium, I'd previously we have used this and this time I want to use names, so I'm saying name is
80
+
81
+ 21
82
+ 00:01:19,000 --> 00:01:20,000
83
+ equal to email.
84
+
85
+ 22
86
+ 00:01:21,000 --> 00:01:23,000
87
+ Click on this file Typekit button.
88
+
89
+ 23
90
+ 00:01:24,000 --> 00:01:26,000
91
+ So that element is highlighted, you can check it again.
92
+
93
+ 24
94
+ 00:01:27,000 --> 00:01:32,000
95
+ This element is highlighted, if that is highlighted, means yes, we are able to look at that element
96
+
97
+ 25
98
+ 00:01:32,000 --> 00:01:35,000
99
+ uniquely, OK.
100
+
101
+ 26
102
+ 00:01:35,000 --> 00:01:37,000
103
+ Let me search any other element.
104
+
105
+ 27
106
+ 00:01:37,000 --> 00:01:40,000
107
+ I'm just going to the password and trying to search this as well.
108
+
109
+ 28
110
+ 00:01:40,000 --> 00:01:42,000
111
+ So here, maybe you could pass.
112
+
113
+ 29
114
+ 00:01:43,000 --> 00:01:45,000
115
+ OK, let me try to look at this.
116
+
117
+ 30
118
+ 00:01:45,000 --> 00:01:54,000
119
+ I'm saying name is equal to pass against search that is highlighted, so it is highlighting correct
120
+
121
+ 31
122
+ 00:01:54,000 --> 00:01:55,000
123
+ element means.
124
+
125
+ 32
126
+ 00:01:55,000 --> 00:01:58,000
127
+ Yes, we are able to look at this element uniquely.
128
+
129
+ 33
130
+ 00:01:59,000 --> 00:02:04,000
131
+ But if you give any incorrect value like again, I'm going to pass it and that value does not exist,
132
+
133
+ 34
134
+ 00:02:04,000 --> 00:02:06,000
135
+ so it will not highlight anything.
136
+
137
+ 35
138
+ 00:02:07,000 --> 00:02:09,000
139
+ So it means this element is not correct.
140
+
141
+ 36
142
+ 00:02:10,000 --> 00:02:19,000
143
+ OK, let me go to this dropdown and check it that if you check HTML here, name is equal to Byrdie underscore
144
+
145
+ 37
146
+ 00:02:19,000 --> 00:02:19,000
147
+ month.
148
+
149
+ 38
150
+ 00:02:19,000 --> 00:02:24,000
151
+ OK, let me try to look at this name is equal to this.
152
+
153
+ 39
154
+ 00:02:25,000 --> 00:02:32,000
155
+ And so again, if you check that is highlighted, if it is highlighting means, yes, we are using Gutek
156
+
157
+ 40
158
+ 00:02:32,000 --> 00:02:34,000
159
+ Element Locator.
160
+
161
+ 41
162
+ 00:02:36,000 --> 00:02:39,000
163
+ So here we have seen how we can look at element through name.
164
+
165
+ 42
166
+ 00:02:41,000 --> 00:02:42,000
167
+ That's all we have for the session.
168
+
169
+ 43
170
+ 00:02:42,000 --> 00:02:43,000
171
+ Thanks for watching this video.
172
+
30 - Learn Element Locators/006 Locate or Search Element uniquely on Page using Element-Link text(inner text)_en.srt ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:05,000
7
+ So previously, we have seen a few other locators.
8
+
9
+ 3
10
+ 00:00:06,000 --> 00:00:08,000
11
+ Now I'm coming to one more locator.
12
+
13
+ 4
14
+ 00:00:08,000 --> 00:00:09,000
15
+ We just link.
16
+
17
+ 5
18
+ 00:00:09,000 --> 00:00:11,000
19
+ We can call it link text.
20
+
21
+ 6
22
+ 00:00:12,000 --> 00:00:19,000
23
+ So this locator is going to work on link or you can call it hyperlinks and we can look element through
24
+
25
+ 7
26
+ 00:00:19,000 --> 00:00:20,000
27
+ link text.
28
+
29
+ 8
30
+ 00:00:20,000 --> 00:00:21,000
31
+ OK, let me show you.
32
+
33
+ 9
34
+ 00:00:22,000 --> 00:00:23,000
35
+ I'm just moving the application.
36
+
37
+ 10
38
+ 00:00:23,000 --> 00:00:25,000
39
+ If you check, we have many links over here.
40
+
41
+ 11
42
+ 00:00:26,000 --> 00:00:27,000
43
+ When is this forgotten?
44
+
45
+ 12
46
+ 00:00:28,000 --> 00:00:29,000
47
+ We can also click HYPERLINK.
48
+
49
+ 13
50
+ 00:00:30,000 --> 00:00:36,000
51
+ Why do I need to provide my date of birth thumb's data policy cookie policy a page?
52
+
53
+ 14
54
+ 00:00:36,000 --> 00:00:37,000
55
+ These all are linked.
56
+
57
+ 15
58
+ 00:00:38,000 --> 00:00:45,000
59
+ We can look at these elements through its name and other locator, but we can also use link text.
60
+
61
+ 16
62
+ 00:00:46,000 --> 00:00:51,000
63
+ But this link locator can work only on the hyperlinks.
64
+
65
+ 17
66
+ 00:00:51,000 --> 00:00:53,000
67
+ So other look, it can work anywhere.
68
+
69
+ 18
70
+ 00:00:53,000 --> 00:00:57,000
71
+ But this locator is going to work only on the links or we can click hyperlink.
72
+
73
+ 19
74
+ 00:00:57,000 --> 00:00:59,000
75
+ OK, let me show you a picture of this.
76
+
77
+ 20
78
+ 00:01:00,000 --> 00:01:06,000
79
+ First, if you're not confirm if the link or not, just go to the ex-chairman and check if that is started
80
+
81
+ 21
82
+ 00:01:06,000 --> 00:01:09,000
83
+ with a means, yes, it's a link.
84
+
85
+ 22
86
+ 00:01:10,000 --> 00:01:18,000
87
+ So if it is a link, we can pick text written on the link from Dewey or you can pick it from the stimulus
88
+
89
+ 23
90
+ 00:01:18,000 --> 00:01:18,000
91
+ bill.
92
+
93
+ 24
94
+ 00:01:19,000 --> 00:01:23,000
95
+ We can use this text to look at this element for locating it.
96
+
97
+ 25
98
+ 00:01:23,000 --> 00:01:27,000
99
+ Again, I'm not going to use directly in my automation.
100
+
101
+ 26
102
+ 00:01:27,000 --> 00:01:31,000
103
+ We need to verify first on the name I.D. So I'm here.
104
+
105
+ 27
106
+ 00:01:31,000 --> 00:01:35,000
107
+ Honestly, no I.D. and missing link is equal to text.
108
+
109
+ 28
110
+ 00:01:35,000 --> 00:01:39,000
111
+ If you find spaces, just remove the spaces from here.
112
+
113
+ 29
114
+ 00:01:39,000 --> 00:01:45,000
115
+ So I'm saying, look at an element where the link text is forgotten.
116
+
117
+ 30
118
+ 00:01:45,000 --> 00:01:47,000
119
+ Account just highlight.
120
+
121
+ 31
122
+ 00:01:47,000 --> 00:01:53,000
123
+ So if you notice that element is highlighting again, that is highlighting.
124
+
125
+ 32
126
+ 00:01:53,000 --> 00:01:56,000
127
+ So we are able to highlight a link to its text.
128
+
129
+ 33
130
+ 00:01:56,000 --> 00:01:59,000
131
+ OK, in the same way, I need to work on this.
132
+
133
+ 34
134
+ 00:01:59,000 --> 00:02:01,000
135
+ Why do I need to provide my date of birth?
136
+
137
+ 35
138
+ 00:02:01,000 --> 00:02:03,000
139
+ So first of all, it's pick.
140
+
141
+ 36
142
+ 00:02:04,000 --> 00:02:05,000
143
+ It's text.
144
+
145
+ 37
146
+ 00:02:05,000 --> 00:02:07,000
147
+ Okay, I'll just go here.
148
+
149
+ 38
150
+ 00:02:11,000 --> 00:02:16,000
151
+ And going to pick it if sticks, but something else is also copied, so I just need to pick.
152
+
153
+ 39
154
+ 00:02:19,000 --> 00:02:26,000
155
+ Why do I need to provide my date of birth so you can pick text either from delay or from achievement?
156
+
157
+ 40
158
+ 00:02:26,000 --> 00:02:31,000
159
+ OK, I'm just coming here and I'm seeing that stuff.
160
+
161
+ 41
162
+ 00:02:31,000 --> 00:02:36,000
163
+ The that is the text of my link now highlight.
164
+
165
+ 42
166
+ 00:02:36,000 --> 00:02:44,000
167
+ If you notice that element is highlighted so we can use link text to locate an element and look at the
168
+
169
+ 43
170
+ 00:02:44,000 --> 00:02:45,000
171
+ name is Link.
172
+
173
+ 44
174
+ 00:02:47,000 --> 00:02:49,000
175
+ So here we have seen how we can use link text.
176
+
177
+ 45
178
+ 00:02:50,000 --> 00:02:51,000
179
+ That's all we hear.
180
+
181
+ 46
182
+ 00:02:52,000 --> 00:02:53,000
183
+ Thanks for watching this video.
184
+
30 - Learn Element Locators/007 Locate or Search Element uniquely on the Page using Element-Class Name_en.srt ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:09,000
7
+ Previously, we have seen different locators now show you glass name, which is also an element locator.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:13,000
11
+ So if you check in on many places, you will find a class.
12
+
13
+ 4
14
+ 00:00:14,000 --> 00:00:17,000
15
+ We can use this class as element locator.
16
+
17
+ 5
18
+ 00:00:18,000 --> 00:00:25,000
19
+ It is supported by almost all the tools which are supporting element locators so we can use glass as
20
+
21
+ 6
22
+ 00:00:25,000 --> 00:00:26,000
23
+ an element locator.
24
+
25
+ 7
26
+ 00:00:26,000 --> 00:00:28,000
27
+ OK, let me go to.
28
+
29
+ 8
30
+ 00:00:29,000 --> 00:00:36,000
31
+ It's dismal, and if you check it, that is a still estimate of my username, their glasses in text.
32
+
33
+ 9
34
+ 00:00:37,000 --> 00:00:40,000
35
+ Also, if you check password glasses in protest.
36
+
37
+ 10
38
+ 00:00:40,000 --> 00:00:46,000
39
+ So when you are using any element locator which is matching with more than one element, it is going
40
+
41
+ 11
42
+ 00:00:46,000 --> 00:00:48,000
43
+ to work on the first search element.
44
+
45
+ 12
46
+ 00:00:48,000 --> 00:00:51,000
47
+ So if you use glass to locate any element, it will work with a username.
48
+
49
+ 13
50
+ 00:00:52,000 --> 00:00:59,000
51
+ As of now, we cannot look at it through ID because I.D. highlight only if element is unique.
52
+
53
+ 14
54
+ 00:00:59,000 --> 00:01:05,000
55
+ But in this case, if I write like input text, it is going to match with more than one element.
56
+
57
+ 15
58
+ 00:01:05,000 --> 00:01:10,000
59
+ So it is not going to highlight anything but in real time when we are going for the automation, we
60
+
61
+ 16
62
+ 00:01:10,000 --> 00:01:12,000
63
+ can use this locator.
64
+
65
+ 17
66
+ 00:01:13,000 --> 00:01:15,000
67
+ So here we cannot verify this is correct or not.
68
+
69
+ 18
70
+ 00:01:15,000 --> 00:01:18,000
71
+ We have to directly write in that automation script.
72
+
73
+ 19
74
+ 00:01:19,000 --> 00:01:20,000
75
+ That's all.
76
+
77
+ 20
78
+ 00:01:20,000 --> 00:01:22,000
79
+ We have tags watching this video.
80
+
30 - Learn Element Locators/008 Locate Element by CSS - Syntax 1 - using ID & Tag with ID_en.srt ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:08,000
7
+ So in this session, I'm going to show you first and takes off see us this element locator.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:15,000
11
+ So first of all, I'll show you how we can use I.D. for writing at this element locator.
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:19,000
15
+ I'm just going to move here, my application.
16
+
17
+ 5
18
+ 00:00:19,000 --> 00:00:21,000
19
+ I'm taking example of the Facebook dot com.
20
+
21
+ 6
22
+ 00:00:22,000 --> 00:00:26,000
23
+ Here we have email or phone number textbox, and I want to look at this.
24
+
25
+ 7
26
+ 00:00:26,000 --> 00:00:29,000
27
+ So I just right click and going to the inspect.
28
+
29
+ 8
30
+ 00:00:29,000 --> 00:00:33,000
31
+ First of all, will have to identify achievement of that element.
32
+
33
+ 9
34
+ 00:00:33,000 --> 00:00:35,000
35
+ Okay, that is open here.
36
+
37
+ 10
38
+ 00:00:35,000 --> 00:00:42,000
39
+ If you notice developers that ID is equal to email so we can use this ID for locating element throughout
40
+
41
+ 11
42
+ 00:00:42,000 --> 00:00:43,000
43
+ cases.
44
+
45
+ 12
46
+ 00:00:44,000 --> 00:00:46,000
47
+ So first, and that's what the thesis is.
48
+
49
+ 13
50
+ 00:00:46,000 --> 00:00:48,000
51
+ We can use it.
52
+
53
+ 14
54
+ 00:00:48,000 --> 00:00:55,000
55
+ But whenever we are writing courses with ID, we are writing like Hash Hashmi's the next data, I'm
56
+
57
+ 15
58
+ 00:00:55,000 --> 00:00:56,000
59
+ writing ID.
60
+
61
+ 16
62
+ 00:00:57,000 --> 00:00:59,000
63
+ So that's my thesis.
64
+
65
+ 17
66
+ 00:00:59,000 --> 00:01:02,000
67
+ OK, let me show you, is it correct or not?
68
+
69
+ 18
70
+ 00:01:02,000 --> 00:01:09,000
71
+ So I'm just coming to the browser and here I'm going for the assistant magical thesis.
72
+
73
+ 19
74
+ 00:01:10,000 --> 00:01:12,000
75
+ Here I have pasted my data.
76
+
77
+ 20
78
+ 00:01:13,000 --> 00:01:18,000
79
+ So if you check it here, it shows one matches means one match.
80
+
81
+ 21
82
+ 00:01:18,000 --> 00:01:21,000
83
+ Just did it match with the one element.
84
+
85
+ 22
86
+ 00:01:21,000 --> 00:01:24,000
87
+ Also, if you notice that element is highlighted.
88
+
89
+ 23
90
+ 00:01:25,000 --> 00:01:28,000
91
+ So here we can identify the syntax we have written.
92
+
93
+ 24
94
+ 00:01:28,000 --> 00:01:29,000
95
+ It's correct.
96
+
97
+ 25
98
+ 00:01:29,000 --> 00:01:36,000
99
+ It is able to locate that element uniquely and same task if you want to do on five bonus.
100
+
101
+ 26
102
+ 00:01:37,000 --> 00:01:43,000
103
+ I'm just moving here and I'm using see as this is equal to here and we have to write to see if this
104
+
105
+ 27
106
+ 00:01:43,000 --> 00:01:48,000
107
+ is equal to because here all the look, it will be hitting the target.
108
+
109
+ 28
110
+ 00:01:48,000 --> 00:01:54,000
111
+ But if you are using Chrome, we have to select like if you want to go for the SEISS or export.
112
+
113
+ 29
114
+ 00:01:55,000 --> 00:01:57,000
115
+ No, I'm just going to highlight this.
116
+
117
+ 30
118
+ 00:01:57,000 --> 00:02:01,000
119
+ So if you notice that element is going to be highlighted, okay, I'll just.
120
+
121
+ 31
122
+ 00:02:02,000 --> 00:02:03,000
123
+ Click it again.
124
+
125
+ 32
126
+ 00:02:03,000 --> 00:02:04,000
127
+ So that is highlighted.
128
+
129
+ 33
130
+ 00:02:05,000 --> 00:02:10,000
131
+ OK, now if you notice we have seen fuzzy text in which we are writing I.D., we are using it.
132
+
133
+ 34
134
+ 00:02:10,000 --> 00:02:14,000
135
+ But before writing the ID, we are using hash.
136
+
137
+ 35
138
+ 00:02:15,000 --> 00:02:21,000
139
+ The second approach here in the text one where we can use beg with ID.
140
+
141
+ 36
142
+ 00:02:22,000 --> 00:02:25,000
143
+ So if you notice in our HTML.
144
+
145
+ 37
146
+ 00:02:27,000 --> 00:02:28,000
147
+ I just right click on this.
148
+
149
+ 38
150
+ 00:02:30,000 --> 00:02:36,000
151
+ And my achievement having the tech input, so my biggest input and it is email.
152
+
153
+ 39
154
+ 00:02:37,000 --> 00:02:42,000
155
+ So second syntax is big with 80, so taggers input.
156
+
157
+ 40
158
+ 00:02:42,000 --> 00:02:47,000
159
+ And before writing the ID, we need to use hash and the ID is email.
160
+
161
+ 41
162
+ 00:02:47,000 --> 00:02:49,000
163
+ Okay, let me show you, I'll just copy this.
164
+
165
+ 42
166
+ 00:02:50,000 --> 00:02:54,000
167
+ I'm going to the browser and here I'm opening.
168
+
169
+ 43
170
+ 00:02:54,000 --> 00:02:59,000
171
+ See assistant export checker Cece's selected just Tullett.
172
+
173
+ 44
174
+ 00:02:59,000 --> 00:03:04,000
175
+ So that is highlighting OK, if I write anything incorrect, like if I miss this hash so it does not
176
+
177
+ 45
178
+ 00:03:04,000 --> 00:03:05,000
179
+ look at anything.
180
+
181
+ 46
182
+ 00:03:06,000 --> 00:03:07,000
183
+ But if you're writing the hash?
184
+
185
+ 47
186
+ 00:03:07,000 --> 00:03:09,000
187
+ Yes, we are looking correct element.
188
+
189
+ 48
190
+ 00:03:10,000 --> 00:03:12,000
191
+ Same if you want to check here.
192
+
193
+ 49
194
+ 00:03:13,000 --> 00:03:15,000
195
+ I'm just moving too slowly.
196
+
197
+ 50
198
+ 00:03:15,000 --> 00:03:20,000
199
+ My body and I'm writing CSX locator value is this highlight.
200
+
201
+ 51
202
+ 00:03:21,000 --> 00:03:22,000
203
+ So if you notice that element is highlighted.
204
+
205
+ 52
206
+ 00:03:25,000 --> 00:03:30,000
207
+ So we have seen first technique of the thesis element crater where we are using it, the idea of the
208
+
209
+ 53
210
+ 00:03:30,000 --> 00:03:34,000
211
+ element, that's all we have tanks watching this video.
212
+
30 - Learn Element Locators/009 Locate Element by CSS - Syntax 2 - using Class Name & Tag with Class Name_en.srt ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:08,000
3
+ Welcome to the testing world in this session, we are going to understand second takes off seizes element
4
+
5
+ 2
6
+ 00:00:08,000 --> 00:00:08,000
7
+ locator.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:11,000
11
+ And here we are going to use glass of the element.
12
+
13
+ 4
14
+ 00:00:11,000 --> 00:00:13,000
15
+ OK, let me move to the browser.
16
+
17
+ 5
18
+ 00:00:15,000 --> 00:00:18,000
19
+ And first of all, I'm just stretching all the extremely element.
20
+
21
+ 6
22
+ 00:00:19,000 --> 00:00:27,000
23
+ So if you check it in, ex-chairman here, glass is input text and that is said by the developer so
24
+
25
+ 7
26
+ 00:00:27,000 --> 00:00:30,000
27
+ we can use this glass to look at element two cases.
28
+
29
+ 8
30
+ 00:00:30,000 --> 00:00:32,000
31
+ OK, just copy the class name.
32
+
33
+ 9
34
+ 00:00:33,000 --> 00:00:35,000
35
+ I'm coming here and fuss syntax text.
36
+
37
+ 10
38
+ 00:00:36,000 --> 00:00:39,000
39
+ And here we are going to write syntax by using glass.
40
+
41
+ 11
42
+ 00:00:39,000 --> 00:00:43,000
43
+ So this is equal to whenever you are using glass beam.
44
+
45
+ 12
46
+ 00:00:44,000 --> 00:00:47,000
47
+ It started with that dot dot.
48
+
49
+ 13
50
+ 00:00:47,000 --> 00:00:49,000
51
+ And what are the class name you are giving?
52
+
53
+ 14
54
+ 00:00:49,000 --> 00:00:50,000
55
+ So that is input text.
56
+
57
+ 15
58
+ 00:00:51,000 --> 00:00:56,000
59
+ OK, I just copied this moving to see cis and export checker.
60
+
61
+ 16
62
+ 00:00:58,000 --> 00:00:58,000
63
+ OK.
64
+
65
+ 17
66
+ 00:00:59,000 --> 00:01:02,000
67
+ And I'm just selecting this link to right.
68
+
69
+ 18
70
+ 00:01:03,000 --> 00:01:11,000
71
+ That is my element locator, but here if you notice it is matching, this locator is matching with the
72
+
73
+ 19
74
+ 00:01:12,000 --> 00:01:13,000
75
+ eight elements.
76
+
77
+ 20
78
+ 00:01:14,000 --> 00:01:20,000
79
+ So we're using glass, but it's going to match with the eight element if you use this element located
80
+
81
+ 21
82
+ 00:01:20,000 --> 00:01:22,000
83
+ in automation, in our automation script.
84
+
85
+ 22
86
+ 00:01:22,000 --> 00:01:25,000
87
+ So it could match more than one element and might be.
88
+
89
+ 23
90
+ 00:01:25,000 --> 00:01:28,000
91
+ We are not able to perform task on a correct element.
92
+
93
+ 24
94
+ 00:01:29,000 --> 00:01:31,000
95
+ So if you're using selenium, it always work on the first.
96
+
97
+ 25
98
+ 00:01:31,000 --> 00:01:35,000
99
+ Such but different tools use different strategy.
100
+
101
+ 26
102
+ 00:01:36,000 --> 00:01:41,000
103
+ So here, whenever whenever you create any element locator, it could be cases it could be a spot or
104
+
105
+ 27
106
+ 00:01:41,000 --> 00:01:42,000
107
+ it could be anything else.
108
+
109
+ 28
110
+ 00:01:43,000 --> 00:01:48,000
111
+ And if it is matching with more than one element, try to skip that locator and move to the next one.
112
+
113
+ 29
114
+ 00:01:48,000 --> 00:01:54,000
115
+ But here I'm showing you the index so that it doesn't text where we are using Dot and that last name.
116
+
117
+ 30
118
+ 00:01:54,000 --> 00:01:58,000
119
+ So that is a first index where we are writing cases by using glass.
120
+
121
+ 31
122
+ 00:01:59,000 --> 00:02:05,000
123
+ OK, second syntax is we can use Bagani with glass.
124
+
125
+ 32
126
+ 00:02:05,000 --> 00:02:11,000
127
+ So if you remember here, the technique was I'll just show you one more time.
128
+
129
+ 33
130
+ 00:02:12,000 --> 00:02:19,000
131
+ He had the technical input I'm writing like input, dot, dot and offer the class name, class name
132
+
133
+ 34
134
+ 00:02:19,000 --> 00:02:20,000
135
+ is this.
136
+
137
+ 35
138
+ 00:02:21,000 --> 00:02:30,000
139
+ If I just copy it and try to search that element by using CSS as an expert checker again, you will
140
+
141
+ 36
142
+ 00:02:30,000 --> 00:02:34,000
143
+ check it is matching with it match eight elements.
144
+
145
+ 37
146
+ 00:02:34,000 --> 00:02:40,000
147
+ So these all eight elements are the type input and class is same, which is input text.
148
+
149
+ 38
150
+ 00:02:42,000 --> 00:02:49,000
151
+ So here we have seen second technique of thesis element locator where we're using glass or glass name.
152
+
153
+ 39
154
+ 00:02:50,000 --> 00:02:50,000
155
+ That's all.
156
+
157
+ 40
158
+ 00:02:50,000 --> 00:02:53,000
159
+ We have tanks watching this video.
160
+
30 - Learn Element Locators/010 Locate Element by CSS - Syntax 3 - using any attribute & Tag with attribute_en.srt ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:10,000
7
+ So now I'm going to show you next syntax off CSIS Element Locator here, we're going to use any attribute
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:11,000
11
+ previously we have seen.
12
+
13
+ 4
14
+ 00:00:11,000 --> 00:00:12,000
15
+ What do you mean by attribute?
16
+
17
+ 5
18
+ 00:00:13,000 --> 00:00:15,000
19
+ I'm just coming to any element.
20
+
21
+ 6
22
+ 00:00:15,000 --> 00:00:20,000
23
+ And just right click, I try to view achievement of that element.
24
+
25
+ 7
26
+ 00:00:20,000 --> 00:00:27,000
27
+ And if you notice in this a.m. beggar's input and we have many attribute when this type, either one
28
+
29
+ 8
30
+ 00:00:27,000 --> 00:00:31,000
31
+ is class name I.D. data to study.
32
+
33
+ 9
34
+ 00:00:32,000 --> 00:00:36,000
35
+ So we have many attribute and this time I want to use attribute with the name type.
36
+
37
+ 10
38
+ 00:00:37,000 --> 00:00:42,000
39
+ So whenever you want to use any attribute, the syntax is square bracket.
40
+
41
+ 11
42
+ 00:00:42,000 --> 00:00:44,000
43
+ What are the name of the attributes?
44
+
45
+ 12
46
+ 00:00:44,000 --> 00:00:47,000
47
+ So I'm going to use that attribute, which is type and the values emails I'm writing.
48
+
49
+ 13
50
+ 00:00:47,000 --> 00:00:51,000
51
+ Lake type is equal to value.
52
+
53
+ 14
54
+ 00:00:52,000 --> 00:00:56,000
55
+ Value is email, but it's always a good practice.
56
+
57
+ 15
58
+ 00:00:56,000 --> 00:01:01,000
59
+ So whenever you're giving attribute value, it should be in the single code.
60
+
61
+ 16
62
+ 00:01:02,000 --> 00:01:05,000
63
+ So if you have a space in the values, it will handle that.
64
+
65
+ 17
66
+ 00:01:06,000 --> 00:01:08,000
67
+ So always a good practice to use single code.
68
+
69
+ 18
70
+ 00:01:09,000 --> 00:01:10,000
71
+ So syntax is very simple.
72
+
73
+ 19
74
+ 00:01:10,000 --> 00:01:16,000
75
+ The square récord attribute name and value is equal to value, and value is in the single code.
76
+
77
+ 20
78
+ 00:01:16,000 --> 00:01:18,000
79
+ Okay, let me show you here.
80
+
81
+ 21
82
+ 00:01:18,000 --> 00:01:26,000
83
+ I just copy this moving to the browser and I'm moving to the thesis assistant spot checker ceases and
84
+
85
+ 22
86
+ 00:01:26,000 --> 00:01:27,000
87
+ that's the value.
88
+
89
+ 23
90
+ 00:01:27,000 --> 00:01:33,000
91
+ So if you notice that is highlighted means yes, we are using Gutek Element Locator.
92
+
93
+ 24
94
+ 00:01:35,000 --> 00:01:42,000
95
+ OK, now I'll show you the second syntax where we can use any attribute is tagged with any attribute.
96
+
97
+ 25
98
+ 00:01:42,000 --> 00:01:50,000
99
+ So here, if I write like CIUSSS is equal to and the tag is if you check it, it will help you remember
100
+
101
+ 26
102
+ 00:01:50,000 --> 00:01:51,000
103
+ it was input.
104
+
105
+ 27
106
+ 00:01:52,000 --> 00:01:52,000
107
+ So input.
108
+
109
+ 28
110
+ 00:01:53,000 --> 00:01:59,000
111
+ I'm just writing like tag with any attributes of PEG as input and any attribute it should be in the
112
+
113
+ 29
114
+ 00:01:59,000 --> 00:02:00,000
115
+ square brackets.
116
+
117
+ 30
118
+ 00:02:01,000 --> 00:02:01,000
119
+ OK.
120
+
121
+ 31
122
+ 00:02:01,000 --> 00:02:05,000
123
+ This time, let me show you one more attribute, which is.
124
+
125
+ 32
126
+ 00:02:06,000 --> 00:02:06,000
127
+ OK.
128
+
129
+ 33
130
+ 00:02:07,000 --> 00:02:12,000
131
+ So this time we can use we can use any attribute, even if you notice the name, and it is also a attribute
132
+
133
+ 34
134
+ 00:02:13,000 --> 00:02:14,000
135
+ so you can use it.
136
+
137
+ 35
138
+ 00:02:14,000 --> 00:02:18,000
139
+ Like if I mentioned like it is equal to and the value is in the single course.
140
+
141
+ 36
142
+ 00:02:19,000 --> 00:02:24,000
143
+ So that is my thesis syntax with attributes.
144
+
145
+ 37
146
+ 00:02:24,000 --> 00:02:30,000
147
+ I'll just copy this moving here and use this expert checker.
148
+
149
+ 38
150
+ 00:02:32,000 --> 00:02:38,000
151
+ Removing previous one, and that is so it is matching with exactly one element, means the Yes, doesn't
152
+
153
+ 39
154
+ 00:02:38,000 --> 00:02:39,000
155
+ Texas.
156
+
157
+ 40
158
+ 00:02:39,000 --> 00:02:39,000
159
+ Correct.
160
+
161
+ 41
162
+ 00:02:41,000 --> 00:02:45,000
163
+ So here we have seen Syntax Tree in which we are using any attribute.
164
+
165
+ 42
166
+ 00:02:46,000 --> 00:02:49,000
167
+ That's all we have for the session tanks watching this video.
168
+
30 - Learn Element Locators/011 Locate Element by CSS - Syntax 4 - using ID with attribute &Tag with ID & attrib_en.srt ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:08,000
3
+ Welcome to the testing world in this session, I'll show you one more context in which which is a combination
4
+
5
+ 2
6
+ 00:00:08,000 --> 00:00:09,000
7
+ of syntax one and syntax three.
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:14,000
11
+ So in context one we have seen we are using I.D. and Syntax Tree.
12
+
13
+ 4
14
+ 00:00:14,000 --> 00:00:17,000
15
+ We have seen we are using attribute here.
16
+
17
+ 5
18
+ 00:00:17,000 --> 00:00:22,000
19
+ We can combine them means I'm going to use I.D. with attribute with any other attribute.
20
+
21
+ 6
22
+ 00:00:23,000 --> 00:00:24,000
23
+ So if you remember.
24
+
25
+ 7
26
+ 00:00:26,000 --> 00:00:29,000
27
+ CCS is equal to and I'm just going to that put him in.
28
+
29
+ 8
30
+ 00:00:29,000 --> 00:00:34,000
31
+ So this time I'm just going to look at password to I just right click on this inspect element.
32
+
33
+ 9
34
+ 00:00:35,000 --> 00:00:37,000
35
+ OK, here if we check it.
36
+
37
+ 10
38
+ 00:00:37,000 --> 00:00:40,000
39
+ So we are going to use it with any attributes of it.
40
+
41
+ 11
42
+ 00:00:40,000 --> 00:00:48,000
43
+ Here is pass and any attributes I have to with the name type is equal to password.
44
+
45
+ 12
46
+ 00:00:48,000 --> 00:00:49,000
47
+ So what I'm doing?
48
+
49
+ 13
50
+ 00:00:49,000 --> 00:00:51,000
51
+ First of all, I'm writing ID.
52
+
53
+ 14
54
+ 00:00:52,000 --> 00:00:56,000
55
+ So whenever you are writing ID like hash bars, that's my I.D..
56
+
57
+ 15
58
+ 00:00:56,000 --> 00:00:59,000
59
+ And before writing the I.D., we need two engine hash.
60
+
61
+ 16
62
+ 00:00:59,000 --> 00:01:02,000
63
+ Then any attribute, any attribute should be in the square records.
64
+
65
+ 17
66
+ 00:01:03,000 --> 00:01:05,000
67
+ So I just come here and I'm going to use Attribute, which is type.
68
+
69
+ 18
70
+ 00:01:06,000 --> 00:01:11,000
71
+ So I just mention type and the value is in the single code.
72
+
73
+ 19
74
+ 00:01:11,000 --> 00:01:16,000
75
+ So if we check that is a combination of first one and third one, in first we are writing it.
76
+
77
+ 20
78
+ 00:01:17,000 --> 00:01:21,000
79
+ So whenever we are using only ID, we are writing the cache and the ID.
80
+
81
+ 21
82
+ 00:01:21,000 --> 00:01:25,000
83
+ And then in third, we have seen parts and text.
84
+
85
+ 22
86
+ 00:01:25,000 --> 00:01:30,000
87
+ We have seen any attribute, any attribute means in the square record attribute name and its value.
88
+
89
+ 23
90
+ 00:01:30,000 --> 00:01:32,000
91
+ So that's my send off thesis.
92
+
93
+ 24
94
+ 00:01:32,000 --> 00:01:38,000
95
+ I'll just copy this and let me move to see, is this an expert checker?
96
+
97
+ 25
98
+ 00:01:39,000 --> 00:01:41,000
99
+ I'm just removing this one highlight.
100
+
101
+ 26
102
+ 00:01:42,000 --> 00:01:47,000
103
+ So if you notice that element is highlighted and it is matching with exactly one element.
104
+
105
+ 27
106
+ 00:01:49,000 --> 00:01:54,000
107
+ So here we have seen syntax in which we are using it with any attribute.
108
+
109
+ 28
110
+ 00:01:56,000 --> 00:02:03,000
111
+ And the next one, as we can see here, bag with ID, with any attribute, so there we have seen first
112
+
113
+ 29
114
+ 00:02:03,000 --> 00:02:06,000
115
+ we can write tech, which is important in our case.
116
+
117
+ 30
118
+ 00:02:06,000 --> 00:02:07,000
119
+ So that is tagged with ID.
120
+
121
+ 31
122
+ 00:02:08,000 --> 00:02:11,000
123
+ They hash I.D. and any attribute.
124
+
125
+ 32
126
+ 00:02:12,000 --> 00:02:14,000
127
+ So that is another syntax which you can use.
128
+
129
+ 33
130
+ 00:02:14,000 --> 00:02:15,000
131
+ I just copied this.
132
+
133
+ 34
134
+ 00:02:18,000 --> 00:02:23,000
135
+ Going to the sea as an expert checker, that is so that is highlighted.
136
+
137
+ 35
138
+ 00:02:25,000 --> 00:02:32,000
139
+ So that is beg with I.D. with any attribute, and it's a combination of sin tax, one plus and tree.
140
+
141
+ 36
142
+ 00:02:33,000 --> 00:02:35,000
143
+ So here's a syntax for we.
144
+
145
+ 37
146
+ 00:02:35,000 --> 00:02:39,000
147
+ We're realizing it with a tribute or bag with it.
148
+
149
+ 38
150
+ 00:02:39,000 --> 00:02:45,000
151
+ And that any attribute that's all we have for the session tanks watching this, we do.
152
+
30 - Learn Element Locators/012 Locate Element by CSS - Syntax 5 - using Class & Attribute_en.srt ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:08,000
7
+ So now I'm going to send X Y off thesis element locator here.
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:16,000
11
+ We are going to combine syntax to incent extra incentive to help you remember we are using class and
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:16,000
15
+ syntax tree.
16
+
17
+ 5
18
+ 00:00:16,000 --> 00:00:18,000
19
+ We're using any attribute.
20
+
21
+ 6
22
+ 00:00:18,000 --> 00:00:19,000
23
+ So now we'll combined it.
24
+
25
+ 7
26
+ 00:00:20,000 --> 00:00:20,000
27
+ Okay.
28
+
29
+ 8
30
+ 00:00:20,000 --> 00:00:28,000
31
+ Let me move to the browser first, and I want to locate any element.
32
+
33
+ 9
34
+ 00:00:28,000 --> 00:00:29,000
35
+ I want to look at this e-mail box.
36
+
37
+ 10
38
+ 00:00:29,000 --> 00:00:31,000
39
+ Right click on Element Inspect.
40
+
41
+ 11
42
+ 00:00:32,000 --> 00:00:32,000
43
+ OK.
44
+
45
+ 12
46
+ 00:00:32,000 --> 00:00:34,000
47
+ If you notice here.
48
+
49
+ 13
50
+ 00:00:34,000 --> 00:00:38,000
51
+ So we have we have a class input text.
52
+
53
+ 14
54
+ 00:00:38,000 --> 00:00:45,000
55
+ So previously we have seen if you want to use only class, that's the syntax like dart class name and
56
+
57
+ 15
58
+ 00:00:45,000 --> 00:00:46,000
59
+ then any attribute.
60
+
61
+ 16
62
+ 00:00:46,000 --> 00:00:49,000
63
+ Any attribute means we are going to use in the squared record.
64
+
65
+ 17
66
+ 00:00:49,000 --> 00:00:52,000
67
+ So here we have many attribute one attribute this type.
68
+
69
+ 18
70
+ 00:00:52,000 --> 00:00:57,000
71
+ So I'm just using attribute type and the value isn't single course.
72
+
73
+ 19
74
+ 00:00:58,000 --> 00:01:01,000
75
+ So that is the technique in which we are using class with any attribute.
76
+
77
+ 20
78
+ 00:01:02,000 --> 00:01:06,000
79
+ OK, let me copy this moving to the browser.
80
+
81
+ 21
82
+ 00:01:08,000 --> 00:01:09,000
83
+ Checking here.
84
+
85
+ 22
86
+ 00:01:09,000 --> 00:01:15,000
87
+ So that shows it is not matching because one bracket was extra.
88
+
89
+ 23
90
+ 00:01:15,000 --> 00:01:17,000
91
+ So now it is matching with the correct element.
92
+
93
+ 24
94
+ 00:01:18,000 --> 00:01:25,000
95
+ So we have seen we can use glass with any attribute glass always whenever we are using glass dot.
96
+
97
+ 25
98
+ 00:01:25,000 --> 00:01:29,000
99
+ And that last name and whatever the attribute, if you are using attribute, we just type.
100
+
101
+ 26
102
+ 00:01:31,000 --> 00:01:38,000
103
+ And we know that next bag with glass, with any tribute sort of bag is in put in our case, you know,
104
+
105
+ 27
106
+ 00:01:38,000 --> 00:01:46,000
107
+ we have seen that still many same day with a glass bag dot last name and any attribute attribute is
108
+
109
+ 28
110
+ 00:01:46,000 --> 00:01:47,000
111
+ in the square brackets.
112
+
113
+ 29
114
+ 00:01:48,000 --> 00:01:53,000
115
+ Just copy and let me move to the browser here.
116
+
117
+ 30
118
+ 00:01:55,000 --> 00:02:00,000
119
+ It still does highlight it, but if you are giving an incorrect syntax, if you're doing any correction
120
+
121
+ 31
122
+ 00:02:00,000 --> 00:02:02,000
123
+ text that is going to throw you error.
124
+
125
+ 32
126
+ 00:02:03,000 --> 00:02:09,000
127
+ So here we have since indexed five, where we are using a combination of Index two and Index three.
128
+
129
+ 33
130
+ 00:02:10,000 --> 00:02:12,000
131
+ That's all we have for the session.
132
+
133
+ 34
134
+ 00:02:12,000 --> 00:02:14,000
135
+ Thanks watching this video.
136
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/001 Locate Element by Xpath - Syntax 1 Use Single Attribute_en.srt ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:04,000
3
+ Welcome to the testing world, no one works, we are going to go expert.
4
+
5
+ 2
6
+ 00:00:05,000 --> 00:00:10,000
7
+ So before moving to the spot, the first of all, I just want to show you basics and pixel decks.
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:15,000
11
+ But so whenever you are writing export, it always starts with the double forward slash.
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:21,000
15
+ Now we are moving to fuss and Texas Tech spot in which we are going to use a single attribute.
16
+
17
+ 5
18
+ 00:00:22,000 --> 00:00:25,000
19
+ Okay, let me move to the browser and here that's my application.
20
+
21
+ 6
22
+ 00:00:26,000 --> 00:00:28,000
23
+ I'm going to show you a spot here on the Facebook.
24
+
25
+ 7
26
+ 00:00:28,000 --> 00:00:35,000
27
+ Also on my application, which is that testing word or come forward testing, OK, I want to locate
28
+
29
+ 8
30
+ 00:00:35,000 --> 00:00:36,000
31
+ this login button.
32
+
33
+ 9
34
+ 00:00:37,000 --> 00:00:42,000
35
+ I just right click on this inspect as I click Inspect.
36
+
37
+ 10
38
+ 00:00:42,000 --> 00:00:49,000
39
+ So we are going to get we have lot of attributes or tag name is input here, and we have a lot of attribute.
40
+
41
+ 11
42
+ 00:00:49,000 --> 00:00:52,000
43
+ I'm going to use Attribute, which is value added.
44
+
45
+ 12
46
+ 00:00:52,000 --> 00:00:56,000
47
+ The first index of the export is big name.
48
+
49
+ 13
50
+ 00:00:57,000 --> 00:01:02,000
51
+ So here in our case, it is input, so it's always so export to start with the double forward slash
52
+
53
+ 14
54
+ 00:01:03,000 --> 00:01:06,000
55
+ input and single attribute a single attribute.
56
+
57
+ 15
58
+ 00:01:06,000 --> 00:01:13,000
59
+ Whenever we are adding attribute, it should be in the sky record and the attribute name is value and
60
+
61
+ 16
62
+ 00:01:13,000 --> 00:01:15,000
63
+ it contains this log in.
64
+
65
+ 17
66
+ 00:01:16,000 --> 00:01:20,000
67
+ Data of this value is log in whenever we are writing export.
68
+
69
+ 18
70
+ 00:01:21,000 --> 00:01:24,000
71
+ And in that export whenever we are using attribute name.
72
+
73
+ 19
74
+ 00:01:25,000 --> 00:01:27,000
75
+ So before that, we should write, edit it.
76
+
77
+ 20
78
+ 00:01:27,000 --> 00:01:32,000
79
+ So that's the first index, which is tagged with a single attribute.
80
+
81
+ 21
82
+ 00:01:33,000 --> 00:01:37,000
83
+ Here are tags input and the attribute was value.
84
+
85
+ 22
86
+ 00:01:37,000 --> 00:01:40,000
87
+ And that's the data which is placed in front of the attribute.
88
+
89
+ 23
90
+ 00:01:40,000 --> 00:01:44,000
91
+ Data is always in the single code attribute name.
92
+
93
+ 24
94
+ 00:01:44,000 --> 00:01:46,000
95
+ Before that, it wouldn't even be able to edit it.
96
+
97
+ 25
98
+ 00:01:46,000 --> 00:01:50,000
99
+ If we check it here, I'm going to use the attribute with the value I can use any attribute.
100
+
101
+ 26
102
+ 00:01:51,000 --> 00:01:52,000
103
+ OK, I try to use one more attribute.
104
+
105
+ 27
106
+ 00:01:53,000 --> 00:01:53,000
107
+ We just type.
108
+
109
+ 28
110
+ 00:01:54,000 --> 00:02:00,000
111
+ So here I'm writing like type and value of the type is summat.
112
+
113
+ 29
114
+ 00:02:01,000 --> 00:02:10,000
115
+ So if you notice here, Peg is input attribute I'm using, which is type and value of the attribute
116
+
117
+ 30
118
+ 00:02:10,000 --> 00:02:10,000
119
+ in the single code.
120
+
121
+ 31
122
+ 00:02:11,000 --> 00:02:16,000
123
+ Before that, you would name it should be at the rate so that the first index of export.
124
+
125
+ 32
126
+ 00:02:16,000 --> 00:02:19,000
127
+ OK, let me copy moving to the browser.
128
+
129
+ 33
130
+ 00:02:20,000 --> 00:02:24,000
131
+ I'm just opening C Is this an export checker?
132
+
133
+ 34
134
+ 00:02:24,000 --> 00:02:29,000
135
+ And this time I'm using export to, as I enter it, just one match.
136
+
137
+ 35
138
+ 00:02:29,000 --> 00:02:30,000
139
+ OK.
140
+
141
+ 36
142
+ 00:02:30,000 --> 00:02:34,000
143
+ You're not able to see that because it is coming over to log in button.
144
+
145
+ 37
146
+ 00:02:34,000 --> 00:02:36,000
147
+ So I'll just remove this.
148
+
149
+ 38
150
+ 00:02:36,000 --> 00:02:39,000
151
+ And if rejected, that element is highlighted.
152
+
153
+ 39
154
+ 00:02:41,000 --> 00:02:47,000
155
+ So, Foster, ticks of the export is tagged with the single attribute, we can use any attribute that
156
+
157
+ 40
158
+ 00:02:47,000 --> 00:02:47,000
159
+ we have seen.
160
+
161
+ 41
162
+ 00:02:48,000 --> 00:02:49,000
163
+ We are using single attribute.
164
+
165
+ 42
166
+ 00:02:49,000 --> 00:02:55,000
167
+ We can use any attribute that we have seen, but always check the attribute, which looks static.
168
+
169
+ 43
170
+ 00:02:55,000 --> 00:02:57,000
171
+ Okay, let me show you what does it mean?
172
+
173
+ 44
174
+ 00:02:58,000 --> 00:02:59,000
175
+ I'm just coming to the demo.
176
+
177
+ 45
178
+ 00:03:00,000 --> 00:03:07,000
179
+ Here we have many attributes like value area label data to study type ID.
180
+
181
+ 46
182
+ 00:03:07,000 --> 00:03:14,000
183
+ If we notice here I.D. value, you underscore zero underscore two that does not seem to be meaningful.
184
+
185
+ 47
186
+ 00:03:15,000 --> 00:03:17,000
187
+ The kind of values are dynamic.
188
+
189
+ 48
190
+ 00:03:17,000 --> 00:03:19,000
191
+ It's going to be change very frequently.
192
+
193
+ 49
194
+ 00:03:19,000 --> 00:03:26,000
195
+ So always, whenever you are taking attribute, just make sure the value should be static, as every
196
+
197
+ 50
198
+ 00:03:26,000 --> 00:03:30,000
199
+ time the page will load, a new value will be placed here.
200
+
201
+ 51
202
+ 00:03:30,000 --> 00:03:32,000
203
+ You will have to update your spot again and again.
204
+
205
+ 52
206
+ 00:03:32,000 --> 00:03:40,000
207
+ We don't use that kind of dynamic attributes in the same way if you check it style background RGV This
208
+
209
+ 53
210
+ 00:03:40,000 --> 00:03:46,000
211
+ border value and the column could change very frequently, so we are not using that kind of attributes.
212
+
213
+ 54
214
+ 00:03:48,000 --> 00:03:50,000
215
+ Let me show you the same on my application.
216
+
217
+ 55
218
+ 00:03:50,000 --> 00:03:53,000
219
+ I want to work on this, my username textbox.
220
+
221
+ 56
222
+ 00:03:54,000 --> 00:03:59,000
223
+ So let me highlight that all of this here, that is input.
224
+
225
+ 57
226
+ 00:04:00,000 --> 00:04:04,000
227
+ And we have many attributes like class name, required, type, placeholder.
228
+
229
+ 58
230
+ 00:04:05,000 --> 00:04:11,000
231
+ If you know or this class here we have many elements and the classes seem so if if you are using class
232
+
233
+ 59
234
+ 00:04:11,000 --> 00:04:14,000
235
+ as attribute, it is going to look at multiple elements.
236
+
237
+ 60
238
+ 00:04:14,000 --> 00:04:17,000
239
+ We try to use any attribute which seems to be static.
240
+
241
+ 61
242
+ 00:04:18,000 --> 00:04:22,000
243
+ So if we check it, name a fully underscore user name that seems to be static.
244
+
245
+ 62
246
+ 00:04:22,000 --> 00:04:31,000
247
+ Okay, let me copy this and I'm writing export like input and we are using it attribute with the name.
248
+
249
+ 63
250
+ 00:04:32,000 --> 00:04:37,000
251
+ We just name a key edit it name because before that we would be using edit.
252
+
253
+ 64
254
+ 00:04:37,000 --> 00:04:40,000
255
+ It is equal to and whatever the value.
256
+
257
+ 65
258
+ 00:04:41,000 --> 00:04:42,000
259
+ So that's my export.
260
+
261
+ 66
262
+ 00:04:42,000 --> 00:04:46,000
263
+ Okay, let me copy this and show you here on the browser.
264
+
265
+ 67
266
+ 00:04:46,000 --> 00:04:47,000
267
+ I'm just closing it.
268
+
269
+ 68
270
+ 00:04:47,000 --> 00:04:49,000
271
+ See it as an export checker.
272
+
273
+ 69
274
+ 00:04:51,000 --> 00:04:56,000
275
+ Much so, if you check it, it is meeting with the exactly one element which is highlighted.
276
+
277
+ 70
278
+ 00:04:58,000 --> 00:05:03,000
279
+ So here we have seen fuss and pics of the spot where we are using single attribute.
280
+
281
+ 71
282
+ 00:05:04,000 --> 00:05:07,000
283
+ That's all we have for the session tanks watching this video.
284
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/002 Locate Element by Xpath - Syntax 2 Use Multiple Attributes with OR condition_en.srt ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:09,000
7
+ So in this session, I'll show you second syntax in which we are going to use multiple attribute with
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:10,000
11
+ or condition.
12
+
13
+ 4
14
+ 00:00:10,000 --> 00:00:13,000
15
+ So previously we have seen we are using one attribute.
16
+
17
+ 5
18
+ 00:00:13,000 --> 00:00:16,000
19
+ But now I'll show you multiple attribute with or condition.
20
+
21
+ 6
22
+ 00:00:17,000 --> 00:00:28,000
23
+ OK, now if I move here on my application and yeah, and I want to work on this, firstly, OK, I'll
24
+
25
+ 7
26
+ 00:00:28,000 --> 00:00:31,000
27
+ just right click on this and inspect element.
28
+
29
+ 8
30
+ 00:00:32,000 --> 00:00:36,000
31
+ So here my bag is input, and we have many attributes like type.
32
+
33
+ 9
34
+ 00:00:37,000 --> 00:00:47,000
35
+ Class the rest I.D. They rape me in any adequate place holder, area level I.D. So we have many attributes.
36
+
37
+ 10
38
+ 00:00:48,000 --> 00:00:49,000
39
+ OK, what I want to see.
40
+
41
+ 11
42
+ 00:00:49,000 --> 00:00:56,000
43
+ I want to look at an element where either name is equal to first name or area label is a first name.
44
+
45
+ 12
46
+ 00:00:57,000 --> 00:01:03,000
47
+ So the point is here we are going to give multiple attribute and we won't if any of that dispute is
48
+
49
+ 13
50
+ 00:01:03,000 --> 00:01:03,000
51
+ going to match.
52
+
53
+ 14
54
+ 00:01:04,000 --> 00:01:04,000
55
+ It should work.
56
+
57
+ 15
58
+ 00:01:05,000 --> 00:01:06,000
59
+ Okay, let me show you.
60
+
61
+ 16
62
+ 00:01:06,000 --> 00:01:12,000
63
+ So again, whenever we are writing what started with the double forward slash tag here, the tag is
64
+
65
+ 17
66
+ 00:01:12,000 --> 00:01:12,000
67
+ input.
68
+
69
+ 18
70
+ 00:01:12,000 --> 00:01:16,000
71
+ So I mention input in the square bracket.
72
+
73
+ 19
74
+ 00:01:16,000 --> 00:01:18,000
75
+ We can give many attribute multiple attributes.
76
+
77
+ 20
78
+ 00:01:18,000 --> 00:01:20,000
79
+ The first attribute his name.
80
+
81
+ 21
82
+ 00:01:21,000 --> 00:01:23,000
83
+ I use this enter it name.
84
+
85
+ 22
86
+ 00:01:23,000 --> 00:01:28,000
87
+ We know that before the attribute name we need to mention, added value is in the single code.
88
+
89
+ 23
90
+ 00:01:28,000 --> 00:01:34,000
91
+ That's first then or and I'm going to the Security Bureau, which is area labeled.
92
+
93
+ 24
94
+ 00:01:34,000 --> 00:01:38,000
95
+ Okay, I see area label.
96
+
97
+ 25
98
+ 00:01:38,000 --> 00:01:41,000
99
+ And before the attribute name, I'm just using ED.
100
+
101
+ 26
102
+ 00:01:41,000 --> 00:01:47,000
103
+ So now we are using to attribute separated by or or means either value should match.
104
+
105
+ 27
106
+ 00:01:47,000 --> 00:01:57,000
107
+ I can let me copy this morning to the browser, see this expert checker and just paste here.
108
+
109
+ 28
110
+ 00:01:57,000 --> 00:02:01,000
111
+ So element is highlighted only one match.
112
+
113
+ 29
114
+ 00:02:01,000 --> 00:02:02,000
115
+ Is there a okay what I do?
116
+
117
+ 30
118
+ 00:02:03,000 --> 00:02:04,000
119
+ I just change the second value.
120
+
121
+ 31
122
+ 00:02:04,000 --> 00:02:07,000
123
+ I just make the same mistake in the second value.
124
+
125
+ 32
126
+ 00:02:08,000 --> 00:02:15,000
127
+ Still, you will notice it is highlighting that element because that element is match to the first attribute
128
+
129
+ 33
130
+ 00:02:15,000 --> 00:02:19,000
131
+ and we are using or or means either one should match in the same way.
132
+
133
+ 34
134
+ 00:02:19,000 --> 00:02:27,000
135
+ If I set incorrect value in the name means as the first attribute, it is still it is highlighting because
136
+
137
+ 35
138
+ 00:02:27,000 --> 00:02:29,000
139
+ second attribute is matching.
140
+
141
+ 36
142
+ 00:02:30,000 --> 00:02:33,000
143
+ No, if both attribute values are not correct.
144
+
145
+ 37
146
+ 00:02:33,000 --> 00:02:34,000
147
+ It is not going to highlight it.
148
+
149
+ 38
150
+ 00:02:35,000 --> 00:02:42,000
151
+ So we have seen how we can use multiple attributes with or one more thing that we need to notice this
152
+
153
+ 39
154
+ 00:02:42,000 --> 00:02:44,000
155
+ or excuses to.
156
+
157
+ 40
158
+ 00:02:44,000 --> 00:02:46,000
159
+ So that should be the small.
160
+
161
+ 41
162
+ 00:02:46,000 --> 00:02:53,000
163
+ Or if you are using capital or if you are using all capital, it is not going to work.
164
+
165
+ 42
166
+ 00:02:53,000 --> 00:02:54,000
167
+ So that is case sensitive.
168
+
169
+ 43
170
+ 00:02:56,000 --> 00:03:02,000
171
+ So here in this technique, we have seen multiple attributes with or as of now, we have used only two
172
+
173
+ 44
174
+ 00:03:02,000 --> 00:03:03,000
175
+ attributes.
176
+
177
+ 45
178
+ 00:03:03,000 --> 00:03:05,000
179
+ You can use any number of attributes.
180
+
181
+ 46
182
+ 00:03:05,000 --> 00:03:11,000
183
+ So let me move to my application and I want to work on this dropdown.
184
+
185
+ 47
186
+ 00:03:12,000 --> 00:03:14,000
187
+ Let me check it to DML.
188
+
189
+ 48
190
+ 00:03:15,000 --> 00:03:19,000
191
+ OK, if we check it here, we have only one attribute.
192
+
193
+ 49
194
+ 00:03:19,000 --> 00:03:20,000
195
+ OK, let me go to the country.
196
+
197
+ 50
198
+ 00:03:22,000 --> 00:03:23,000
199
+ I want to use multiple attribute.
200
+
201
+ 51
202
+ 00:03:24,000 --> 00:03:24,000
203
+ OK.
204
+
205
+ 52
206
+ 00:03:24,000 --> 00:03:28,000
207
+ If you notice we have here in the country, we have name, we have class.
208
+
209
+ 53
210
+ 00:03:29,000 --> 00:03:31,000
211
+ So I want to use name in class.
212
+
213
+ 54
214
+ 00:03:31,000 --> 00:03:31,000
215
+ OK.
216
+
217
+ 55
218
+ 00:03:32,000 --> 00:03:34,000
219
+ So and that's a tag is select.
220
+
221
+ 56
222
+ 00:03:34,000 --> 00:03:37,000
223
+ So let me write like select.
224
+
225
+ 57
226
+ 00:03:37,000 --> 00:03:38,000
227
+ That's my tag.
228
+
229
+ 58
230
+ 00:03:40,000 --> 00:03:42,000
231
+ And we have for each attribute, which is name.
232
+
233
+ 59
234
+ 00:03:43,000 --> 00:03:44,000
235
+ So let me copy this.
236
+
237
+ 60
238
+ 00:03:47,000 --> 00:03:52,000
239
+ Adelaide name is equal to value and the value should be in the single court.
240
+
241
+ 61
242
+ 00:03:52,000 --> 00:03:54,000
243
+ Even you can mention in the double courts.
244
+
245
+ 62
246
+ 00:03:54,000 --> 00:03:59,000
247
+ But when we are going to take it to the automation and and you're using it in the Jawa, so whenever
248
+
249
+ 63
250
+ 00:03:59,000 --> 00:04:03,000
251
+ we are taking it to the Java in Java string is in the double quotes.
252
+
253
+ 64
254
+ 00:04:04,000 --> 00:04:06,000
255
+ So here it could create problems.
256
+
257
+ 65
258
+ 00:04:06,000 --> 00:04:08,000
259
+ So we are always using the single codes.
260
+
261
+ 66
262
+ 00:04:08,000 --> 00:04:14,000
263
+ But even if you write it in the court as of now, it will work in the same way I'm just mentioned or
264
+
265
+ 67
266
+ 00:04:15,000 --> 00:04:18,000
267
+ and I'm saying glass is equal to.
268
+
269
+ 68
270
+ 00:04:20,000 --> 00:04:23,000
271
+ So Glass is equal to whatever the value.
272
+
273
+ 69
274
+ 00:04:24,000 --> 00:04:26,000
275
+ I'll just copy this.
276
+
277
+ 70
278
+ 00:04:26,000 --> 00:04:29,000
279
+ Take it to the browser again.
280
+
281
+ 71
282
+ 00:04:29,000 --> 00:04:30,000
283
+ See, this is an expert checker.
284
+
285
+ 72
286
+ 00:04:33,000 --> 00:04:41,000
287
+ Experts should be selected here, and that element is highlighted so we can use any number of attributes
288
+
289
+ 73
290
+ 00:04:41,000 --> 00:04:41,000
291
+ here.
292
+
293
+ 74
294
+ 00:04:42,000 --> 00:04:46,000
295
+ Here we are using or means if any of the attribute is going to match, it will work.
296
+
297
+ 75
298
+ 00:04:48,000 --> 00:04:50,000
299
+ That's all we have for the session.
300
+
301
+ 76
302
+ 00:04:50,000 --> 00:04:51,000
303
+ Thanks for watching this video.
304
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/003 Locate Element by Xpath - Syntax 3 Use Multiple Attributes with AND condition_en.srt ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:07,000
3
+ Welcome to the wrestling world in this session, I'm going to show you how we can write Exparte using
4
+
5
+ 2
6
+ 00:00:07,000 --> 00:00:14,000
7
+ multiple attributes, but this time we are going to use and and there is a logical and means if I want
8
+
9
+ 3
10
+ 00:00:14,000 --> 00:00:19,000
11
+ all the attributes, well, you must match in that case we can use.
12
+
13
+ 4
14
+ 00:00:19,000 --> 00:00:23,000
15
+ And let me show you, I'm just moving to the browser.
16
+
17
+ 5
18
+ 00:00:23,000 --> 00:00:24,000
19
+ Moving to the Facebook.
20
+
21
+ 6
22
+ 00:00:24,000 --> 00:00:29,000
23
+ I want to work on this data, but I'll just right click and find out the estimate of that.
24
+
25
+ 7
26
+ 00:00:29,000 --> 00:00:38,000
27
+ So here, if I check, we have a name, we ID, we have title, we have we many attribute and the peg
28
+
29
+ 8
30
+ 00:00:38,000 --> 00:00:39,000
31
+ is select.
32
+
33
+ 9
34
+ 00:00:40,000 --> 00:00:45,000
35
+ So let me write an export and whenever we are writing X, but always double forward slash.
36
+
37
+ 10
38
+ 00:00:45,000 --> 00:00:47,000
39
+ So Tag is select.
40
+
41
+ 11
42
+ 00:00:47,000 --> 00:00:51,000
43
+ So I mention I mentioned Lake Select and I'm going to use multiple attributes.
44
+
45
+ 12
46
+ 00:00:52,000 --> 00:00:59,000
47
+ So if in any case you find you are finding any attribute which is common between the multiple elements
48
+
49
+ 13
50
+ 00:00:59,000 --> 00:01:05,000
51
+ so we can use multiple attributes like if we are not able to locate any element at the single attribute,
52
+
53
+ 14
54
+ 00:01:05,000 --> 00:01:08,000
55
+ then try to go for the combination of multiple attributes.
56
+
57
+ 15
58
+ 00:01:08,000 --> 00:01:12,000
59
+ So I'm saying, OK, here and what I want to use name.
60
+
61
+ 16
62
+ 00:01:12,000 --> 00:01:16,000
63
+ So I'm saying first attribute is name and the values this.
64
+
65
+ 17
66
+ 00:01:17,000 --> 00:01:21,000
67
+ And then I'm writing the second attribute, which is title.
68
+
69
+ 18
70
+ 00:01:22,000 --> 00:01:23,000
71
+ A title is equal to the.
72
+
73
+ 19
74
+ 00:01:24,000 --> 00:01:29,000
75
+ So I'm saying the title is equal to values in that single course.
76
+
77
+ 20
78
+ 00:01:29,000 --> 00:01:33,000
79
+ So all attribute name started to enter it.
80
+
81
+ 21
82
+ 00:01:35,000 --> 00:01:36,000
83
+ Not X by this, really.
84
+
85
+ 22
86
+ 00:01:36,000 --> 00:01:39,000
87
+ I just copy this moving to browser.
88
+
89
+ 23
90
+ 00:01:40,000 --> 00:01:48,000
91
+ See this exploit checker removing the previous expert and now a future element is highlighted.
92
+
93
+ 24
94
+ 00:01:50,000 --> 00:01:52,000
95
+ So means yes, we are using correct element locator.
96
+
97
+ 25
98
+ 00:01:52,000 --> 00:01:53,000
99
+ But this time we are using.
100
+
101
+ 26
102
+ 00:01:53,000 --> 00:02:00,000
103
+ And so if any of the attribute value goes wrong, it will not highlight.
104
+
105
+ 27
106
+ 00:02:00,000 --> 00:02:03,000
107
+ That element means it is not going to locate that element.
108
+
109
+ 28
110
+ 00:02:04,000 --> 00:02:08,000
111
+ So here we have seen how we can locate by using and.
112
+
113
+ 29
114
+ 00:02:09,000 --> 00:02:13,000
115
+ Logical operator, so we are using multiple attribute with and condition.
116
+
117
+ 30
118
+ 00:02:15,000 --> 00:02:16,000
119
+ That's all we have for the session.
120
+
121
+ 31
122
+ 00:02:17,000 --> 00:02:18,000
123
+ Thanks for watching this video.
124
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/004 Locate Element by Xpath - Syntax 4 Use on place Attributes_en.srt ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:05,000
3
+ Welcome to the wrestling world in this session, we are going to use one more syntax.
4
+
5
+ 2
6
+ 00:00:06,000 --> 00:00:12,000
7
+ And here we are going to use export that we have written previously, but now we'll update it by using
8
+
9
+ 3
10
+ 00:00:12,000 --> 00:00:13,000
11
+ Star.
12
+
13
+ 4
14
+ 00:00:14,000 --> 00:00:19,000
15
+ So we have the two option we can use either star on the place of attribute name or on the place of big
16
+
17
+ 5
18
+ 00:00:19,000 --> 00:00:19,000
19
+ name.
20
+
21
+ 6
22
+ 00:00:19,000 --> 00:00:20,000
23
+ OK, what does it mean?
24
+
25
+ 7
26
+ 00:00:21,000 --> 00:00:23,000
27
+ Let me show you, I'm just moving to the browser.
28
+
29
+ 8
30
+ 00:00:24,000 --> 00:00:28,000
31
+ And previously we have written the textbook here and the spot.
32
+
33
+ 9
34
+ 00:00:28,000 --> 00:00:30,000
35
+ We have two attributes.
36
+
37
+ 10
38
+ 00:00:30,000 --> 00:00:33,000
39
+ One is name and other one this title.
40
+
41
+ 11
42
+ 00:00:34,000 --> 00:00:39,000
43
+ So we have the option on the place of any attribute name we can use star.
44
+
45
+ 12
46
+ 00:00:39,000 --> 00:00:40,000
47
+ What does it mean?
48
+
49
+ 13
50
+ 00:00:41,000 --> 00:00:44,000
51
+ It means I'm searching for any element on the page.
52
+
53
+ 14
54
+ 00:00:44,000 --> 00:00:50,000
55
+ We are beggar's select and any attribute value is this.
56
+
57
+ 15
58
+ 00:00:51,000 --> 00:00:55,000
59
+ And the second attribute is this even you can use star on the place of both attribute name.
60
+
61
+ 16
62
+ 00:00:55,000 --> 00:00:56,000
63
+ What I'm using here.
64
+
65
+ 17
66
+ 00:00:57,000 --> 00:01:01,000
67
+ First big name should be this, and for any attribute, value should be this.
68
+
69
+ 18
70
+ 00:01:01,000 --> 00:01:03,000
71
+ And for second attribute really should be this.
72
+
73
+ 19
74
+ 00:01:04,000 --> 00:01:05,000
75
+ So we are not giving the attribute name.
76
+
77
+ 20
78
+ 00:01:06,000 --> 00:01:11,000
79
+ We are seeing element should be of select type, but attribute name could be anything really should
80
+
81
+ 21
82
+ 00:01:11,000 --> 00:01:11,000
83
+ be this.
84
+
85
+ 22
86
+ 00:01:13,000 --> 00:01:15,000
87
+ So we can use star on the place of attribute name.
88
+
89
+ 23
90
+ 00:01:17,000 --> 00:01:21,000
91
+ Also, in the same way we had the option to use Star on the place of tag name.
92
+
93
+ 24
94
+ 00:01:22,000 --> 00:01:24,000
95
+ So if you want, I'll just move here.
96
+
97
+ 25
98
+ 00:01:26,000 --> 00:01:29,000
99
+ We can use Star on the place of tag name as well.
100
+
101
+ 26
102
+ 00:01:29,000 --> 00:01:32,000
103
+ So what we are seeing search any element on the page.
104
+
105
+ 27
106
+ 00:01:33,000 --> 00:01:38,000
107
+ We're fuzzy attribute value is this attribute name could be anything.
108
+
109
+ 28
110
+ 00:01:38,000 --> 00:01:39,000
111
+ And second values.
112
+
113
+ 29
114
+ 00:01:39,000 --> 00:01:43,000
115
+ This again, let me show you another example here.
116
+
117
+ 30
118
+ 00:01:44,000 --> 00:01:52,000
119
+ I'm coming to element username and I'm writing spot for this where we we're using tag, which is input
120
+
121
+ 31
122
+ 00:01:52,000 --> 00:01:54,000
123
+ and type is equal to email.
124
+
125
+ 32
126
+ 00:01:54,000 --> 00:01:56,000
127
+ Okay, let me write this spot here.
128
+
129
+ 33
130
+ 00:01:56,000 --> 00:02:00,000
131
+ First, I'm seeing input.
132
+
133
+ 34
134
+ 00:02:01,000 --> 00:02:07,000
135
+ We're type is equal to image, so that makes.
136
+
137
+ 35
138
+ 00:02:07,000 --> 00:02:11,000
139
+ But it is locating one element exec, one element.
140
+
141
+ 36
142
+ 00:02:11,000 --> 00:02:15,000
143
+ So as I told you, we can use star on the place of attribute name.
144
+
145
+ 37
146
+ 00:02:16,000 --> 00:02:21,000
147
+ So here if you're using star on the place of attribute name, still it is matching with one element.
148
+
149
+ 38
150
+ 00:02:22,000 --> 00:02:27,000
151
+ No second is we can install it on the place of big name if we use a star on the place of big name.
152
+
153
+ 39
154
+ 00:02:27,000 --> 00:02:34,000
155
+ You will notice start matching with the two elements so we can use it, but we need to be careful that
156
+
157
+ 40
158
+ 00:02:34,000 --> 00:02:40,000
159
+ X spot that we are adding it should be unique because I want to locate element uniquely so that I can
160
+
161
+ 41
162
+ 00:02:40,000 --> 00:02:47,000
163
+ work on it so we can use Star on the place of attribute name or tag name that is allowed here and X.
164
+
165
+ 42
166
+ 00:02:47,000 --> 00:02:55,000
167
+ But so we have seen syntax where we are using star on the place of attribute name and tag name.
168
+
169
+ 43
170
+ 00:02:56,000 --> 00:02:57,000
171
+ That's all we have for the session.
172
+
173
+ 44
174
+ 00:02:58,000 --> 00:02:59,000
175
+ Parents watching the street you.
176
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/005 Locate Element by Xpath - Syntax 5 Use Innertext of Element_en.srt ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:07,000
3
+ Welcome to the testing world in this session, I'll show you next in Texas, where we are going to write
4
+
5
+ 2
6
+ 00:00:07,000 --> 00:00:09,000
7
+ export using inner text.
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:16,000
11
+ Previously, we have seen what do you mean by the inner text, a given element where we are not having
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:20,000
15
+ any attribute or attributes are having dynamic values.
16
+
17
+ 5
18
+ 00:00:21,000 --> 00:00:25,000
19
+ So in that case, you can go and check inner text as well.
20
+
21
+ 6
22
+ 00:00:25,000 --> 00:00:26,000
23
+ Okay, let me show you an example.
24
+
25
+ 7
26
+ 00:00:27,000 --> 00:00:30,000
27
+ I'm just moving here on the browser and I want to look at this.
28
+
29
+ 8
30
+ 00:00:30,000 --> 00:00:33,000
31
+ Create a new account for that.
32
+
33
+ 9
34
+ 00:00:33,000 --> 00:00:34,000
35
+ I just right click Inspect.
36
+
37
+ 10
38
+ 00:00:36,000 --> 00:00:38,000
39
+ So if you check it, that is it.
40
+
41
+ 11
42
+ 00:00:38,000 --> 00:00:44,000
43
+ There's a div means the tag is div, but if you check it, we have only one attribute, which is glass,
44
+
45
+ 12
46
+ 00:00:45,000 --> 00:00:48,000
47
+ which could be common between the multiple element that is one.
48
+
49
+ 13
50
+ 00:00:48,000 --> 00:00:52,000
51
+ Also, if you check, the value of the glass seems to be dynamic.
52
+
53
+ 14
54
+ 00:00:53,000 --> 00:01:00,000
55
+ So I'm not going to use this attribute, you know, in this case, if you notice we have inner text
56
+
57
+ 15
58
+ 00:01:00,000 --> 00:01:07,000
59
+ so we can locate an element by using it in our text, and I just copied outright swap using inner text.
60
+
61
+ 16
62
+ 00:01:07,000 --> 00:01:13,000
63
+ And this time I'm going to use exact text means we are going to use complete text complete in our text.
64
+
65
+ 17
66
+ 00:01:13,000 --> 00:01:16,000
67
+ I just copy this double forward slash.
68
+
69
+ 18
70
+ 00:01:16,000 --> 00:01:25,000
71
+ And if you notice the tag is div, some writing do here square record text is equal to value.
72
+
73
+ 19
74
+ 00:01:26,000 --> 00:01:34,000
75
+ Now the point is before the sticks do I need to use a straight answer is no way because after it is
76
+
77
+ 20
78
+ 00:01:34,000 --> 00:01:39,000
79
+ used, when we are writing attributes and that is not a attribute.
80
+
81
+ 21
82
+ 00:01:39,000 --> 00:01:44,000
83
+ So whenever you are using in our text, use brackets in front of text.
84
+
85
+ 22
86
+ 00:01:45,000 --> 00:01:52,000
87
+ So note that that export, which is is really that the next export is ready, which is using inert text.
88
+
89
+ 23
90
+ 00:01:53,000 --> 00:02:02,000
91
+ Let me copy this and just moving to browser thesis and export checker, and if you notice that is highlighted,
92
+
93
+ 24
94
+ 00:02:02,000 --> 00:02:06,000
95
+ means yes, we are using the correct element locator.
96
+
97
+ 25
98
+ 00:02:07,000 --> 00:02:12,000
99
+ So now by this way, we can look at any element if I take an example there to clear the page.
100
+
101
+ 26
102
+ 00:02:12,000 --> 00:02:12,000
103
+ OK.
104
+
105
+ 27
106
+ 00:02:12,000 --> 00:02:14,000
107
+ If I take it here.
108
+
109
+ 28
110
+ 00:02:16,000 --> 00:02:19,000
111
+ That's a link where we have actually left.
112
+
113
+ 29
114
+ 00:02:19,000 --> 00:02:25,000
115
+ And again, this really could be dynamic, I want to use in a text, so I'm just writing like a which
116
+
117
+ 30
118
+ 00:02:25,000 --> 00:02:31,000
119
+ is the tag here and my inner text is text, and that's a value.
120
+
121
+ 31
122
+ 00:02:33,000 --> 00:02:37,000
123
+ I just copied this more into the browser.
124
+
125
+ 32
126
+ 00:02:38,000 --> 00:02:42,000
127
+ See it, says expert chicken removing the previous spot and this.
128
+
129
+ 33
130
+ 00:02:43,000 --> 00:02:49,000
131
+ So if you notice that is highlighted so we can use in our text of the element to look at element uniquely.
132
+
133
+ 34
134
+ 00:02:49,000 --> 00:02:54,000
135
+ As of now, we're using complete text means exact text in NICKSON text.
136
+
137
+ 35
138
+ 00:02:54,000 --> 00:03:00,000
139
+ I'll show you how we can use partial text, so that's all we have for the session here we have seen
140
+
141
+ 36
142
+ 00:03:01,000 --> 00:03:02,000
143
+ send text by using inner text.
144
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/006 Locate Element by Xpath - Syntax 6 Use Partial Innertext of Element_en.srt ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:08,000
7
+ So previously, we have seen how we can locate an element by using inner text, but previously we're
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:13,000
11
+ using complete inner text knowledge or you how we can use partial inner text.
12
+
13
+ 4
14
+ 00:00:13,000 --> 00:00:15,000
15
+ Okay, let me move to the browser.
16
+
17
+ 5
18
+ 00:00:15,000 --> 00:00:18,000
19
+ And previously we have located this create a new account.
20
+
21
+ 6
22
+ 00:00:19,000 --> 00:00:21,000
23
+ Okay, let me go to the table.
24
+
25
+ 7
26
+ 00:00:22,000 --> 00:00:24,000
27
+ That's a div where text is this.
28
+
29
+ 8
30
+ 00:00:25,000 --> 00:00:36,000
31
+ So previously our export was div, where text and is equal to value, and we are using brackets in front
32
+
33
+ 9
34
+ 00:00:36,000 --> 00:00:37,000
35
+ of the text we are not using.
36
+
37
+ 10
38
+ 00:00:37,000 --> 00:00:40,000
39
+ Edit it, you know, it might be possible.
40
+
41
+ 11
42
+ 00:00:41,000 --> 00:00:45,000
43
+ As of now, we have the text create a new account and it's a dynamic text.
44
+
45
+ 12
46
+ 00:00:45,000 --> 00:00:49,000
47
+ Tomorrow, when we open the application, we are getting open in new account.
48
+
49
+ 13
50
+ 00:00:50,000 --> 00:00:52,000
51
+ Next day we open the application.
52
+
53
+ 14
54
+ 00:00:52,000 --> 00:00:53,000
55
+ We are getting started.
56
+
57
+ 15
58
+ 00:00:53,000 --> 00:00:57,000
59
+ New account means some part of the text is dynamic.
60
+
61
+ 16
62
+ 00:00:58,000 --> 00:01:04,000
63
+ So in that kind of scenario, when you have dynamic text and you want to locate that particular element
64
+
65
+ 17
66
+ 00:01:04,000 --> 00:01:09,000
67
+ by using only partial text so you can keep here only the text, which is static.
68
+
69
+ 18
70
+ 00:01:09,000 --> 00:01:14,000
71
+ So I'm thinking example we have new account, which is this text is static.
72
+
73
+ 19
74
+ 00:01:15,000 --> 00:01:18,000
75
+ In that case, can we match equal to entries?
76
+
77
+ 20
78
+ 00:01:18,000 --> 00:01:21,000
79
+ No, because we are not checking exact text.
80
+
81
+ 21
82
+ 00:01:21,000 --> 00:01:25,000
83
+ We are checking partial text on the place of equal to use comma.
84
+
85
+ 22
86
+ 00:01:27,000 --> 00:01:34,000
87
+ No, this text and its value put into the brackets and before that use contains.
88
+
89
+ 23
90
+ 00:01:35,000 --> 00:01:38,000
91
+ Something this tech should convince this.
92
+
93
+ 24
94
+ 00:01:39,000 --> 00:01:42,000
95
+ OK, let's understand this and text one more time.
96
+
97
+ 25
98
+ 00:01:43,000 --> 00:01:49,000
99
+ So our initial text was this I'm just keeping the text, which is static, always static here.
100
+
101
+ 26
102
+ 00:01:50,000 --> 00:01:52,000
103
+ We cannot use equal to I'm just using comma.
104
+
105
+ 27
106
+ 00:01:53,000 --> 00:01:56,000
107
+ This text and its value is in the brackets.
108
+
109
+ 28
110
+ 00:01:57,000 --> 00:02:00,000
111
+ And now before that, we are using contents.
112
+
113
+ 29
114
+ 00:02:03,000 --> 00:02:04,000
115
+ Now, just copied this.
116
+
117
+ 30
118
+ 00:02:04,000 --> 00:02:06,000
119
+ Let me show you on the browser.
120
+
121
+ 31
122
+ 00:02:06,000 --> 00:02:08,000
123
+ So moving to the thesis, an expert checker.
124
+
125
+ 32
126
+ 00:02:11,000 --> 00:02:14,000
127
+ This, if you get that element is highlighted.
128
+
129
+ 33
130
+ 00:02:14,000 --> 00:02:19,000
131
+ Means, yes, we are able to look at that element by using only partial text.
132
+
133
+ 34
134
+ 00:02:21,000 --> 00:02:26,000
135
+ So that's going to be used very frequently, because in many cases, you would find out the text we
136
+
137
+ 35
138
+ 00:02:26,000 --> 00:02:29,000
139
+ are using or in our text we are using, that is dynamic.
140
+
141
+ 36
142
+ 00:02:30,000 --> 00:02:33,000
143
+ But if it is, if it is partially dynamic, then we can use this approach.
144
+
145
+ 37
146
+ 00:02:33,000 --> 00:02:37,000
147
+ If it is complete dynamic, we are going to use next approaches.
148
+
149
+ 38
150
+ 00:02:37,000 --> 00:02:43,000
151
+ But as of now, we have seen if you have a text which is partially dynamic, we can use this approach.
152
+
153
+ 39
154
+ 00:02:44,000 --> 00:02:47,000
155
+ There's all we have for the session tanks watching this video.
156
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/007 Locate Element by Xpath - Syntax 7 Use Partial Attribute of Element_en.srt ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:08,000
7
+ And this session, I'll show you how we can use partial value of that tribute.
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:12,000
11
+ So previously we have seen how we can write export using attributes.
12
+
13
+ 4
14
+ 00:00:13,000 --> 00:00:17,000
15
+ Let me move to the browser and I'm saying I want to locate this password box.
16
+
17
+ 5
18
+ 00:00:18,000 --> 00:00:21,000
19
+ OK, I just got that demo of it.
20
+
21
+ 6
22
+ 00:00:22,000 --> 00:00:25,000
23
+ And here export is input.
24
+
25
+ 7
26
+ 00:00:25,000 --> 00:00:30,000
27
+ My take is input and I'm going to use type, but just password.
28
+
29
+ 8
30
+ 00:00:30,000 --> 00:00:38,000
31
+ So I'm saying, OK, my type is password, so I'm writing type is equal to password, so that is going
32
+
33
+ 9
34
+ 00:00:38,000 --> 00:00:40,000
35
+ to work as of now.
36
+
37
+ 10
38
+ 00:00:40,000 --> 00:00:44,000
39
+ I'll just copy this and let's check here, and it should highlight that element.
40
+
41
+ 11
42
+ 00:00:44,000 --> 00:00:44,000
43
+ OK?
44
+
45
+ 12
46
+ 00:00:44,000 --> 00:00:46,000
47
+ It is highlighting you two elements.
48
+
49
+ 13
50
+ 00:00:47,000 --> 00:00:48,000
51
+ Because as of note, matching with the two.
52
+
53
+ 14
54
+ 00:00:49,000 --> 00:00:56,000
55
+ But OK, now I see this type is going to be changed very frequently.
56
+
57
+ 15
58
+ 00:00:56,000 --> 00:00:59,000
59
+ This password is not a static text.
60
+
61
+ 16
62
+ 00:00:59,000 --> 00:01:05,000
63
+ As of now in this, let me show you in that html, as of note, type Typekit set password.
64
+
65
+ 17
66
+ 00:01:06,000 --> 00:01:11,000
67
+ But I take an example like this not a static dynamic today is mentioned password.
68
+
69
+ 18
70
+ 00:01:12,000 --> 00:01:14,000
71
+ Tomorrow, if we check it, it is mentioned only pass.
72
+
73
+ 19
74
+ 00:01:15,000 --> 00:01:17,000
75
+ And today it's a parsed W-2.
76
+
77
+ 20
78
+ 00:01:17,000 --> 00:01:20,000
79
+ I'm taking example where it is not static.
80
+
81
+ 21
82
+ 00:01:20,000 --> 00:01:22,000
83
+ It's going to be dynamic.
84
+
85
+ 22
86
+ 00:01:22,000 --> 00:01:26,000
87
+ So in that kind of cases, we can give only partial value.
88
+
89
+ 23
90
+ 00:01:26,000 --> 00:01:28,000
91
+ So I'm just giving the partially like bus.
92
+
93
+ 24
94
+ 00:01:29,000 --> 00:01:31,000
95
+ Can you use a call to answer?
96
+
97
+ 25
98
+ 00:01:31,000 --> 00:01:36,000
99
+ Is no, because we are not comparing exact value so we can use comma again, as we have seen in the
100
+
101
+ 26
102
+ 00:01:36,000 --> 00:01:37,000
103
+ previous approach.
104
+
105
+ 27
106
+ 00:01:38,000 --> 00:01:42,000
107
+ We are putting brackets here and in front of the bracket it contains.
108
+
109
+ 28
110
+ 00:01:43,000 --> 00:01:45,000
111
+ It's a contains we have to use contains.
112
+
113
+ 29
114
+ 00:01:45,000 --> 00:01:53,000
115
+ And I'm just copying this, moving over there so we can use partial insert text.
116
+
117
+ 30
118
+ 00:01:53,000 --> 00:01:56,000
119
+ I'm just putting it here.
120
+
121
+ 31
122
+ 00:01:56,000 --> 00:01:58,000
123
+ And still it is matching means.
124
+
125
+ 32
126
+ 00:01:58,000 --> 00:01:59,000
127
+ Yes, it's working.
128
+
129
+ 33
130
+ 00:02:00,000 --> 00:02:04,000
131
+ So in previous version, we have seen we can use contents with the inner text.
132
+
133
+ 34
134
+ 00:02:05,000 --> 00:02:11,000
135
+ In this session, I shown you here, we can use content with the attribute value as well.
136
+
137
+ 35
138
+ 00:02:11,000 --> 00:02:18,000
139
+ So if you're using content with the attribute value, so there's all we have for this syntax tanks watching
140
+
141
+ 36
142
+ 00:02:18,000 --> 00:02:19,000
143
+ this video.
144
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/008 Locate Element by Xpath - Syntax 8 Navigate through Parent (Axis)_en.srt ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:01,000 --> 00:00:06,000
3
+ Welcome to the testing world till previous session, we have seen many techniques index, but where
4
+
5
+ 2
6
+ 00:00:06,000 --> 00:00:10,000
7
+ we are using attributes also, we have used in our tests.
8
+
9
+ 3
10
+ 00:00:11,000 --> 00:00:16,000
11
+ But now I'm going to take an example like we have applied all the techniques, but we are not able to
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:19,000
15
+ locate any element in that case.
16
+
17
+ 5
18
+ 00:00:20,000 --> 00:00:20,000
19
+ How will we work?
20
+
21
+ 6
22
+ 00:00:21,000 --> 00:00:26,000
23
+ You and we have used in our test, we have used attribute, but still I'm not able to look at it.
24
+
25
+ 7
26
+ 00:00:26,000 --> 00:00:33,000
27
+ Then we have some techniques and these are the advanced techniques, and we also call it access techniques.
28
+
29
+ 8
30
+ 00:00:35,000 --> 00:00:39,000
31
+ So here we are going to locate element to the reference of any other element.
32
+
33
+ 9
34
+ 00:00:40,000 --> 00:00:44,000
35
+ So first of all, I'll show you example in which we are going to locate Element through its.
36
+
37
+ 10
38
+ 00:00:46,000 --> 00:00:47,000
39
+ Okay, I take an example.
40
+
41
+ 11
42
+ 00:00:47,000 --> 00:00:52,000
43
+ I'm just moving here on the HTML and I want to work on this username box.
44
+
45
+ 12
46
+ 00:00:52,000 --> 00:00:54,000
47
+ I'm just refreshing this page.
48
+
49
+ 13
50
+ 00:00:55,000 --> 00:00:57,000
51
+ OK, I want to work on this username box.
52
+
53
+ 14
54
+ 00:00:57,000 --> 00:01:02,000
55
+ I right click and inspect element here.
56
+
57
+ 15
58
+ 00:01:02,000 --> 00:01:03,000
59
+ I'm taking example.
60
+
61
+ 16
62
+ 00:01:03,000 --> 00:01:04,000
63
+ I'm not able to look at this element.
64
+
65
+ 17
66
+ 00:01:05,000 --> 00:01:10,000
67
+ We have applied all the techniques, then how to work on it in that kind of cases when we are not able
68
+
69
+ 18
70
+ 00:01:10,000 --> 00:01:11,000
71
+ to look at element.
72
+
73
+ 19
74
+ 00:01:12,000 --> 00:01:15,000
75
+ Just leave it to its parent.
76
+
77
+ 20
78
+ 00:01:15,000 --> 00:01:19,000
79
+ So if you check it here, the parent of this input is Diddy.
80
+
81
+ 21
82
+ 00:01:20,000 --> 00:01:25,000
83
+ But if you notice this, Diddy is not having any attribute, so it's difficult to locate it.
84
+
85
+ 22
86
+ 00:01:26,000 --> 00:01:28,000
87
+ Okay, let's check again the parent of it.
88
+
89
+ 23
90
+ 00:01:28,000 --> 00:01:31,000
91
+ So again, the parent SDR next parent is dear.
92
+
93
+ 24
94
+ 00:01:32,000 --> 00:01:34,000
95
+ Again, we are not having any tribute.
96
+
97
+ 25
98
+ 00:01:34,000 --> 00:01:36,000
99
+ So just leave it moved to the parent again.
100
+
101
+ 26
102
+ 00:01:37,000 --> 00:01:39,000
103
+ So next parent is thebody again.
104
+
105
+ 27
106
+ 00:01:39,000 --> 00:01:40,000
107
+ We're not having any tribute.
108
+
109
+ 28
110
+ 00:01:41,000 --> 00:01:41,000
111
+ Leave it.
112
+
113
+ 29
114
+ 00:01:42,000 --> 00:01:43,000
115
+ Move to the parent of that.
116
+
117
+ 30
118
+ 00:01:44,000 --> 00:01:48,000
119
+ So here we have a parent with the name table that having some attributes.
120
+
121
+ 31
122
+ 00:01:48,000 --> 00:01:51,000
123
+ OK, so let's try to look at this first.
124
+
125
+ 32
126
+ 00:01:51,000 --> 00:01:54,000
127
+ So first of all, I'm locating any parent here.
128
+
129
+ 33
130
+ 00:01:54,000 --> 00:02:02,000
131
+ So I'm saying table where rule is equal to and the value is presentation.
132
+
133
+ 34
134
+ 00:02:02,000 --> 00:02:05,000
135
+ I just copy so that there's no chance of error.
136
+
137
+ 35
138
+ 00:02:06,000 --> 00:02:09,000
139
+ As of now, we're locating expedient.
140
+
141
+ 36
142
+ 00:02:09,000 --> 00:02:09,000
143
+ Okay, let's see.
144
+
145
+ 37
146
+ 00:02:09,000 --> 00:02:10,000
147
+ It's working or not.
148
+
149
+ 38
150
+ 00:02:11,000 --> 00:02:13,000
151
+ I'm just going to.
152
+
153
+ 39
154
+ 00:02:15,000 --> 00:02:17,000
155
+ Here and yes.
156
+
157
+ 40
158
+ 00:02:17,000 --> 00:02:21,000
159
+ So if you check complete, the table is highlight, it means yes, it is working as of now.
160
+
161
+ 41
162
+ 00:02:22,000 --> 00:02:23,000
163
+ OK, you now what next?
164
+
165
+ 42
166
+ 00:02:24,000 --> 00:02:26,000
167
+ So let me go to that email again.
168
+
169
+ 43
170
+ 00:02:27,000 --> 00:02:28,000
171
+ I'm able to look at the patent.
172
+
173
+ 44
174
+ 00:02:28,000 --> 00:02:32,000
175
+ That's OK now from this patent, from this table.
176
+
177
+ 45
178
+ 00:02:32,000 --> 00:02:37,000
179
+ I want to move to the body, so that's a child of it.
180
+
181
+ 46
182
+ 00:02:37,000 --> 00:02:40,000
183
+ So I'm saying, OK, first look at this didn't go to its child.
184
+
185
+ 47
186
+ 00:02:41,000 --> 00:02:43,000
187
+ So single forward slash means child of it.
188
+
189
+ 48
190
+ 00:02:44,000 --> 00:02:50,000
191
+ So I'm just for me, it's a sick child, which is DeBerry, and the single forward slash means exec
192
+
193
+ 49
194
+ 00:02:50,000 --> 00:02:50,000
195
+ child.
196
+
197
+ 50
198
+ 00:02:51,000 --> 00:02:52,000
199
+ Then inside the body.
200
+
201
+ 51
202
+ 00:02:52,000 --> 00:02:57,000
203
+ If you check it, we have PR, but we need to go to the second tier.
204
+
205
+ 52
206
+ 00:02:58,000 --> 00:03:00,000
207
+ So the urban diet too.
208
+
209
+ 53
210
+ 00:03:00,000 --> 00:03:04,000
211
+ So I'm saying, OK, baby, ah.
212
+
213
+ 54
214
+ 00:03:04,000 --> 00:03:06,000
215
+ And on the second tier.
216
+
217
+ 55
218
+ 00:03:06,000 --> 00:03:09,000
219
+ So first of all, from the table, I'm going to the body.
220
+
221
+ 56
222
+ 00:03:09,000 --> 00:03:12,000
223
+ Then from the DeBerry, I'm going to the second tier.
224
+
225
+ 57
226
+ 00:03:13,000 --> 00:03:18,000
227
+ Then in this year, we have one Diddy due to be treated multiple Diddy.
228
+
229
+ 58
230
+ 00:03:18,000 --> 00:03:20,000
231
+ I want to go to the first Diddy.
232
+
233
+ 59
234
+ 00:03:21,000 --> 00:03:24,000
235
+ So I'm saying, OK, then go to the Diddy first.
236
+
237
+ 60
238
+ 00:03:25,000 --> 00:03:28,000
239
+ And in the first Diddy, we have the element input.
240
+
241
+ 61
242
+ 00:03:29,000 --> 00:03:30,000
243
+ So it just input.
244
+
245
+ 62
246
+ 00:03:31,000 --> 00:03:36,000
247
+ So here we are, trying to look at the text box by using its spirit.
248
+
249
+ 63
250
+ 00:03:36,000 --> 00:03:38,000
251
+ OK, let me try.
252
+
253
+ 64
254
+ 00:03:38,000 --> 00:03:39,000
255
+ Is it working or not?
256
+
257
+ 65
258
+ 00:03:40,000 --> 00:03:47,000
259
+ So if we check here that element is highlighted means we are locating an element through its parent.
260
+
261
+ 66
262
+ 00:03:48,000 --> 00:03:52,000
263
+ And that is very important because in many cases, you will find out you are not able to locate that
264
+
265
+ 67
266
+ 00:03:52,000 --> 00:03:53,000
267
+ element directly.
268
+
269
+ 68
270
+ 00:03:53,000 --> 00:03:56,000
271
+ So here we are, indirectly locating that element through its parent.
272
+
273
+ 69
274
+ 00:03:57,000 --> 00:03:59,000
275
+ And this approach we should be aware about.
276
+
277
+ 70
278
+ 00:03:59,000 --> 00:04:06,000
279
+ We should we should carefully watch that stimulate this case because here we have look at the table.
280
+
281
+ 71
282
+ 00:04:06,000 --> 00:04:08,000
283
+ I want to go to the child of it.
284
+
285
+ 72
286
+ 00:04:08,000 --> 00:04:12,000
287
+ But in the child of the table, we'll be body.
288
+
289
+ 73
290
+ 00:04:12,000 --> 00:04:14,000
291
+ We already know body.
292
+
293
+ 74
294
+ 00:04:14,000 --> 00:04:18,000
295
+ If I mention the body, it is going to the child of it.
296
+
297
+ 75
298
+ 00:04:18,000 --> 00:04:24,000
299
+ But if you check it here, the body, we have multiple tiers and I want to go to the second one.
300
+
301
+ 76
302
+ 00:04:24,000 --> 00:04:26,000
303
+ So we mention the other two.
304
+
305
+ 77
306
+ 00:04:27,000 --> 00:04:29,000
307
+ And then we have in the data we have.
308
+
309
+ 78
310
+ 00:04:30,000 --> 00:04:32,000
311
+ But we have multiple did.
312
+
313
+ 79
314
+ 00:04:32,000 --> 00:04:35,000
315
+ So I mentioned Didi one and then input.
316
+
317
+ 80
318
+ 00:04:36,000 --> 00:04:39,000
319
+ So we have located an element through its spirit.
320
+
321
+ 81
322
+ 00:04:40,000 --> 00:04:46,000
323
+ And this hierarchy could be bigger or smaller than this because as of now, if we check it, input parent
324
+
325
+ 82
326
+ 00:04:46,000 --> 00:04:49,000
327
+ is Didi, which is not having any attribute.
328
+
329
+ 83
330
+ 00:04:49,000 --> 00:04:54,000
331
+ But if it has any attribute, OK, let me take an example of my application here.
332
+
333
+ 84
334
+ 00:04:55,000 --> 00:04:58,000
335
+ I'll just go to this log in depth.
336
+
337
+ 85
338
+ 00:04:59,000 --> 00:05:03,000
339
+ I want to look at this, but I'm taking Zumba like I'm not able to look at it directly.
340
+
341
+ 86
342
+ 00:05:03,000 --> 00:05:08,000
343
+ So if I check label parent is L.A., it is not having an attribute.
344
+
345
+ 87
346
+ 00:05:08,000 --> 00:05:12,000
347
+ OK, being under the L.A., is you L.A. having a class?
348
+
349
+ 88
350
+ 00:05:12,000 --> 00:05:24,000
351
+ So what I do, I just pop it as you well, and I'm just copying this, OK, I'm writing like u l and.
352
+
353
+ 89
354
+ 00:05:26,000 --> 00:05:28,000
355
+ My glass is this.
356
+
357
+ 90
358
+ 00:05:29,000 --> 00:05:32,000
359
+ Well, first of all, let me show you we are able to look at this or not.
360
+
361
+ 91
362
+ 00:05:33,000 --> 00:05:35,000
363
+ I'll disclose it.
364
+
365
+ 92
366
+ 00:05:36,000 --> 00:05:38,000
367
+ Here we are checking.
368
+
369
+ 93
370
+ 00:05:39,000 --> 00:05:49,000
371
+ So we are able to look at it, that's OK now if we take it here from this, you'll I want to go to the
372
+
373
+ 94
374
+ 00:05:49,000 --> 00:05:50,000
375
+ second L.A.
376
+
377
+ 95
378
+ 00:05:50,000 --> 00:05:57,000
379
+ So that is a do and there we have label.
380
+
381
+ 96
382
+ 00:05:58,000 --> 00:06:03,000
383
+ So we are not going to the label to because inside this L.A. we have to eliminate.
384
+
385
+ 97
386
+ 00:06:03,000 --> 00:06:04,000
387
+ One is input, one is label.
388
+
389
+ 98
390
+ 00:06:05,000 --> 00:06:07,000
391
+ So if I mentioned input, it will always go to this one.
392
+
393
+ 99
394
+ 00:06:07,000 --> 00:06:10,000
395
+ If I mentioned label, it will always go to this one.
396
+
397
+ 100
398
+ 00:06:10,000 --> 00:06:13,000
399
+ So I just mentioned label this copied.
400
+
401
+ 101
402
+ 00:06:14,000 --> 00:06:17,000
403
+ And let me highlight that.
404
+
405
+ 102
406
+ 00:06:20,000 --> 00:06:21,000
407
+ So that is highlighted.
408
+
409
+ 103
410
+ 00:06:22,000 --> 00:06:24,000
411
+ So, yes, we are able to look at that element through its.
412
+
413
+ 104
414
+ 00:06:25,000 --> 00:06:29,000
415
+ And that is going to be used when we have complex D.M..
416
+
417
+ 105
418
+ 00:06:29,000 --> 00:06:31,000
419
+ So it's going to be used very frequently with you.
420
+
421
+ 106
422
+ 00:06:33,000 --> 00:06:36,000
423
+ So in this session, we have seen how we can look at element to its parent.
424
+
425
+ 107
426
+ 00:06:37,000 --> 00:06:40,000
427
+ There's all we have for the session tanks watching this video.
428
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/009 Locate Element by Xpath - Syntax 9 Navigate through Child(Axis)_en.srt ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:07,000
7
+ And this session, I'll show you how we can locate Element through its child.
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:12,000
11
+ In previous session, we've already seen how we can locate Element to its parent.
12
+
13
+ 4
14
+ 00:00:12,000 --> 00:00:14,000
15
+ But actually the reverse of that?
16
+
17
+ 5
18
+ 00:00:15,000 --> 00:00:21,000
19
+ Let me move to the browser first, and that's we're on the Facebook, and I'm just dicking some people.
20
+
21
+ 6
22
+ 00:00:21,000 --> 00:00:23,000
23
+ First of all, this refresh.
24
+
25
+ 7
26
+ 00:00:24,000 --> 00:00:30,000
27
+ OK, I'm taking example like I'll just check this username textbooks.
28
+
29
+ 8
30
+ 00:00:30,000 --> 00:00:37,000
31
+ I'm able to locate this username textbooks, but actually I want to work on this table and I'm not able
32
+
33
+ 9
34
+ 00:00:37,000 --> 00:00:39,000
35
+ to locate this table directly.
36
+
37
+ 10
38
+ 00:00:41,000 --> 00:00:44,000
39
+ So knowledge who you how we can locate any element through its child.
40
+
41
+ 11
42
+ 00:00:44,000 --> 00:00:47,000
43
+ So first of all, I'll show you how we can look at this.
44
+
45
+ 12
46
+ 00:00:47,000 --> 00:00:55,000
47
+ So I'm just writing like input, where my type is equal to emails, OK, I'm going to use attribute
48
+
49
+ 13
50
+ 00:00:56,000 --> 00:01:00,000
51
+ type and the value is email, so I'm able to look at this element.
52
+
53
+ 14
54
+ 00:01:01,000 --> 00:01:04,000
55
+ I'm taking example when we're able to look at any element.
56
+
57
+ 15
58
+ 00:01:05,000 --> 00:01:06,000
59
+ Yes, we are able to look at it.
60
+
61
+ 16
62
+ 00:01:07,000 --> 00:01:08,000
63
+ I don't want to work on this.
64
+
65
+ 17
66
+ 00:01:08,000 --> 00:01:14,000
67
+ I want to work on its parent, which is a table to how we can move from child to the parent.
68
+
69
+ 18
70
+ 00:01:15,000 --> 00:01:19,000
71
+ So if it check it here, the parent of this input is Diddy.
72
+
73
+ 19
74
+ 00:01:20,000 --> 00:01:27,000
75
+ So we have to mention for words this parent, Colin Colin Beatty, means move to the reverse direction,
76
+
77
+ 20
78
+ 00:01:27,000 --> 00:01:29,000
79
+ not in the child friction.
80
+
81
+ 21
82
+ 00:01:29,000 --> 00:01:34,000
83
+ Now, move the parent to times Colin and then be his biggest diddy.
84
+
85
+ 22
86
+ 00:01:35,000 --> 00:01:41,000
87
+ Then again, I need to move to the theater, but do I need to mention second year answer is no for this
88
+
89
+ 23
90
+ 00:01:41,000 --> 00:01:41,000
91
+ kid.
92
+
93
+ 24
94
+ 00:01:41,000 --> 00:01:44,000
95
+ It has only one parent with just d.r.
96
+
97
+ 25
98
+ 00:01:44,000 --> 00:01:50,000
99
+ So we just need to mention parent Colin Colin Dyer in the same way.
100
+
101
+ 26
102
+ 00:01:50,000 --> 00:01:54,000
103
+ Now we are the theater parent of this year is DeBerry.
104
+
105
+ 27
106
+ 00:01:54,000 --> 00:02:06,000
107
+ So again, parent Colin Colin Thebody and now at the last, I want to go to the table.
108
+
109
+ 28
110
+ 00:02:07,000 --> 00:02:09,000
111
+ So we just parent of this Diwali.
112
+
113
+ 29
114
+ 00:02:09,000 --> 00:02:13,000
115
+ So I mentioned parent Colin Colin table.
116
+
117
+ 30
118
+ 00:02:14,000 --> 00:02:20,000
119
+ So that's a simple spot we are writing in which we are just moving in the right direction.
120
+
121
+ 31
122
+ 00:02:20,000 --> 00:02:22,000
123
+ Now we are moving from a child to parent.
124
+
125
+ 32
126
+ 00:02:23,000 --> 00:02:28,000
127
+ I'll just copy this moving to see an expert checker.
128
+
129
+ 33
130
+ 00:02:29,000 --> 00:02:32,000
131
+ Just write it over here, so if you notice that is highlighted.
132
+
133
+ 34
134
+ 00:02:34,000 --> 00:02:38,000
135
+ So we need to be careful because we need to check exact.
136
+
137
+ 35
138
+ 00:02:38,000 --> 00:02:45,000
139
+ If we take it here, we cannot navigate directly from input to the table.
140
+
141
+ 36
142
+ 00:02:45,000 --> 00:02:47,000
143
+ We have to follow this hierarchy.
144
+
145
+ 37
146
+ 00:02:47,000 --> 00:02:53,000
147
+ The parent of the input is then the parent of this data is Diane, then Peabody and the table.
148
+
149
+ 38
150
+ 00:02:53,000 --> 00:02:55,000
151
+ So we are following this complete hierarchy.
152
+
153
+ 39
154
+ 00:02:57,000 --> 00:03:02,000
155
+ So here in the session, we have seen how we can look it element through truth child.
156
+
157
+ 40
158
+ 00:03:02,000 --> 00:03:04,000
159
+ And that is again advanced technique.
160
+
161
+ 41
162
+ 00:03:05,000 --> 00:03:06,000
163
+ We are going to use it in the complex.
164
+
165
+ 42
166
+ 00:03:08,000 --> 00:03:09,000
167
+ That's all we have for the session.
168
+
169
+ 43
170
+ 00:03:10,000 --> 00:03:11,000
171
+ Thanks for watching this video.
172
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/010 Locate Element by Xpath - Syntax 10 Navigate towards Sibling(Next & Previous)_en.srt ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:07,000
7
+ So in previous two sessions, we have seen how we can look at an element through spirit.
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:11,000
11
+ And secondly, you see how we can look at the element towards child.
12
+
13
+ 4
14
+ 00:00:12,000 --> 00:00:14,000
15
+ Now I'll talk about siblings.
16
+
17
+ 5
18
+ 00:00:14,000 --> 00:00:18,000
19
+ So first of all, we need to understand what you mean by the siblings.
20
+
21
+ 6
22
+ 00:00:18,000 --> 00:00:25,000
23
+ OK, now I'm moving to the table and here let me show you a general of this slogan.
24
+
25
+ 7
26
+ 00:00:26,000 --> 00:00:32,000
27
+ So if we check it, these two elements like input and the labels are on the same level.
28
+
29
+ 8
30
+ 00:00:32,000 --> 00:00:36,000
31
+ So element, which are on the same level that is called sibling.
32
+
33
+ 9
34
+ 00:00:37,000 --> 00:00:42,000
35
+ So here I'll show you how we can look at element to its sibling.
36
+
37
+ 10
38
+ 00:00:42,000 --> 00:00:43,000
39
+ Some big example.
40
+
41
+ 11
42
+ 00:00:43,000 --> 00:00:48,000
43
+ I'm able to look at this input like this, but I want to work on this label.
44
+
45
+ 12
46
+ 00:00:49,000 --> 00:00:56,000
47
+ So first of all, I'm writing Exparte like for this input input where name is equal to this.
48
+
49
+ 13
50
+ 00:00:57,000 --> 00:01:02,000
51
+ OK, I'm writing like in what their name is equal to this.
52
+
53
+ 14
54
+ 00:01:04,000 --> 00:01:09,000
55
+ I'm taking example when we are not able to look at this label directly, so I'll show you how we can
56
+
57
+ 15
58
+ 00:01:09,000 --> 00:01:11,000
59
+ look at it through its sibling.
60
+
61
+ 16
62
+ 00:01:11,000 --> 00:01:14,000
63
+ OK, now let me check it first.
64
+
65
+ 17
66
+ 00:01:14,000 --> 00:01:15,000
67
+ Is it working or not?
68
+
69
+ 18
70
+ 00:01:17,000 --> 00:01:21,000
71
+ So it shows it is matching with two elements and that is not highlighted.
72
+
73
+ 19
74
+ 00:01:21,000 --> 00:01:22,000
75
+ Okay.
76
+
77
+ 20
78
+ 00:01:23,000 --> 00:01:24,000
79
+ What I do?
80
+
81
+ 21
82
+ 00:01:24,000 --> 00:01:26,000
83
+ Let me try with some other.
84
+
85
+ 22
86
+ 00:01:28,000 --> 00:01:32,000
87
+ Other option in put name, we have used it.
88
+
89
+ 23
90
+ 00:01:32,000 --> 00:01:33,000
91
+ I'll try to use.
92
+
93
+ 24
94
+ 00:01:33,000 --> 00:01:38,000
95
+ So first of all, I want to look at this input only after that, I'll write more to its sibling.
96
+
97
+ 25
98
+ 00:01:38,000 --> 00:01:43,000
99
+ So here idea is this.
100
+
101
+ 26
102
+ 00:01:44,000 --> 00:01:50,000
103
+ So if you check it here, it is not deflecting the joy, but a feature kit that is reflecting in the
104
+
105
+ 27
106
+ 00:01:51,000 --> 00:01:52,000
107
+ end is matching with the one element.
108
+
109
+ 28
110
+ 00:01:53,000 --> 00:01:54,000
111
+ It is matching with the exactly one element.
112
+
113
+ 29
114
+ 00:01:55,000 --> 00:01:57,000
115
+ So I'm just checking like, OK, that is correct.
116
+
117
+ 30
118
+ 00:01:58,000 --> 00:02:00,000
119
+ I'll just take it here.
120
+
121
+ 31
122
+ 00:02:01,000 --> 00:02:03,000
123
+ No, I don't want to work on this input.
124
+
125
+ 32
126
+ 00:02:04,000 --> 00:02:07,000
127
+ I want to work on the label, which is in front of that.
128
+
129
+ 33
130
+ 00:02:07,000 --> 00:02:10,000
131
+ So in that case, following.
132
+
133
+ 34
134
+ 00:02:13,000 --> 00:02:15,000
135
+ Hyphen sibling.
136
+
137
+ 35
138
+ 00:02:16,000 --> 00:02:21,000
139
+ Colin Cullen, so I'm saying following sibling meets sibling, which is next to it.
140
+
141
+ 36
142
+ 00:02:22,000 --> 00:02:23,000
143
+ What's a bag of this?
144
+
145
+ 37
146
+ 00:02:23,000 --> 00:02:24,000
147
+ It's a label.
148
+
149
+ 38
150
+ 00:02:24,000 --> 00:02:26,000
151
+ So I mentioned Al B. in.
152
+
153
+ 39
154
+ 00:02:27,000 --> 00:02:30,000
155
+ OK, let me copy this and.
156
+
157
+ 40
158
+ 00:02:32,000 --> 00:02:33,000
159
+ I'll show you here.
160
+
161
+ 41
162
+ 00:02:37,000 --> 00:02:38,000
163
+ So that is highlighted.
164
+
165
+ 42
166
+ 00:02:38,000 --> 00:02:42,000
167
+ So means we are locating element through its sibling.
168
+
169
+ 43
170
+ 00:02:44,000 --> 00:02:52,000
171
+ And if I show you achievements of the writing falling sibling just because this label is off, great
172
+
173
+ 44
174
+ 00:02:53,000 --> 00:02:54,000
175
+ label is after this.
176
+
177
+ 45
178
+ 00:02:55,000 --> 00:03:01,000
179
+ So if this label is before, to this on the place of following, we are going to mention preceding.
180
+
181
+ 46
182
+ 00:03:04,000 --> 00:03:10,000
183
+ Preceding, as of now, we are not using this hitting because it is after this, but if it is before
184
+
185
+ 47
186
+ 00:03:10,000 --> 00:03:12,000
187
+ this, we have to mention visiting sibling.
188
+
189
+ 48
190
+ 00:03:13,000 --> 00:03:17,000
191
+ Here we have seen how we can look at an element to its sibling.
192
+
193
+ 49
194
+ 00:03:17,000 --> 00:03:23,000
195
+ In next session, I'll show you a complex x spot in which we are going to use parent child sibling approaches
196
+
197
+ 50
198
+ 00:03:24,000 --> 00:03:26,000
199
+ that will go up in the next video.
200
+
201
+ 51
202
+ 00:03:26,000 --> 00:03:28,000
203
+ That's all we have for the session.
204
+
205
+ 52
206
+ 00:03:29,000 --> 00:03:30,000
207
+ Thanks for watching this video.
208
+
31 - Learn How to use Xpath Best Practices & Techniques to Write Xpath/011 Locate Element by Xpath - Syntax 11 Use Parent, Child & Sibling_en.srt ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the wrestling world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:08,000
7
+ So previously, we have seen few approaches in which we are going from parent, child, child to parent.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:10,000
11
+ We are moving siblings.
12
+
13
+ 4
14
+ 00:00:10,000 --> 00:00:12,000
15
+ It's the following sibling and preceding sibling.
16
+
17
+ 5
18
+ 00:00:13,000 --> 00:00:23,000
19
+ Now I'll show you how we can look it element by using multiple approaches, by using many syntax together,
20
+
21
+ 6
22
+ 00:00:23,000 --> 00:00:27,000
23
+ like I'll move to the parent, then child, then we are moving to the sibling.
24
+
25
+ 7
26
+ 00:00:27,000 --> 00:00:29,000
27
+ So let me show you the scenario.
28
+
29
+ 8
30
+ 00:00:29,000 --> 00:00:32,000
31
+ First, I'm on the Facebook page.
32
+
33
+ 9
34
+ 00:00:32,000 --> 00:00:33,000
35
+ I'll just refresh it.
36
+
37
+ 10
38
+ 00:00:35,000 --> 00:00:35,000
39
+ Yeah.
40
+
41
+ 11
42
+ 00:00:35,000 --> 00:00:44,000
43
+ So I'm able to I'm taking example, I'm able to locate this username textbox, so I'm able to look at
44
+
45
+ 12
46
+ 00:00:44,000 --> 00:00:44,000
47
+ this.
48
+
49
+ 13
50
+ 00:00:44,000 --> 00:00:50,000
51
+ But if you check that the password text box and I'm taking example, I'm not able to locate it.
52
+
53
+ 14
54
+ 00:00:51,000 --> 00:00:54,000
55
+ So I'll try to look at password through username.
56
+
57
+ 15
58
+ 00:00:55,000 --> 00:01:00,000
59
+ How we can do that, OK, if I'm able to look at username, I'll move to the parent of it, which is.
60
+
61
+ 16
62
+ 00:01:01,000 --> 00:01:05,000
63
+ Then I'll move to the following sibling, which is an entity that allowed the child of it.
64
+
65
+ 17
66
+ 00:01:06,000 --> 00:01:10,000
67
+ So we're using parent, then following sibling and then child.
68
+
69
+ 18
70
+ 00:01:12,000 --> 00:01:14,000
71
+ Let me show you how we can write it.
72
+
73
+ 19
74
+ 00:01:14,000 --> 00:01:16,000
75
+ So first of all, I'm writing.
76
+
77
+ 20
78
+ 00:01:17,000 --> 00:01:27,000
79
+ In put, where it is equal to email means I'm able to look at that the username box, which is this
80
+
81
+ 21
82
+ 00:01:28,000 --> 00:01:31,000
83
+ I want to move to the experience which is did.
84
+
85
+ 22
86
+ 00:01:31,000 --> 00:01:35,000
87
+ So I mentioned like parent Colin Colin, Disney.
88
+
89
+ 23
90
+ 00:01:36,000 --> 00:01:38,000
91
+ So now I'm here on that day.
92
+
93
+ 24
94
+ 00:01:39,000 --> 00:01:45,000
95
+ I want to move its following sibling, which is an entity some mention following.
96
+
97
+ 25
98
+ 00:01:47,000 --> 00:01:48,000
99
+ Sibling.
100
+
101
+ 26
102
+ 00:01:50,000 --> 00:01:51,000
103
+ Colin, Colin did.
104
+
105
+ 27
106
+ 00:01:52,000 --> 00:01:57,000
107
+ And one thing that to be noticed after this, we have two following siblings, which is we started.
108
+
109
+ 28
110
+ 00:01:58,000 --> 00:02:01,000
111
+ I want to go to the first one, so I just mention first.
112
+
113
+ 29
114
+ 00:02:03,000 --> 00:02:09,000
115
+ No, in this Judy Goodrich child, which is input whenever we are going to child, it just mentioned
116
+
117
+ 30
118
+ 00:02:09,000 --> 00:02:10,000
119
+ input.
120
+
121
+ 31
122
+ 00:02:10,000 --> 00:02:16,000
123
+ So that is the way in which we have locating a password box through username.
124
+
125
+ 32
126
+ 00:02:17,000 --> 00:02:18,000
127
+ Let me show you here.
128
+
129
+ 33
130
+ 00:02:19,000 --> 00:02:23,000
131
+ And it matches with the one element, if you check it, that is highlighted.
132
+
133
+ 34
134
+ 00:02:25,000 --> 00:02:29,000
135
+ So we are able to locate an element by using parent, child, sibling.
136
+
137
+ 35
138
+ 00:02:30,000 --> 00:02:32,000
139
+ All these approaches in a single case, in a single case.
140
+
141
+ 36
142
+ 00:02:33,000 --> 00:02:36,000
143
+ So again, if you check attachment, I'll show you again.
144
+
145
+ 37
146
+ 00:02:38,000 --> 00:02:40,000
147
+ Input, that's element, which I'm locating.
148
+
149
+ 38
150
+ 00:02:40,000 --> 00:02:46,000
151
+ I'm just moving to the parent of each X, which is then I'm over to the next sibling, which is an entity
152
+
153
+ 39
154
+ 00:02:47,000 --> 00:02:48,000
155
+ and then child of it.
156
+
157
+ 40
158
+ 00:02:49,000 --> 00:02:51,000
159
+ OK, let's do the reverse of that.
160
+
161
+ 41
162
+ 00:02:51,000 --> 00:02:55,000
163
+ I'm able to look at this password box, so I'm writing like.
164
+
165
+ 42
166
+ 00:02:57,000 --> 00:02:57,000
167
+ Input.
168
+
169
+ 43
170
+ 00:02:58,000 --> 00:03:03,000
171
+ And where it is equal to.
172
+
173
+ 44
174
+ 00:03:03,000 --> 00:03:11,000
175
+ And the idea here is this one which is bus able to I'm taking example when I'm able to look at ballot
176
+
177
+ 45
178
+ 00:03:11,000 --> 00:03:14,000
179
+ box through password, I want to look at username.
180
+
181
+ 46
182
+ 00:03:15,000 --> 00:03:19,000
183
+ And these are the example when we're not able to look at element directly.
184
+
185
+ 47
186
+ 00:03:19,000 --> 00:03:24,000
187
+ So if you're writing the complex expert to look at it in some reference, so I'm able to look at this
188
+
189
+ 48
190
+ 00:03:25,000 --> 00:03:25,000
191
+ password.
192
+
193
+ 49
194
+ 00:03:26,000 --> 00:03:27,000
195
+ I just want to move to it.
196
+
197
+ 50
198
+ 00:03:27,000 --> 00:03:32,000
199
+ Movenpick experiment, which is did so I mentioned parent colon colon.
200
+
201
+ 51
202
+ 00:03:35,000 --> 00:03:43,000
203
+ Then I want to know we get its presenting sibling, which is again, and we have only one preceding
204
+
205
+ 52
206
+ 00:03:43,000 --> 00:03:43,000
207
+ sibling.
208
+
209
+ 53
210
+ 00:03:43,000 --> 00:03:52,000
211
+ So we need not to mention one or two preceding preceding sibling colon colon PD.
212
+
213
+ 54
214
+ 00:03:54,000 --> 00:03:57,000
215
+ And through the study, I'll move to the input child of it.
216
+
217
+ 55
218
+ 00:03:58,000 --> 00:03:59,000
219
+ Its input.
220
+
221
+ 56
222
+ 00:04:00,000 --> 00:04:03,000
223
+ So when we're directly moving to the child just forward slash, it'll move to the child.
224
+
225
+ 57
226
+ 00:04:05,000 --> 00:04:06,000
227
+ I'll just copy this.
228
+
229
+ 58
230
+ 00:04:07,000 --> 00:04:08,000
231
+ Let me show you here.
232
+
233
+ 59
234
+ 00:04:09,000 --> 00:04:16,000
235
+ And yes, we are able to look at username through password with reference of password.
236
+
237
+ 60
238
+ 00:04:17,000 --> 00:04:24,000
239
+ So here we have seen how we can make complex export, though by merging many techniques together.
240
+
241
+ 61
242
+ 00:04:25,000 --> 00:04:27,000
243
+ So all these techniques that we have gone through can march together.
244
+
245
+ 62
246
+ 00:04:28,000 --> 00:04:29,000
247
+ Our syntax should be correct.
248
+
249
+ 63
250
+ 00:04:30,000 --> 00:04:32,000
251
+ There's all we have for the session here.
252
+
253
+ 64
254
+ 00:04:32,000 --> 00:04:37,000
255
+ We have seen how we can write Complex X, but that's all we have.
256
+
257
+ 65
258
+ 00:04:38,000 --> 00:04:39,000
259
+ Thanks for watching this video.
260
+
32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/001 How to Setup Selenium Library on Python using PIP_en.srt ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:08,000
3
+ Welcome to the testing world and this session, I'll show you how we can write foster skills in selenium
4
+
5
+ 2
6
+ 00:00:08,000 --> 00:00:09,000
7
+ with Python.
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:16,000
11
+ So first of all, we have to satisfy a few prerequisites like we need to install Python.
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:19,000
15
+ So previous version, we have already set a python, so that is done.
16
+
17
+ 5
18
+ 00:00:20,000 --> 00:00:24,000
19
+ We need to set up by Jump or any other editor.
20
+
21
+ 6
22
+ 00:00:24,000 --> 00:00:28,000
23
+ So by jump, it's the editor for writing Python code.
24
+
25
+ 7
26
+ 00:00:28,000 --> 00:00:34,000
27
+ I'm using community words and means it's a free was and we can use any of the editors as well.
28
+
29
+ 8
30
+ 00:00:35,000 --> 00:00:38,000
31
+ Then we need to set up Selenium Package.
32
+
33
+ 9
34
+ 00:00:38,000 --> 00:00:41,000
35
+ So if you have if you already have the start, that's fine.
36
+
37
+ 10
38
+ 00:00:41,000 --> 00:00:47,000
39
+ If you don't have, we need to go to a command prompt and we need right, write PIP.
40
+
41
+ 11
42
+ 00:00:49,000 --> 00:00:59,000
43
+ Install selenium, we need to install selenium as I ain't going to install selenium package, it's going
44
+
45
+ 12
46
+ 00:00:59,000 --> 00:00:59,000
47
+ to take some time.
48
+
49
+ 13
50
+ 00:00:59,000 --> 00:01:04,000
51
+ I'm just waiting for this package to be installed successfully so it doesn't start.
52
+
53
+ 14
54
+ 00:01:04,000 --> 00:01:09,000
55
+ Latest package, which just three point twelve point zero So step one is done.
56
+
57
+ 15
58
+ 00:01:10,000 --> 00:01:13,000
59
+ So here, if you can check all the prerequisites are done.
60
+
61
+ 16
62
+ 00:01:13,000 --> 00:01:21,000
63
+ We we where we have set up items we have already installed by June and now we have set up selenium package.
64
+
65
+ 17
66
+ 00:01:22,000 --> 00:01:27,000
67
+ Now, once you set up any package, you can go and check.
68
+
69
+ 18
70
+ 00:01:28,000 --> 00:01:30,000
71
+ Do we have the debt package or not?
72
+
73
+ 19
74
+ 00:01:30,000 --> 00:01:36,000
75
+ First of all, I need to write Python, so I'm on a Python interpreter now and I'm writing like help
76
+
77
+ 20
78
+ 00:01:38,000 --> 00:01:40,000
79
+ and modules.
80
+
81
+ 21
82
+ 00:01:42,000 --> 00:01:48,000
83
+ So it is stretching all the modules which are installed as of now, so let me show you.
84
+
85
+ 22
86
+ 00:01:48,000 --> 00:01:51,000
87
+ Do we have selenium installed or not?
88
+
89
+ 23
90
+ 00:01:52,000 --> 00:01:59,000
91
+ So it is giving me lot of modules and if I take it over here, so do we have selenium?
92
+
93
+ 24
94
+ 00:02:00,000 --> 00:02:06,000
95
+ And if you see here we are getting selenium module means that is installed.
96
+
32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/002 Write First TestCase Open Browser Enter URL Maximize_en.srt ADDED
@@ -0,0 +1,568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:05,000
3
+ Now we have done all the predicted options now, almost to how we can drive this case.
4
+
5
+ 2
6
+ 00:00:06,000 --> 00:00:08,000
7
+ So in this case, I'm going to start browser.
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:12,000
11
+ Enter the URL, enter data into the text box.
12
+
13
+ 4
14
+ 00:00:12,000 --> 00:00:18,000
15
+ Click on the radio button, click on the check box and then click on Button.
16
+
17
+ 5
18
+ 00:00:19,000 --> 00:00:21,000
19
+ So these are the different options I'm going to use.
20
+
21
+ 6
22
+ 00:00:22,000 --> 00:00:27,000
23
+ First of all, I'm just showing you my best application, which I'm going to use for the session.
24
+
25
+ 7
26
+ 00:00:29,000 --> 00:00:30,000
27
+ That's our test application.
28
+
29
+ 8
30
+ 00:00:31,000 --> 00:00:32,000
31
+ And here we have a register page.
32
+
33
+ 9
34
+ 00:00:32,000 --> 00:00:37,000
35
+ So you are all is that testing word dot com for watchlist testing.
36
+
37
+ 10
38
+ 00:00:38,000 --> 00:00:41,000
39
+ So that's why you are which you can use for practice.
40
+
41
+ 11
42
+ 00:00:41,000 --> 00:00:44,000
43
+ Pope was so that's that you are all of the application.
44
+
45
+ 12
46
+ 00:00:44,000 --> 00:00:48,000
47
+ Now I want to open browser and you to enter data into the text box.
48
+
49
+ 13
50
+ 00:00:49,000 --> 00:00:52,000
51
+ So I'm just moving to Page Editor.
52
+
53
+ 14
54
+ 00:00:54,000 --> 00:00:55,000
55
+ That's my editor.
56
+
57
+ 15
58
+ 00:00:55,000 --> 00:01:01,000
59
+ First of all, we need to create a new project so we can go, file and create a new project or whatever
60
+
61
+ 16
62
+ 00:01:01,000 --> 00:01:02,000
63
+ the name you want to give.
64
+
65
+ 17
66
+ 00:01:02,000 --> 00:01:06,000
67
+ I'm just giving like selenium automation.
68
+
69
+ 18
70
+ 00:01:07,000 --> 00:01:09,000
71
+ Also, if you have multiple interpreter.
72
+
73
+ 19
74
+ 00:01:10,000 --> 00:01:15,000
75
+ So if you installed multiple versions of the Python, you can select which Python you want to use.
76
+
77
+ 20
78
+ 00:01:16,000 --> 00:01:23,000
79
+ So as of now, I'm just using the Python and I'm going to use this, so I just click on to create a
80
+
81
+ 21
82
+ 00:01:23,000 --> 00:01:26,000
83
+ new project will be created.
84
+
85
+ 22
86
+ 00:01:28,000 --> 00:01:33,000
87
+ Now, as of now, I'm not following any structure, I'm not following any unit testing tool.
88
+
89
+ 23
90
+ 00:01:34,000 --> 00:01:36,000
91
+ I'm just writing back Python code.
92
+
93
+ 24
94
+ 00:01:37,000 --> 00:01:38,000
95
+ Let it open and then I'll start.
96
+
97
+ 25
98
+ 00:01:39,000 --> 00:01:40,000
99
+ So here it is open.
100
+
101
+ 26
102
+ 00:01:41,000 --> 00:01:47,000
103
+ Now, if you want to check one option that I want to show you, if you have multiple python in your
104
+
105
+ 27
106
+ 00:01:47,000 --> 00:01:53,000
107
+ system like it is possible that you have installed Python 3.6, you install Python two point seven and
108
+
109
+ 28
110
+ 00:01:53,000 --> 00:01:56,000
111
+ you want to check which Python is used.
112
+
113
+ 29
114
+ 00:01:56,000 --> 00:01:59,000
115
+ As of now, we can go to the file setting.
116
+
117
+ 30
118
+ 00:02:00,000 --> 00:02:05,000
119
+ Here we have the option of project inside the project project interpreter.
120
+
121
+ 31
122
+ 00:02:05,000 --> 00:02:07,000
123
+ So here it shows which Python you are using.
124
+
125
+ 32
126
+ 00:02:07,000 --> 00:02:08,000
127
+ We are using Python 3.6.
128
+
129
+ 33
130
+ 00:02:09,000 --> 00:02:15,000
131
+ And if you take it over here, there is like package that is installed on the Python 3.6.
132
+
133
+ 34
134
+ 00:02:16,000 --> 00:02:17,000
135
+ Everything is OK.
136
+
137
+ 35
138
+ 00:02:17,000 --> 00:02:18,000
139
+ I would just click on that.
140
+
141
+ 36
142
+ 00:02:18,000 --> 00:02:25,000
143
+ OK, now I'm going to create a file, so I just right click on the project new and we have a Python
144
+
145
+ 37
146
+ 00:02:25,000 --> 00:02:26,000
147
+ file.
148
+
149
+ 38
150
+ 00:02:26,000 --> 00:02:27,000
151
+ What is the name of the file you want to give?
152
+
153
+ 39
154
+ 00:02:28,000 --> 00:02:30,000
155
+ So I'm just giving like first.
156
+
157
+ 40
158
+ 00:02:31,000 --> 00:02:36,000
159
+ Best guess, and that's but that's a beautiful means Python file.
160
+
161
+ 41
162
+ 00:02:37,000 --> 00:02:39,000
163
+ Now I have shown you my application.
164
+
165
+ 42
166
+ 00:02:39,000 --> 00:02:43,000
167
+ And previously we have seen how we can look at each and every element.
168
+
169
+ 43
170
+ 00:02:43,000 --> 00:02:45,000
171
+ We have gone through different element locators.
172
+
173
+ 44
174
+ 00:02:46,000 --> 00:02:49,000
175
+ Now I want to work on this page.
176
+
177
+ 45
178
+ 00:02:50,000 --> 00:02:54,000
179
+ So I want to enter data into these text boxes.
180
+
181
+ 46
182
+ 00:02:54,000 --> 00:02:55,000
183
+ So these are the text boxes.
184
+
185
+ 47
186
+ 00:02:55,000 --> 00:02:57,000
187
+ I'll show you how we can work on that.
188
+
189
+ 48
190
+ 00:02:57,000 --> 00:03:06,000
191
+ Then I need to click on this radio button will go with the checkbox and then we'll go over that button.
192
+
193
+ 49
194
+ 00:03:07,000 --> 00:03:09,000
195
+ That's what elements like dropdown and link.
196
+
197
+ 50
198
+ 00:03:09,000 --> 00:03:11,000
199
+ I'm going to go in the coming sessions.
200
+
201
+ 51
202
+ 00:03:12,000 --> 00:03:17,000
203
+ So first of all, I want to work on Chrome browser.
204
+
205
+ 52
206
+ 00:03:17,000 --> 00:03:20,000
207
+ So previously we have seen like, that's my task.
208
+
209
+ 53
210
+ 00:03:21,000 --> 00:03:26,000
211
+ First of all, we need to import glass with the name Chrome because I want to execute my task.
212
+
213
+ 54
214
+ 00:03:26,000 --> 00:03:38,000
215
+ Given the Chrome browser from Selenium Dot, Web driver import Chrome and we have already seen what
216
+
217
+ 55
218
+ 00:03:38,000 --> 00:03:40,000
219
+ do you mean by the from and import?
220
+
221
+ 56
222
+ 00:03:41,000 --> 00:03:45,000
223
+ So here I'm just writing the test case means from this package.
224
+
225
+ 57
226
+ 00:03:46,000 --> 00:03:46,000
227
+ All right.
228
+
229
+ 58
230
+ 00:03:46,000 --> 00:03:47,000
231
+ It's a module.
232
+
233
+ 59
234
+ 00:03:47,000 --> 00:03:50,000
235
+ I'm going to import this class now.
236
+
237
+ 60
238
+ 00:03:50,000 --> 00:03:54,000
239
+ I need to create object of the chrome class so how we can buy that object.
240
+
241
+ 61
242
+ 00:03:54,000 --> 00:03:58,000
243
+ So I'm writing like driver is equal to chrome.
244
+
245
+ 62
246
+ 00:04:00,000 --> 00:04:01,000
247
+ So that's the object I have created.
248
+
249
+ 63
250
+ 00:04:02,000 --> 00:04:03,000
251
+ No object is created.
252
+
253
+ 64
254
+ 00:04:03,000 --> 00:04:09,000
255
+ I want to enter your driver dock and we have a method with the name get.
256
+
257
+ 65
258
+ 00:04:10,000 --> 00:04:14,000
259
+ I'm just giving that you are like S&P W W W the.
260
+
261
+ 66
262
+ 00:04:15,000 --> 00:04:16,000
263
+ Testing.
264
+
265
+ 67
266
+ 00:04:18,000 --> 00:04:22,000
267
+ Word dot com for worthless testings.
268
+
269
+ 68
270
+ 00:04:23,000 --> 00:04:24,000
271
+ There's the application you are.
272
+
273
+ 69
274
+ 00:04:25,000 --> 00:04:28,000
275
+ As of now, we are just getting browser object.
276
+
277
+ 70
278
+ 00:04:28,000 --> 00:04:34,000
279
+ We are calling get method by which we can enter the URL when we create object of the chrome class.
280
+
281
+ 71
282
+ 00:04:35,000 --> 00:04:39,000
283
+ This is a constructor which should be good and it should open browser.
284
+
285
+ 72
286
+ 00:04:39,000 --> 00:04:43,000
287
+ But as of now, if I try to execute this, it will not open browser.
288
+
289
+ 73
290
+ 00:04:43,000 --> 00:04:44,000
291
+ It will give me ETA.
292
+
293
+ 74
294
+ 00:04:44,000 --> 00:04:45,000
295
+ What ETA?
296
+
297
+ 75
298
+ 00:04:45,000 --> 00:04:46,000
299
+ Let me show you.
300
+
301
+ 76
302
+ 00:04:47,000 --> 00:04:48,000
303
+ I'm just running it.
304
+
305
+ 77
306
+ 00:04:48,000 --> 00:04:50,000
307
+ And here we are getting error.
308
+
309
+ 78
310
+ 00:04:51,000 --> 00:04:57,000
311
+ First of all, if we check this ETA, it shows for Chrome browser executable need to be in the path?
312
+
313
+ 79
314
+ 00:04:58,000 --> 00:04:59,000
315
+ What does it mean?
316
+
317
+ 80
318
+ 00:04:59,000 --> 00:05:02,000
319
+ Hidden palladium to communicate with the browser?
320
+
321
+ 81
322
+ 00:05:02,000 --> 00:05:09,000
323
+ We need a driver ICSI file, which is going to behave as an interface between my test, gif and browser
324
+
325
+ 82
326
+ 00:05:10,000 --> 00:05:12,000
327
+ so we cannot communicate with the browser directly.
328
+
329
+ 83
330
+ 00:05:12,000 --> 00:05:16,000
331
+ We need that interface, and that interface will be provided by that easy.
332
+
333
+ 84
334
+ 00:05:17,000 --> 00:05:24,000
335
+ In simple words, we can understand it like we need a software which is going to make a bridge between
336
+
337
+ 85
338
+ 00:05:24,000 --> 00:05:26,000
339
+ mitosis and browser.
340
+
341
+ 86
342
+ 00:05:26,000 --> 00:05:31,000
343
+ So from there, we can get the software that you are given for Chrome.
344
+
345
+ 87
346
+ 00:05:31,000 --> 00:05:35,000
347
+ You can download it from this location and for each browser.
348
+
349
+ 88
350
+ 00:05:35,000 --> 00:05:39,000
351
+ If you're not setting that, it will give you, you order from where you can download it.
352
+
353
+ 89
354
+ 00:05:40,000 --> 00:05:44,000
355
+ So I'm just coming here and just using that to you all.
356
+
357
+ 90
358
+ 00:05:46,000 --> 00:05:46,000
359
+ Okay?
360
+
361
+ 91
362
+ 00:05:47,000 --> 00:05:49,000
363
+ Ladies, wasn't is two point thirty eight.
364
+
365
+ 92
366
+ 00:05:49,000 --> 00:05:56,000
367
+ So just click on this and this is going to work for 65 to 67 was another chrome.
368
+
369
+ 93
370
+ 00:05:56,000 --> 00:06:01,000
371
+ So if you're not aware about your Chrome wasn't fussed, check what is our version of the Chrome.
372
+
373
+ 94
374
+ 00:06:01,000 --> 00:06:03,000
375
+ So I'm just going to talk about Google Chrome.
376
+
377
+ 95
378
+ 00:06:06,000 --> 00:06:12,000
379
+ Here just we have a 66 was, and if I have a 66 was in this country, what is going to work for me.
380
+
381
+ 96
382
+ 00:06:12,000 --> 00:06:19,000
383
+ So I just click on this and for which always you want, I want for Windows 32.
384
+
385
+ 97
386
+ 00:06:20,000 --> 00:06:22,000
387
+ It is going to work for Windows 32 as well as 64 bit.
388
+
389
+ 98
390
+ 00:06:23,000 --> 00:06:24,000
391
+ So just click on this.
392
+
393
+ 99
394
+ 00:06:24,000 --> 00:06:28,000
395
+ It's going to download a different file once that will be downloaded.
396
+
397
+ 100
398
+ 00:06:28,000 --> 00:06:30,000
399
+ I'm just cancelling it because I already have.
400
+
401
+ 101
402
+ 00:06:30,000 --> 00:06:31,000
403
+ We need to sit.
404
+
405
+ 102
406
+ 00:06:31,000 --> 00:06:35,000
407
+ This easy path in our desk is how we can set it.
408
+
409
+ 103
410
+ 00:06:36,000 --> 00:06:37,000
411
+ I'm just moving to the desk.
412
+
413
+ 104
414
+ 00:06:38,000 --> 00:06:43,000
415
+ And before clearing, the object of the browser means object to the chrome glass.
416
+
417
+ 105
418
+ 00:06:43,000 --> 00:06:44,000
419
+ I'm just going here.
420
+
421
+ 106
422
+ 00:06:44,000 --> 00:06:52,000
423
+ I'm seeing my path is equal to and whatever the path you are having for that easy file in my system,
424
+
425
+ 107
426
+ 00:06:54,000 --> 00:06:58,000
427
+ I have that to pop off my ex-wife.
428
+
429
+ 108
430
+ 00:06:58,000 --> 00:06:59,000
431
+ So I just copied that.
432
+
433
+ 109
434
+ 00:06:59,000 --> 00:07:02,000
435
+ You have downloaded to file, just unzip it.
436
+
437
+ 110
438
+ 00:07:02,000 --> 00:07:03,000
439
+ You will get to file.
440
+
441
+ 111
442
+ 00:07:03,000 --> 00:07:05,000
443
+ So that's a pop of that easy file.
444
+
445
+ 112
446
+ 00:07:06,000 --> 00:07:10,000
447
+ And just the name with extension.
448
+
449
+ 113
450
+ 00:07:10,000 --> 00:07:11,000
451
+ That's the complete path.
452
+
453
+ 114
454
+ 00:07:12,000 --> 00:07:17,000
455
+ Whenever we are giving path, it's always a good practice to use double backwards slash.
456
+
457
+ 115
458
+ 00:07:18,000 --> 00:07:21,000
459
+ So I'm just using double backwards.
460
+
461
+ 116
462
+ 00:07:22,000 --> 00:07:26,000
463
+ Now we have defined the part now in front of the while creating the object.
464
+
465
+ 117
466
+ 00:07:26,000 --> 00:07:29,000
467
+ We are going to use executable part is equal to.
468
+
469
+ 118
470
+ 00:07:29,000 --> 00:07:36,000
471
+ But so what we are doing, we are creating a variable in which the part of that easy file is stored.
472
+
473
+ 119
474
+ 00:07:36,000 --> 00:07:42,000
475
+ And here we are, splitting the object we are passing like executable part value is equal to whatever
476
+
477
+ 120
478
+ 00:07:42,000 --> 00:07:43,000
479
+ the part you have stored.
480
+
481
+ 121
482
+ 00:07:44,000 --> 00:07:45,000
483
+ Now I'm going to execute.
484
+
485
+ 122
486
+ 00:07:45,000 --> 00:07:51,000
487
+ The same task is now should open browser and it should enter.
488
+
489
+ 123
490
+ 00:07:54,000 --> 00:07:58,000
491
+ You are onto the browser, so if you check it here, that is started.
492
+
493
+ 124
494
+ 00:07:59,000 --> 00:08:06,000
495
+ So step one is done where we have started browser, so that might step one, I'd say.
496
+
497
+ 125
498
+ 00:08:06,000 --> 00:08:14,000
499
+ I would say step one is done open browser and step two is to.
500
+
501
+ 126
502
+ 00:08:16,000 --> 00:08:18,000
503
+ And tell you all that is done.
504
+
505
+ 127
506
+ 00:08:19,000 --> 00:08:30,000
507
+ No, I want to maximize Belzer, so I am I'm saying step three, we can go for maximizing browser,
508
+
509
+ 128
510
+ 00:08:31,000 --> 00:08:37,000
511
+ so maximize browser as of now, if you notice browser and started, but that's not enough the maximize
512
+
513
+ 129
514
+ 00:08:37,000 --> 00:08:38,000
515
+ mode.
516
+
517
+ 130
518
+ 00:08:38,000 --> 00:08:40,000
519
+ So I want to maximize it.
520
+
521
+ 131
522
+ 00:08:40,000 --> 00:08:41,000
523
+ What I can do for that.
524
+
525
+ 132
526
+ 00:08:42,000 --> 00:08:51,000
527
+ I'm just going to the test case and we have like maximize browser for that.
528
+
529
+ 133
530
+ 00:08:51,000 --> 00:08:57,000
531
+ We can write Driver Dot Maximize Window.
532
+
533
+ 134
534
+ 00:08:58,000 --> 00:09:02,000
535
+ And that is a method which is placed in the Chrome class.
536
+
537
+ 135
538
+ 00:09:02,000 --> 00:09:04,000
539
+ We are calling that method by its object.
540
+
541
+ 136
542
+ 00:09:04,000 --> 00:09:05,000
543
+ So that's my object.
544
+
545
+ 137
546
+ 00:09:05,000 --> 00:09:10,000
547
+ And we're calling this maximize window method, maximize the window method.
548
+
549
+ 138
550
+ 00:09:11,000 --> 00:09:13,000
551
+ Now I'm going to execute.
552
+
553
+ 139
554
+ 00:09:13,000 --> 00:09:16,000
555
+ So it should maximize browser.
556
+
557
+ 140
558
+ 00:09:17,000 --> 00:09:24,000
559
+ I'm just waiting for browser to be started, and that is going to be maximized.
560
+
561
+ 141
562
+ 00:09:25,000 --> 00:09:26,000
563
+ So that is maximized.
564
+
565
+ 142
566
+ 00:09:28,000 --> 00:09:31,000
567
+ So now we have maximized it, I can move to the next step.
568
+
32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/003 Work on TextBox Enter data into textbox_en.srt ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:02,000 --> 00:00:04,000
3
+ Next step is we want to work on the text box.
4
+
5
+ 2
6
+ 00:00:05,000 --> 00:00:08,000
7
+ I'll show you how we can work on text boxes.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:13,000
11
+ Step four would be work on X-Box.
12
+
13
+ 4
14
+ 00:00:13,000 --> 00:00:15,000
15
+ We can enter data into the text box.
16
+
17
+ 5
18
+ 00:00:15,000 --> 00:00:17,000
19
+ We can clear data from the text box.
20
+
21
+ 6
22
+ 00:00:17,000 --> 00:00:19,000
23
+ So how we can do that, I'll just come over here.
24
+
25
+ 7
26
+ 00:00:20,000 --> 00:00:28,000
27
+ So I'm just coming here and data to the text box.
28
+
29
+ 8
30
+ 00:00:29,000 --> 00:00:37,000
31
+ Now I'm just moving to my application, and we know that for performing any task on any element, first,
32
+
33
+ 9
34
+ 00:00:37,000 --> 00:00:41,000
35
+ we need to locate it, that we have seen the previous session, how we can locate elements.
36
+
37
+ 10
38
+ 00:00:42,000 --> 00:00:47,000
39
+ So I just right click on this inspect and we are going to get different locators.
40
+
41
+ 11
42
+ 00:00:47,000 --> 00:00:53,000
43
+ So here, if you check it, here we are getting it name so I can locate an element by its name.
44
+
45
+ 12
46
+ 00:00:53,000 --> 00:00:54,000
47
+ So I just copied that.
48
+
49
+ 13
50
+ 00:00:54,000 --> 00:01:00,000
51
+ I'm S. Driver dot fine element by name.
52
+
53
+ 14
54
+ 00:01:00,000 --> 00:01:05,000
55
+ And that's the name of the element and dot scent and the cookies.
56
+
57
+ 15
58
+ 00:01:06,000 --> 00:01:09,000
59
+ That's the method for writing something on that text box.
60
+
61
+ 16
62
+ 00:01:09,000 --> 00:01:11,000
63
+ So I'm saying like, Hello, world.
64
+
65
+ 17
66
+ 00:01:11,000 --> 00:01:12,000
67
+ OK, that is done.
68
+
69
+ 18
70
+ 00:01:13,000 --> 00:01:16,000
71
+ I'm just executing it.
72
+
73
+ 19
74
+ 00:01:18,000 --> 00:01:20,000
75
+ So if you execute this?
76
+
77
+ 20
78
+ 00:01:24,000 --> 00:01:30,000
79
+ First browser started at WRAL, then maximize, then enter some data into the text box.
80
+
81
+ 21
82
+ 00:01:32,000 --> 00:01:37,000
83
+ OK, in the same way, you can enter data into the next four text boxes.
84
+
85
+ 22
86
+ 00:01:37,000 --> 00:01:45,000
87
+ So what I'm going to do just quickly find out locator of these elements and just putting some data into
88
+
89
+ 23
90
+ 00:01:45,000 --> 00:01:45,000
91
+ that.
92
+
93
+ 24
94
+ 00:01:45,000 --> 00:01:48,000
95
+ So that's the second element.
96
+
97
+ 25
98
+ 00:01:49,000 --> 00:01:54,000
99
+ And here the name is, we can use name, we can use any other locator.
100
+
101
+ 26
102
+ 00:01:54,000 --> 00:01:57,000
103
+ So as of now, it's easy for me to find out the names.
104
+
105
+ 27
106
+ 00:01:57,000 --> 00:02:00,000
107
+ I'm just going for that and it will be a good practice.
108
+
109
+ 28
110
+ 00:02:00,000 --> 00:02:03,000
111
+ If you're writing here, you can use any of the look at it like you can use.
112
+
113
+ 29
114
+ 00:02:03,000 --> 00:02:05,000
115
+ But OK, I try to use the spot as well.
116
+
117
+ 30
118
+ 00:02:05,000 --> 00:02:12,000
119
+ So Driver Dot find element by X spot and I'm writing the but like we have seen these techniques, so
120
+
121
+ 31
122
+ 00:02:12,000 --> 00:02:14,000
123
+ just directly writing it.
124
+
125
+ 32
126
+ 00:02:16,000 --> 00:02:20,000
127
+ Input at name is equal to that's the value.
128
+
129
+ 33
130
+ 00:02:21,000 --> 00:02:21,000
131
+ And what do you want to do?
132
+
133
+ 34
134
+ 00:02:22,000 --> 00:02:29,000
135
+ I want to enter some data, so I'm entering Lake ABCDE Street, Yahoo dot com or I can give my email
136
+
137
+ 35
138
+ 00:02:29,000 --> 00:02:37,000
139
+ ID like testing word India at the red Gmail dot com.
140
+
141
+ 36
142
+ 00:02:39,000 --> 00:02:42,000
143
+ So that's a step too in the same way I can go to the third step.
144
+
145
+ 37
146
+ 00:02:43,000 --> 00:02:56,000
147
+ So that's my password box and I'm going to use name here, so try word dot, find element by name and
148
+
149
+ 38
150
+ 00:02:56,000 --> 00:02:57,000
151
+ dot.
152
+
153
+ 39
154
+ 00:02:57,000 --> 00:02:58,000
155
+ Send GIFs.
156
+
157
+ 40
158
+ 00:02:58,000 --> 00:03:03,000
159
+ I'm putting the password like ABCD one two three, then I'll go to the forgot password.
160
+
161
+ 41
162
+ 00:03:03,000 --> 00:03:05,000
163
+ So that's my forgot password.
164
+
165
+ 42
166
+ 00:03:06,000 --> 00:03:07,000
167
+ And that's my name.
168
+
169
+ 43
170
+ 00:03:07,000 --> 00:03:09,000
171
+ Name of that element.
172
+
173
+ 44
174
+ 00:03:09,000 --> 00:03:13,000
175
+ So dry word dot find element by name again.
176
+
177
+ 45
178
+ 00:03:13,000 --> 00:03:16,000
179
+ So you can go to any element locator.
180
+
181
+ 46
182
+ 00:03:16,000 --> 00:03:19,000
183
+ I'm just going for the name because it is easy to find over here.
184
+
185
+ 47
186
+ 00:03:19,000 --> 00:03:21,000
187
+ I'm just giving ABCD one two three.
188
+
189
+ 48
190
+ 00:03:22,000 --> 00:03:30,000
191
+ One thing I want to show you over here like I have entered Hello World here in username and I want to
192
+
193
+ 49
194
+ 00:03:30,000 --> 00:03:30,000
195
+ change it.
196
+
197
+ 50
198
+ 00:03:30,000 --> 00:03:38,000
199
+ So what I am doing on the line number 12 here on this line, which is line number 12, we have entered
200
+
201
+ 51
202
+ 00:03:38,000 --> 00:03:38,000
203
+ Hello World.
204
+
205
+ 52
206
+ 00:03:39,000 --> 00:03:39,000
207
+ No.
208
+
209
+ 53
210
+ 00:03:40,000 --> 00:03:44,000
211
+ I'm writing it again and I'm putting ABCD one two three.
212
+
213
+ 54
214
+ 00:03:44,000 --> 00:03:46,000
215
+ Now what is going to happen?
216
+
217
+ 55
218
+ 00:03:46,000 --> 00:03:48,000
219
+ Because first this line will execute.
220
+
221
+ 56
222
+ 00:03:48,000 --> 00:03:53,000
223
+ It will enter Hello World when the line number 16 will execute, it will enter ABCD one two three.
224
+
225
+ 57
226
+ 00:03:53,000 --> 00:04:01,000
227
+ So this DICT is going to append with the first text or it will going to overwrite actually by default
228
+
229
+ 58
230
+ 00:04:01,000 --> 00:04:02,000
231
+ is going to appended.
232
+
233
+ 59
234
+ 00:04:03,000 --> 00:04:04,000
235
+ So let me show you.
236
+
237
+ 60
238
+ 00:04:06,000 --> 00:04:12,000
239
+ And it will upend fast, it will write Helen and then ABCD one, two three.
240
+
241
+ 61
242
+ 00:04:12,000 --> 00:04:13,000
243
+ So let me show you.
244
+
245
+ 62
246
+ 00:04:18,000 --> 00:04:20,000
247
+ So if you check it over here.
248
+
249
+ 63
250
+ 00:04:20,000 --> 00:04:22,000
251
+ Hello, World and ABCD one, two three.
252
+
253
+ 64
254
+ 00:04:23,000 --> 00:04:30,000
255
+ Now the task is I want to clear the previous text, which is written like Halyard and then enter the
256
+
257
+ 65
258
+ 00:04:30,000 --> 00:04:33,000
259
+ new text when you want to clear the previous text.
260
+
261
+ 66
262
+ 00:04:33,000 --> 00:04:36,000
263
+ We can use, I'm just locating that element.
264
+
265
+ 67
266
+ 00:04:37,000 --> 00:04:38,000
267
+ And we have a method with the name clear.
268
+
269
+ 68
270
+ 00:04:39,000 --> 00:04:42,000
271
+ So that is going to clear the existing text of the text box.
272
+
273
+ 69
274
+ 00:04:42,000 --> 00:04:44,000
275
+ And now we're going to enter.
276
+
277
+ 70
278
+ 00:04:44,000 --> 00:04:45,000
279
+ Let me show you now.
280
+
281
+ 71
282
+ 00:04:51,000 --> 00:04:59,000
283
+ Browsers started you are entered maximize this time, if you notice it has removed remote hello world
284
+
285
+ 72
286
+ 00:04:59,000 --> 00:05:01,000
287
+ and just a 1-2-3.
288
+
289
+ 73
290
+ 00:05:02,000 --> 00:05:06,000
291
+ So we have seen two common methods which we are going to use on the text boxes.
292
+
293
+ 74
294
+ 00:05:07,000 --> 00:05:13,000
295
+ One is send underscore keys and other what is clear, which is going to clear data of the text box.
296
+
297
+ 75
298
+ 00:05:14,000 --> 00:05:15,000
299
+ So here we here perform.
300
+
301
+ 76
302
+ 00:05:16,000 --> 00:05:19,000
303
+ Next step where we enter data into the text box.
304
+
32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/004 Work on Radio Button Checkbox Link Button_en.srt ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Next, I'll show you how we can work on the radio button.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:05,000
7
+ So now I'm moving to the step five.
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:14,000
11
+ To click on the radio button and working on radio button is quite similar to any button, we just need
12
+
13
+ 4
14
+ 00:00:14,000 --> 00:00:14,000
15
+ to click it.
16
+
17
+ 5
18
+ 00:00:14,000 --> 00:00:16,000
19
+ But before that, we need to look at it.
20
+
21
+ 6
22
+ 00:00:17,000 --> 00:00:19,000
23
+ So I'm just moving to my application
24
+
25
+ 7
26
+ 00:00:21,000 --> 00:00:26,000
27
+ and I want to work on this radio button, which is home.
28
+
29
+ 8
30
+ 00:00:26,000 --> 00:00:28,000
31
+ So I just click on this inspect.
32
+
33
+ 9
34
+ 00:00:31,000 --> 00:00:39,000
35
+ Now, it's an input type where value is equal to home, so I can use this, I'm going to generate export
36
+
37
+ 10
38
+ 00:00:39,000 --> 00:00:39,000
39
+ for this.
40
+
41
+ 11
42
+ 00:00:40,000 --> 00:00:49,000
43
+ So what I'm doing here working on radio button and.
44
+
45
+ 12
46
+ 00:00:51,000 --> 00:00:51,000
47
+ No.
48
+
49
+ 13
50
+ 00:00:52,000 --> 00:01:01,000
51
+ So again, steps are to divert dot finite element by X spot, and my X path would be, I'm just checking
52
+
53
+ 14
54
+ 00:01:01,000 --> 00:01:04,000
55
+ it again input and the value is equal to home.
56
+
57
+ 15
58
+ 00:01:04,000 --> 00:01:06,000
59
+ So I'm saying input.
60
+
61
+ 16
62
+ 00:01:10,000 --> 00:01:19,000
63
+ And attribute, I'm going to use value before value, I'm just ready to edit it home.
64
+
65
+ 17
66
+ 00:01:19,000 --> 00:01:21,000
67
+ And what do you want to do on that?
68
+
69
+ 18
70
+ 00:01:21,000 --> 00:01:22,000
71
+ So I just want to click on it.
72
+
73
+ 19
74
+ 00:01:23,000 --> 00:01:26,000
75
+ So just click no again.
76
+
77
+ 20
78
+ 00:01:26,000 --> 00:01:27,000
79
+ I'm going to execute.
80
+
81
+ 21
82
+ 00:01:27,000 --> 00:01:35,000
83
+ So let me show you it will start browser, enter some data into the text boxes and then click on a radio
84
+
85
+ 22
86
+ 00:01:35,000 --> 00:01:35,000
87
+ button.
88
+
89
+ 23
90
+ 00:01:40,000 --> 00:01:46,000
91
+ If you check it out here, it is clicked on home in the same way if I want to click on the office,
92
+
93
+ 24
94
+ 00:01:47,000 --> 00:01:50,000
95
+ so I'm just inspecting that so that we can check.
96
+
97
+ 25
98
+ 00:01:51,000 --> 00:01:52,000
99
+ It's just a locator.
100
+
101
+ 26
102
+ 00:01:52,000 --> 00:01:52,000
103
+ We need to find out.
104
+
105
+ 27
106
+ 00:01:53,000 --> 00:01:54,000
107
+ We can work on any element.
108
+
109
+ 28
110
+ 00:01:55,000 --> 00:02:01,000
111
+ So I'm just coming over here and I want to work on second radio button.
112
+
113
+ 29
114
+ 00:02:02,000 --> 00:02:04,000
115
+ The value is different, so what I can do.
116
+
117
+ 30
118
+ 00:02:06,000 --> 00:02:11,000
119
+ Rather than going for home, just going for office radio button.
120
+
121
+ 31
122
+ 00:02:11,000 --> 00:02:14,000
123
+ So if we check it over here, I just change my spot.
124
+
125
+ 32
126
+ 00:02:18,000 --> 00:02:20,000
127
+ Going to execute again.
128
+
129
+ 33
130
+ 00:02:28,000 --> 00:02:34,000
131
+ And here, textbooks, and then it worked on that radio button.
132
+
133
+ 34
134
+ 00:02:35,000 --> 00:02:39,000
135
+ So we have worked on the radio button now.
136
+
137
+ 35
138
+ 00:02:39,000 --> 00:02:43,000
139
+ Next step is to work on the checkbox, working on the checkbox.
140
+
141
+ 36
142
+ 00:02:43,000 --> 00:02:50,000
143
+ It's seem like here we just need to click on that.
144
+
145
+ 37
146
+ 00:02:50,000 --> 00:02:55,000
147
+ So again, we need to look at element and perform click operation on that for locating element.
148
+
149
+ 38
150
+ 00:02:55,000 --> 00:02:58,000
151
+ I'm just going to the checkbox Inspect.
152
+
153
+ 39
154
+ 00:03:02,000 --> 00:03:09,000
155
+ So here, input and name is equal to terms I can use name or I can generate exports, I'm just writing
156
+
157
+ 40
158
+ 00:03:09,000 --> 00:03:15,000
159
+ like now, this time I'm going to work on.
160
+
161
+ 41
162
+ 00:03:17,000 --> 00:03:25,000
163
+ Working on Check Box again, driver dot, find element by name or expert.
164
+
165
+ 42
166
+ 00:03:25,000 --> 00:03:29,000
167
+ You can use anything, I'm just going to use name this time.
168
+
169
+ 43
170
+ 00:03:29,000 --> 00:03:31,000
171
+ And the name he is dums.
172
+
173
+ 44
174
+ 00:03:32,000 --> 00:03:37,000
175
+ So why an element by by name?
176
+
177
+ 45
178
+ 00:03:37,000 --> 00:03:38,000
179
+ And that's the name.
180
+
181
+ 46
182
+ 00:03:38,000 --> 00:03:39,000
183
+ Andy, what do you want to do?
184
+
185
+ 47
186
+ 00:03:39,000 --> 00:03:40,000
187
+ I just want to click on that.
188
+
189
+ 48
190
+ 00:03:42,000 --> 00:03:48,000
191
+ Then so this time it will click on the check box as well.
192
+
193
+ 49
194
+ 00:03:56,000 --> 00:04:03,000
195
+ Here first radio button at the bottom, if you take it over here, that's a checkbox.
196
+
197
+ 50
198
+ 00:04:04,000 --> 00:04:08,000
199
+ Now I want to click on the sign up button, but as we click on the sign up button, it will show this
200
+
201
+ 51
202
+ 00:04:08,000 --> 00:04:10,000
203
+ message because that's a mandatory fill.
204
+
205
+ 52
206
+ 00:04:11,000 --> 00:04:16,000
207
+ So I just click on the sign up button and if we get this message means yes, it is able to click on
208
+
209
+ 53
210
+ 00:04:16,000 --> 00:04:16,000
211
+ the sign up button.
212
+
213
+ 54
214
+ 00:04:17,000 --> 00:04:20,000
215
+ So I'm just clicking on button, so I'm just going to work on the button.
216
+
217
+ 55
218
+ 00:04:21,000 --> 00:04:25,000
219
+ So work on button and the approach is simple.
220
+
221
+ 56
222
+ 00:04:25,000 --> 00:04:27,000
223
+ Just look at that element and click on it.
224
+
225
+ 57
226
+ 00:04:27,000 --> 00:04:29,000
227
+ So again, I'm just coming here.
228
+
229
+ 58
230
+ 00:04:33,000 --> 00:04:39,000
231
+ And value is equal to sign up or Typekit equal to summit so I can use any element locator, I'm just
232
+
233
+ 59
234
+ 00:04:39,000 --> 00:04:45,000
235
+ going for the spot driver dot find element by expert input.
236
+
237
+ 60
238
+ 00:04:46,000 --> 00:04:52,000
239
+ And I'm saying at the right type is equal to submit, so you must be aware about how we can go for these
240
+
241
+ 61
242
+ 00:04:52,000 --> 00:04:53,000
243
+ elemental locators.
244
+
245
+ 62
246
+ 00:04:53,000 --> 00:04:59,000
247
+ And for that, you can check out other videos where we're explaining elemental creators.
248
+
249
+ 63
250
+ 00:05:00,000 --> 00:05:01,000
251
+ So I just want to go for the click on this.
252
+
253
+ 64
254
+ 00:05:02,000 --> 00:05:04,000
255
+ Now I'm just running it.
256
+
257
+ 65
258
+ 00:05:10,000 --> 00:05:13,000
259
+ Brother started maximize.
260
+
261
+ 66
262
+ 00:05:17,000 --> 00:05:19,000
263
+ You are entered maximize.
264
+
265
+ 67
266
+ 00:05:24,000 --> 00:05:30,000
267
+ Then doing the task, and if you check it, we are getting this message means it, click on the sign
268
+
269
+ 68
270
+ 00:05:30,000 --> 00:05:30,000
271
+ up button.
272
+
273
+ 69
274
+ 00:05:31,000 --> 00:05:38,000
275
+ But because all the mandatory fields are not set, it is not able to sign up now at the end, I can
276
+
277
+ 70
278
+ 00:05:38,000 --> 00:05:39,000
279
+ go to this link.
280
+
281
+ 71
282
+ 00:05:40,000 --> 00:05:42,000
283
+ So here we have seen if I go.
284
+
285
+ 72
286
+ 00:05:43,000 --> 00:05:47,000
287
+ So here we have seen how we can work on work on textbooks, how we can work on the radio button, how
288
+
289
+ 73
290
+ 00:05:47,000 --> 00:05:50,000
291
+ we can work on checkbox also.
292
+
293
+ 74
294
+ 00:05:50,000 --> 00:05:53,000
295
+ So we have seen how we can work on the button.
296
+
297
+ 75
298
+ 00:05:56,000 --> 00:05:59,000
299
+ Now, I'll show you how we can work on links.
300
+
301
+ 76
302
+ 00:05:59,000 --> 00:06:06,000
303
+ So again, link up similar to button, radio button or checkbox, we just need to click on that something.
304
+
305
+ 77
306
+ 00:06:06,000 --> 00:06:07,000
307
+ Click on Link.
308
+
309
+ 78
310
+ 00:06:08,000 --> 00:06:10,000
311
+ I'll show you that will be the same approach.
312
+
313
+ 79
314
+ 00:06:10,000 --> 00:06:13,000
315
+ I'm just coming here, and that's the link.
316
+
317
+ 80
318
+ 00:06:13,000 --> 00:06:15,000
319
+ I can check it, ex-chairman.
320
+
321
+ 81
322
+ 00:06:17,000 --> 00:06:17,000
323
+ It's a.
324
+
325
+ 82
326
+ 00:06:19,000 --> 00:06:23,000
327
+ There's a type of element it means anger that is used for link.
328
+
329
+ 83
330
+ 00:06:23,000 --> 00:06:26,000
331
+ So we can look it linked by its text.
332
+
333
+ 84
334
+ 00:06:26,000 --> 00:06:35,000
335
+ So what I'm doing just here, I'm just doing here, like work on.
336
+
337
+ 85
338
+ 00:06:38,000 --> 00:06:39,000
339
+ Link.
340
+
341
+ 86
342
+ 00:06:39,000 --> 00:06:48,000
343
+ So I'm writing like Driver Dot, find element by link text and the text and what you want to do.
344
+
345
+ 87
346
+ 00:06:48,000 --> 00:06:49,000
347
+ I just want to click on it.
348
+
349
+ 88
350
+ 00:06:50,000 --> 00:06:53,000
351
+ So now I'm executing one more time.
352
+
353
+ 89
354
+ 00:06:57,000 --> 00:07:02,000
355
+ And this time you will notice it will click on Link as well.
356
+
357
+ 90
358
+ 00:07:08,000 --> 00:07:16,000
359
+ Rather, started you maximize doing the task on the text box, and if you check it here, it clicks
360
+
361
+ 91
362
+ 00:07:16,000 --> 00:07:19,000
363
+ on the link as well as we click.
364
+
365
+ 92
366
+ 00:07:19,000 --> 00:07:21,000
367
+ It is moving just as no windows open.
368
+
369
+ 93
370
+ 00:07:22,000 --> 00:07:23,000
371
+ It is just moving up.
372
+
373
+ 94
374
+ 00:07:23,000 --> 00:07:25,000
375
+ So if you check it out with him, you're not getting any other means.
376
+
377
+ 95
378
+ 00:07:25,000 --> 00:07:27,000
379
+ It is working on the link as well.
380
+
381
+ 96
382
+ 00:07:28,000 --> 00:07:32,000
383
+ And at the end, so we have you seen work on different type of element at the end.
384
+
385
+ 97
386
+ 00:07:33,000 --> 00:07:35,000
387
+ I want to close my browser.
388
+
389
+ 98
390
+ 00:07:36,000 --> 00:07:37,000
391
+ So close.
392
+
393
+ 99
394
+ 00:07:39,000 --> 00:07:50,000
395
+ Browser, I'm just coming here, but I work dot growth so that the N26 will be starting browser doing
396
+
397
+ 100
398
+ 00:07:50,000 --> 00:07:51,000
399
+ the task on the different elements.
400
+
401
+ 101
402
+ 00:07:51,000 --> 00:07:55,000
403
+ And at the end, once the test gets is over, I'll just close browser.
404
+
405
+ 102
406
+ 00:08:02,000 --> 00:08:06,000
407
+ So here, working on the text box, then link and then close.
408
+
409
+ 103
410
+ 00:08:07,000 --> 00:08:15,000
411
+ So that's my N26, where we have seen how we can work on different type of elements using selenium and
412
+
413
+ 104
414
+ 00:08:15,000 --> 00:08:21,000
415
+ python to first of all, we have to set up selenium and then we can work on different type of elements.
416
+
417
+ 105
418
+ 00:08:22,000 --> 00:08:23,000
419
+ That's all we have.
420
+
421
+ 106
422
+ 00:08:23,000 --> 00:08:24,000
423
+ Thanks for watching this video.
424
+
32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/005 Work on Dropdown or List Select values from list of Dropdown_en.srt ADDED
@@ -0,0 +1,384 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:01,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:08,000
7
+ In this session, I'll show you how we can work on problem or list.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:13,000
11
+ First of all, we need to understand the difference between drop.
12
+
13
+ 4
14
+ 00:00:13,000 --> 00:00:17,000
15
+ Don't invest in drop, don't we can select only one value.
16
+
17
+ 5
18
+ 00:00:17,000 --> 00:00:20,000
19
+ And in this, we can select more than one values.
20
+
21
+ 6
22
+ 00:00:21,000 --> 00:00:31,000
23
+ So if I show you my application and first of all, I'm just going to double down if I go and see the
24
+
25
+ 7
26
+ 00:00:31,000 --> 00:00:32,000
27
+ estimate of that.
28
+
29
+ 8
30
+ 00:00:33,000 --> 00:00:40,000
31
+ So if that is started with the select means, the tag is selected by that we can identify yes, it's
32
+
33
+ 9
34
+ 00:00:40,000 --> 00:00:43,000
35
+ a dropdown or list if it allowed to select only one data.
36
+
37
+ 10
38
+ 00:00:44,000 --> 00:00:47,000
39
+ It will be a dropdown if it's allowed to select multiple data.
40
+
41
+ 11
42
+ 00:00:48,000 --> 00:00:50,000
43
+ It will be a list, but as of now it allowed select only one data.
44
+
45
+ 12
46
+ 00:00:51,000 --> 00:00:52,000
47
+ So it's a dropdown.
48
+
49
+ 13
50
+ 00:00:53,000 --> 00:00:58,000
51
+ Now I want to select value from the dropdown, so I'm just moving to my desk first.
52
+
53
+ 14
54
+ 00:00:59,000 --> 00:01:04,000
55
+ And here we need to import, import, select class.
56
+
57
+ 15
58
+ 00:01:04,000 --> 00:01:17,000
59
+ So I'm reading like from Selenium Web Driver Dot Support Dot Select from this module, I want to import
60
+
61
+ 16
62
+ 00:01:18,000 --> 00:01:20,000
63
+ select class.
64
+
65
+ 17
66
+ 00:01:20,000 --> 00:01:26,000
67
+ So whenever you are working on dropdown or list, first of all, we need to import this select class.
68
+
69
+ 18
70
+ 00:01:27,000 --> 00:01:28,000
71
+ No hand.
72
+
73
+ 19
74
+ 00:01:28,000 --> 00:01:34,000
75
+ If I remember first, we are working on the text box, then radio button and here I want to work on
76
+
77
+ 20
78
+ 00:01:34,000 --> 00:01:35,000
79
+ the dropdown.
80
+
81
+ 21
82
+ 00:01:35,000 --> 00:01:40,000
83
+ So work on drop down.
84
+
85
+ 22
86
+ 00:01:42,000 --> 00:01:47,000
87
+ Whenever you want to work on the dropdown, we need to create object or to select class, or I'm creating
88
+
89
+ 23
90
+ 00:01:47,000 --> 00:01:51,000
91
+ objects like Object Select.
92
+
93
+ 24
94
+ 00:01:52,000 --> 00:01:56,000
95
+ But the point is which dropdown you want to use.
96
+
97
+ 25
98
+ 00:01:57,000 --> 00:02:02,000
99
+ Because here if you notice we have multiple dropdown, but I want to use this dropdown to, we have
100
+
101
+ 26
102
+ 00:02:02,000 --> 00:02:02,000
103
+ to look at it.
104
+
105
+ 27
106
+ 00:02:03,000 --> 00:02:06,000
107
+ I'm just going to attach DML.
108
+
109
+ 28
110
+ 00:02:07,000 --> 00:02:19,000
111
+ So if we check it here, name is equal to six so I can use that I can located by Driver Dot, find element
112
+
113
+ 29
114
+ 00:02:19,000 --> 00:02:21,000
115
+ by name, and that's my name.
116
+
117
+ 30
118
+ 00:02:22,000 --> 00:02:25,000
119
+ So I'm locating drop down by using this element locator.
120
+
121
+ 31
122
+ 00:02:25,000 --> 00:02:30,000
123
+ So now we have created object of the select class no object.
124
+
125
+ 32
126
+ 00:02:30,000 --> 00:02:34,000
127
+ We have three options by which we can select any value.
128
+
129
+ 33
130
+ 00:02:35,000 --> 00:02:38,000
131
+ First of all, I'm going to select by the index.
132
+
133
+ 34
134
+ 00:02:38,000 --> 00:02:44,000
135
+ So if you notice I'm just coming to the application, I'm just closing this and refreshing my page.
136
+
137
+ 35
138
+ 00:02:45,000 --> 00:02:49,000
139
+ So whenever this page loads, we're not getting any value selected.
140
+
141
+ 36
142
+ 00:02:49,000 --> 00:02:52,000
143
+ So I want to select the second value, which is mail.
144
+
145
+ 37
146
+ 00:02:53,000 --> 00:02:59,000
147
+ So what we think we can select and evaluate index an index always start from zero zero indexed.
148
+
149
+ 38
150
+ 00:02:59,000 --> 00:03:02,000
151
+ We have Jews gender on one index.
152
+
153
+ 39
154
+ 00:03:02,000 --> 00:03:15,000
155
+ We have M. So I'm saying I want to select value by select by index, and my index is one.
156
+
157
+ 40
158
+ 00:03:15,000 --> 00:03:17,000
159
+ I'm just commenting this right.
160
+
161
+ 41
162
+ 00:03:17,000 --> 00:03:17,000
163
+ We're not close.
164
+
165
+ 42
166
+ 00:03:18,000 --> 00:03:19,000
167
+ I don't want to close browser.
168
+
169
+ 43
170
+ 00:03:20,000 --> 00:03:25,000
171
+ And also I'm just commenting this submit button.
172
+
173
+ 44
174
+ 00:03:26,000 --> 00:03:28,000
175
+ So now we'll come and pick these two lines.
176
+
177
+ 45
178
+ 00:03:30,000 --> 00:03:31,000
179
+ I'm just executing this.
180
+
181
+ 46
182
+ 00:03:34,000 --> 00:03:35,000
183
+ Browsers started.
184
+
185
+ 47
186
+ 00:03:40,000 --> 00:03:41,000
187
+ And dirty little.
188
+
189
+ 48
190
+ 00:03:44,000 --> 00:03:45,000
191
+ Maximized.
192
+
193
+ 49
194
+ 00:03:47,000 --> 00:03:57,000
195
+ If you check it here, mail is selected, so I want to show like this time I'm passing my indexes to
196
+
197
+ 50
198
+ 00:03:57,000 --> 00:03:59,000
199
+ so it should select female.
200
+
201
+ 51
202
+ 00:04:00,000 --> 00:04:02,000
203
+ I'm just executing one more time.
204
+
205
+ 52
206
+ 00:04:03,000 --> 00:04:09,000
207
+ So yeah, so we have seen first approach to select any value by index.
208
+
209
+ 53
210
+ 00:04:15,000 --> 00:04:17,000
211
+ Here, if you notice female females selected.
212
+
213
+ 54
214
+ 00:04:19,000 --> 00:04:23,000
215
+ So first approach to select any value bite index.
216
+
217
+ 55
218
+ 00:04:25,000 --> 00:04:27,000
219
+ I'm just commenting it out.
220
+
221
+ 56
222
+ 00:04:30,000 --> 00:04:32,000
223
+ So that the first approach?
224
+
225
+ 57
226
+ 00:04:33,000 --> 00:04:38,000
227
+ No, I'm going to tell you second approach, I'm going to select bite value.
228
+
229
+ 58
230
+ 00:04:38,000 --> 00:04:39,000
231
+ So what do you mean by the select by value?
232
+
233
+ 59
234
+ 00:04:41,000 --> 00:04:44,000
235
+ I'm just coming here and if you see the estimable.
236
+
237
+ 60
238
+ 00:04:48,000 --> 00:04:54,000
239
+ Here that Jamal, I just expand this, and for each option, we have a value.
240
+
241
+ 61
242
+ 00:04:54,000 --> 00:05:05,000
243
+ So if I want to select female relatives too, so I'm just coming here, o'bagy select by value and my
244
+
245
+ 62
246
+ 00:05:05,000 --> 00:05:11,000
247
+ value is to one thing that we notice whenever we are going for the index, it's a numeric.
248
+
249
+ 63
250
+ 00:05:11,000 --> 00:05:16,000
251
+ But whenever we are going for value, it's string, so we need to write in double quotes.
252
+
253
+ 64
254
+ 00:05:17,000 --> 00:05:18,000
255
+ OK.
256
+
257
+ 65
258
+ 00:05:18,000 --> 00:05:24,000
259
+ I'm just running it again, so it will start a new browser and it should select female because value
260
+
261
+ 66
262
+ 00:05:24,000 --> 00:05:25,000
263
+ of the female is to.
264
+
265
+ 67
266
+ 00:05:27,000 --> 00:05:30,000
267
+ So there's a second approach to select data in the dropdown.
268
+
269
+ 68
270
+ 00:05:32,000 --> 00:05:33,000
271
+ I'm just coming here.
272
+
273
+ 69
274
+ 00:05:36,000 --> 00:05:39,000
275
+ And that is second, which is selected.
276
+
277
+ 70
278
+ 00:05:41,000 --> 00:05:43,000
279
+ So now we have seen two approaches.
280
+
281
+ 71
282
+ 00:05:43,000 --> 00:05:48,000
283
+ Third approach could be we can select any value by the data.
284
+
285
+ 72
286
+ 00:05:48,000 --> 00:05:54,000
287
+ So here, if you want to select M. so we can select by text, which is male.
288
+
289
+ 73
290
+ 00:05:54,000 --> 00:05:56,000
291
+ So what are the visible text over here?
292
+
293
+ 74
294
+ 00:05:56,000 --> 00:05:57,000
295
+ So I'm going.
296
+
297
+ 75
298
+ 00:05:58,000 --> 00:06:00,000
299
+ And that's the second approach we have seen.
300
+
301
+ 76
302
+ 00:06:01,000 --> 00:06:07,000
303
+ I'm coming to the third approach object select by visible text.
304
+
305
+ 77
306
+ 00:06:07,000 --> 00:06:12,000
307
+ So we have seen three approaches index value, invisible text and visible text.
308
+
309
+ 78
310
+ 00:06:12,000 --> 00:06:14,000
311
+ Is this time I want to select male.
312
+
313
+ 79
314
+ 00:06:15,000 --> 00:06:24,000
315
+ OK, I'm just going to execute this, and this time it should select a male in that dropdown.
316
+
317
+ 80
318
+ 00:06:30,000 --> 00:06:39,000
319
+ As it is done here, if you notice that is male, so we have seen how we can work on drop down and we
320
+
321
+ 81
322
+ 00:06:39,000 --> 00:06:41,000
323
+ have the three approaches for that.
324
+
325
+ 82
326
+ 00:06:41,000 --> 00:06:47,000
327
+ One is in next, either one is value and third one is visible text.
328
+
329
+ 83
330
+ 00:06:50,000 --> 00:06:55,000
331
+ Now, if you want to, you can use our other dropdowns like you can select country, you can select
332
+
333
+ 84
334
+ 00:06:55,000 --> 00:07:00,000
335
+ state, you can select city, we can apply this approach on the other dropdown as well.
336
+
337
+ 85
338
+ 00:07:02,000 --> 00:07:05,000
339
+ As of now, we have seen we can select value in the problem.
340
+
341
+ 86
342
+ 00:07:06,000 --> 00:07:13,000
343
+ Same approach can be used when we are working on the list, but we have some more options like these
344
+
345
+ 87
346
+ 00:07:13,000 --> 00:07:19,000
347
+ select value so we can go for this liquid index, this by value and this liquid visible text.
348
+
349
+ 88
350
+ 00:07:19,000 --> 00:07:24,000
351
+ And also, we had the option of these select all but these options can be used when you are working
352
+
353
+ 89
354
+ 00:07:24,000 --> 00:07:24,000
355
+ on the list.
356
+
357
+ 90
358
+ 00:07:25,000 --> 00:07:29,000
359
+ These options are not going to work on dropdown, but when we are selecting.
360
+
361
+ 91
362
+ 00:07:31,000 --> 00:07:37,000
363
+ As we know in, we can select more than one values, so I think an example we have selected for values
364
+
365
+ 92
366
+ 00:07:38,000 --> 00:07:44,000
367
+ and out of four, I want to select one so I can go for the district by value index or visible text or
368
+
369
+ 93
370
+ 00:07:44,000 --> 00:07:49,000
371
+ if I go for this list all so it will remove all the selected items.
372
+
373
+ 94
374
+ 00:07:49,000 --> 00:07:54,000
375
+ So that said, be selected, but we can use this list when we are working on the list only.
376
+
377
+ 95
378
+ 00:07:56,000 --> 00:08:01,000
379
+ So here we have seen how we can work on dropdown or list.
380
+
381
+ 96
382
+ 00:08:02,000 --> 00:08:06,000
383
+ That's all we have for the session tanks watching this video.
384
+
32 - Let's Start Writing Test Case in Selenium WebDriver Must for Everyone/006 Execute Test Case on Firefox Browser (Cross Browser Testing)_en.srt ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:07,000
7
+ So previously, we have seen how we can execute our test case on the Chrome browser.
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:16,000
11
+ This time, I'll show you how we can execute my selenium with Python test kits on Firefox browser.
12
+
13
+ 4
14
+ 00:00:17,000 --> 00:00:23,000
15
+ First of all, I'm going to the test case, and here we set both of the Chrome browser.
16
+
17
+ 5
18
+ 00:00:24,000 --> 00:00:30,000
19
+ You've seen the exact Chrome driver, which is behaving as an interface between the test kits and browser,
20
+
21
+ 6
22
+ 00:00:31,000 --> 00:00:34,000
23
+ and hit also your trading object of the Chrome class.
24
+
25
+ 7
26
+ 00:00:34,000 --> 00:00:40,000
27
+ I want to execute on the Firefox, so I just copied this and going to create one more test kits.
28
+
29
+ 8
30
+ 00:00:40,000 --> 00:00:43,000
31
+ This time I'm just giving the name like Firefox.
32
+
33
+ 9
34
+ 00:00:44,000 --> 00:00:46,000
35
+ I'll make changes in this test gizmo.
36
+
37
+ 10
38
+ 00:00:47,000 --> 00:00:50,000
39
+ So first of all, on place of Chrome, we need to import Firefox.
40
+
41
+ 11
42
+ 00:00:50,000 --> 00:00:55,000
43
+ I'm writing like Firefox now here.
44
+
45
+ 12
46
+ 00:00:55,000 --> 00:01:04,000
47
+ Also, we need to get Firefox and this driver part before we are giving this driver part, which is
48
+
49
+ 13
50
+ 00:01:04,000 --> 00:01:05,000
51
+ the Chrome browser.
52
+
53
+ 14
54
+ 00:01:05,000 --> 00:01:08,000
55
+ But I need to give part of Firefox Driver.
56
+
57
+ 15
58
+ 00:01:08,000 --> 00:01:10,000
59
+ So I'm just moving to the browser.
60
+
61
+ 16
62
+ 00:01:10,000 --> 00:01:18,000
63
+ I'm going to the Google and download this driver name of Firefox browser is Gecko Driver, something
64
+
65
+ 17
66
+ 00:01:19,000 --> 00:01:29,000
67
+ Gecko driver for Firefox, and it shows that the Gecko driver location.
68
+
69
+ 18
70
+ 00:01:32,000 --> 00:01:35,000
71
+ I'm going to download it for Windows 64bit.
72
+
73
+ 19
74
+ 00:01:39,000 --> 00:01:42,000
75
+ Let it download it will be JIP file.
76
+
77
+ 20
78
+ 00:01:42,000 --> 00:01:45,000
79
+ We need to ingest that and then we need to give.
80
+
81
+ 21
82
+ 00:01:45,000 --> 00:01:47,000
83
+ But here on this place.
84
+
85
+ 22
86
+ 00:01:48,000 --> 00:01:52,000
87
+ So we have seen this case would be seen only just for the Firefox.
88
+
89
+ 23
90
+ 00:01:53,000 --> 00:01:56,000
91
+ We just need to import Firefox class plus.
92
+
93
+ 24
94
+ 00:01:56,000 --> 00:02:04,000
95
+ Then we need to create object of the Firefox and give both of the Firefox Eggsy, which is a gecko driver
96
+
97
+ 25
98
+ 00:02:04,000 --> 00:02:05,000
99
+ that is downloaded.
100
+
101
+ 26
102
+ 00:02:06,000 --> 00:02:08,000
103
+ I just moved to the location.
104
+
105
+ 27
106
+ 00:02:08,000 --> 00:02:13,000
107
+ Unzip that and get that and moved to that folder, so just copy this address.
108
+
109
+ 28
110
+ 00:02:15,000 --> 00:02:18,000
111
+ Now going to test gas and.
112
+
113
+ 29
114
+ 00:02:19,000 --> 00:02:22,000
115
+ Now I'm giving the part of this decoder out not easy.
116
+
117
+ 30
118
+ 00:02:23,000 --> 00:02:29,000
119
+ And we know that to give, but it feels backward, fresh, used, double backwards slash.
120
+
121
+ 31
122
+ 00:02:34,000 --> 00:02:35,000
123
+ Just save it.
124
+
125
+ 32
126
+ 00:02:36,000 --> 00:02:40,000
127
+ Rest of the things are seem for execution, we know how we can go forward.
128
+
129
+ 33
130
+ 00:02:40,000 --> 00:02:42,000
131
+ Just right click event.
132
+
133
+ 34
134
+ 00:02:42,000 --> 00:02:47,000
135
+ First, death, just five folks as we execute.
136
+
137
+ 35
138
+ 00:02:47,000 --> 00:02:56,000
139
+ This time it should trigger Firefox browser and do all their duties on that browser is triggered.
140
+
141
+ 36
142
+ 00:02:58,000 --> 00:03:04,000
143
+ It enters the ear and then it's going to perform different tasks.
144
+
145
+ 37
146
+ 00:03:04,000 --> 00:03:08,000
147
+ If you notice it is entering data into the different text boxes.
148
+
149
+ 38
150
+ 00:03:11,000 --> 00:03:17,000
151
+ So here we have seen how we can execute the same test case, which you executed before on the Chrome
152
+
153
+ 39
154
+ 00:03:17,000 --> 00:03:17,000
155
+ browser.
156
+
157
+ 40
158
+ 00:03:17,000 --> 00:03:23,000
159
+ Now we are executing on the Firefox browser, so that's a minor changes we need to do on the different
160
+
161
+ 41
162
+ 00:03:23,000 --> 00:03:23,000
163
+ browsers.
164
+
165
+ 42
166
+ 00:03:24,000 --> 00:03:28,000
167
+ Best guess God would be in this session.
168
+
169
+ 43
170
+ 00:03:28,000 --> 00:03:32,000
171
+ We have seen how we can execute best gift on the Firefox browser.
172
+
173
+ 44
174
+ 00:03:33,000 --> 00:03:34,000
175
+ That's all we have for the session.
176
+
177
+ 45
178
+ 00:03:35,000 --> 00:03:36,000
179
+ Thanks for watching this video.
180
+
33 - Keyboard & Mouse Operations ActionChains Class/001 Perform Keyboard Operations Press Single Key, Multiple Keys_en.srt ADDED
@@ -0,0 +1,556 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:06,000
3
+ Welcome to the testing world in this session, I'm going to cover one of the most important flaws with
4
+
5
+ 2
6
+ 00:00:06,000 --> 00:00:08,000
7
+ the name action genes.
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:16,000
11
+ If you are aware about selenium with Java, we have the same class with the name actions over there.
12
+
13
+ 4
14
+ 00:00:17,000 --> 00:00:20,000
15
+ So first of all, we need to understand what the use of action genes.
16
+
17
+ 5
18
+ 00:00:21,000 --> 00:00:29,000
19
+ If you want to perform any keyboard action or mouse action like I'm working on my application, I just
20
+
21
+ 6
22
+ 00:00:29,000 --> 00:00:33,000
23
+ I just open my application and here I enter some user name.
24
+
25
+ 7
26
+ 00:00:33,000 --> 00:00:38,000
27
+ In many cases, you will notice after entering the username, I press tab.
28
+
29
+ 8
30
+ 00:00:38,000 --> 00:00:42,000
31
+ So the tab, which you are pressing, is a keyboard operation.
32
+
33
+ 9
34
+ 00:00:43,000 --> 00:00:48,000
35
+ So if you are using a keyboard over here, I was just putting some email over here.
36
+
37
+ 10
38
+ 00:00:48,000 --> 00:00:54,000
39
+ After that, you want to perform, control a control for select all.
40
+
41
+ 11
42
+ 00:00:54,000 --> 00:00:56,000
43
+ This is a gimmick keyboard operation.
44
+
45
+ 12
46
+ 00:00:57,000 --> 00:01:04,000
47
+ So wherever you want to perform keyboard operation, we can use the class with any action genes in the
48
+
49
+ 13
50
+ 00:01:04,000 --> 00:01:04,000
51
+ same way.
52
+
53
+ 14
54
+ 00:01:05,000 --> 00:01:11,000
55
+ We are going to use mouse on many places, like if you want to double click anywhere, I want to double
56
+
57
+ 15
58
+ 00:01:11,000 --> 00:01:12,000
59
+ click on this button.
60
+
61
+ 16
62
+ 00:01:12,000 --> 00:01:14,000
63
+ I won't right click on this button.
64
+
65
+ 17
66
+ 00:01:15,000 --> 00:01:20,000
67
+ Or in many cases, you will notice I'll show you one more example.
68
+
69
+ 18
70
+ 00:01:23,000 --> 00:01:30,000
71
+ In many cases, you will find menu are open by most over, it's not opening by click.
72
+
73
+ 19
74
+ 00:01:30,000 --> 00:01:36,000
75
+ I'm just taking my mouth over there and as I take Mosul over there, it automatically open.
76
+
77
+ 20
78
+ 00:01:36,000 --> 00:01:38,000
79
+ That is called mouth horror.
80
+
81
+ 21
82
+ 00:01:38,000 --> 00:01:39,000
83
+ Here you are using mouth.
84
+
85
+ 22
86
+ 00:01:40,000 --> 00:01:42,000
87
+ I just right click double click or moving my mouth.
88
+
89
+ 23
90
+ 00:01:42,000 --> 00:01:45,000
91
+ So that kind of operations are called mouse operation.
92
+
93
+ 24
94
+ 00:01:46,000 --> 00:01:53,000
95
+ So if you want to perform keyboard operation or mouse operation in selenium, we are going to use action
96
+
97
+ 25
98
+ 00:01:53,000 --> 00:01:56,000
99
+ genes, glass hidden staining with Python.
100
+
101
+ 26
102
+ 00:01:57,000 --> 00:01:59,000
103
+ So I'll show you how we can use that.
104
+
105
+ 27
106
+ 00:01:59,000 --> 00:02:06,000
107
+ First of all, I'm moving to my project that I have created in the previous session, and that's a project,
108
+
109
+ 28
110
+ 00:02:06,000 --> 00:02:08,000
111
+ and I'm going to create one more file here.
112
+
113
+ 29
114
+ 00:02:08,000 --> 00:02:11,000
115
+ I'm seeing keyboard
116
+
117
+ 30
118
+ 00:02:13,000 --> 00:02:14,000
119
+ operations.
120
+
121
+ 31
122
+ 00:02:15,000 --> 00:02:15,000
123
+ Well, so what?
124
+
125
+ 32
126
+ 00:02:15,000 --> 00:02:16,000
127
+ I'll show you keyboard operations.
128
+
129
+ 33
130
+ 00:02:16,000 --> 00:02:23,000
131
+ A few lines would be common, like, first of all, from Selenium Dot Web Driver.
132
+
133
+ 34
134
+ 00:02:27,000 --> 00:02:34,000
135
+ Import Graham, that the line one, No.
136
+
137
+ 35
138
+ 00:02:36,000 --> 00:02:45,000
139
+ I want to create object of the current drivers, so driver is my object name and the chrome is the class.
140
+
141
+ 36
142
+ 00:02:46,000 --> 00:02:48,000
143
+ And we know that we need to set the executable path.
144
+
145
+ 37
146
+ 00:02:48,000 --> 00:02:55,000
147
+ Part of the file so you must have covered in the previous session, that was the part I was just copied.
148
+
149
+ 38
150
+ 00:02:55,000 --> 00:02:58,000
151
+ That is a part of me.
152
+
153
+ 39
154
+ 00:02:59,000 --> 00:03:00,000
155
+ Chrome private executable file.
156
+
157
+ 40
158
+ 00:03:01,000 --> 00:03:04,000
159
+ And here we need to start like executable path is equal to path.
160
+
161
+ 41
162
+ 00:03:05,000 --> 00:03:07,000
163
+ As this line will execute, it will start browser.
164
+
165
+ 42
166
+ 00:03:07,000 --> 00:03:10,000
167
+ I want to enter you URLs or driver dot.
168
+
169
+ 43
170
+ 00:03:11,000 --> 00:03:22,000
171
+ Get an entity b w w w the testing word dot com forward slash testing.
172
+
173
+ 44
174
+ 00:03:22,000 --> 00:03:23,000
175
+ That's my application.
176
+
177
+ 45
178
+ 00:03:23,000 --> 00:03:26,000
179
+ So application will be open once the application will be open.
180
+
181
+ 46
182
+ 00:03:29,000 --> 00:03:30,000
183
+ I'm just moving to the application.
184
+
185
+ 47
186
+ 00:03:31,000 --> 00:03:34,000
187
+ So the application will be open was the application would be open.
188
+
189
+ 48
190
+ 00:03:35,000 --> 00:03:39,000
191
+ I want to enter username, then I want to press tab.
192
+
193
+ 49
194
+ 00:03:39,000 --> 00:03:41,000
195
+ So first of all, I want to enter username.
196
+
197
+ 50
198
+ 00:03:42,000 --> 00:03:43,000
199
+ I want to look at this element.
200
+
201
+ 51
202
+ 00:03:44,000 --> 00:03:46,000
203
+ So right click and inspect.
204
+
205
+ 52
206
+ 00:03:48,000 --> 00:03:54,000
207
+ He had name is equal to this, I just copied this drive word dot find.
208
+
209
+ 53
210
+ 00:03:57,000 --> 00:03:59,000
211
+ Element by name.
212
+
213
+ 54
214
+ 00:04:01,000 --> 00:04:02,000
215
+ And that's my name.
216
+
217
+ 55
218
+ 00:04:03,000 --> 00:04:06,000
219
+ And what I want to do, I just want to perform send keys.
220
+
221
+ 56
222
+ 00:04:07,000 --> 00:04:08,000
223
+ Hello.
224
+
225
+ 57
226
+ 00:04:08,000 --> 00:04:10,000
227
+ So that is username, which will be entered.
228
+
229
+ 58
230
+ 00:04:11,000 --> 00:04:15,000
231
+ Now I want to make it tab so that my control will switch to the password box.
232
+
233
+ 59
234
+ 00:04:17,000 --> 00:04:19,000
235
+ I won't perform some keyboard operations.
236
+
237
+ 60
238
+ 00:04:19,000 --> 00:04:21,000
239
+ I won't use keys with my keyboard.
240
+
241
+ 61
242
+ 00:04:22,000 --> 00:04:25,000
243
+ For that case, we can use the class with the name action genes.
244
+
245
+ 62
246
+ 00:04:25,000 --> 00:04:27,000
247
+ But before that, we need to import it.
248
+
249
+ 63
250
+ 00:04:28,000 --> 00:04:29,000
251
+ So from selenium
252
+
253
+ 64
254
+ 00:04:32,000 --> 00:04:41,000
255
+ web driver Gallman Dot Action Genes, import action genes plus.
256
+
257
+ 65
258
+ 00:04:42,000 --> 00:04:46,000
259
+ So first of all, whenever you want to use Action Genes Class, we need to import that.
260
+
261
+ 66
262
+ 00:04:47,000 --> 00:04:49,000
263
+ And now we need to create object of that.
264
+
265
+ 67
266
+ 00:04:50,000 --> 00:04:54,000
267
+ So I'm creating like AZT action genes.
268
+
269
+ 68
270
+ 00:04:54,000 --> 00:05:00,000
271
+ But this action genes glass is going to work on the same browser, which is open, but driver object,
272
+
273
+ 69
274
+ 00:05:01,000 --> 00:05:02,000
275
+ which is open here.
276
+
277
+ 70
278
+ 00:05:03,000 --> 00:05:10,000
279
+ So we need to pass driver object here so that all the actions will be performed on the same browser,
280
+
281
+ 71
282
+ 00:05:10,000 --> 00:05:12,000
283
+ which is open by that by that driver object.
284
+
285
+ 72
286
+ 00:05:13,000 --> 00:05:15,000
287
+ Now what do you want to do?
288
+
289
+ 73
290
+ 00:05:15,000 --> 00:05:17,000
291
+ I want to press tab.
292
+
293
+ 74
294
+ 00:05:18,000 --> 00:05:22,000
295
+ So AZT dot send keys.
296
+
297
+ 75
298
+ 00:05:22,000 --> 00:05:28,000
299
+ OK, now our keyboard can be divided into the type of keys.
300
+
301
+ 76
302
+ 00:05:29,000 --> 00:05:37,000
303
+ One is called normal keys, which includes characters, alphabets and special keys.
304
+
305
+ 77
306
+ 00:05:38,000 --> 00:05:45,000
307
+ And Presto, the keys like tab caps, lock shift control all and based on page up home.
308
+
309
+ 78
310
+ 00:05:45,000 --> 00:05:46,000
311
+ These are called special keys.
312
+
313
+ 79
314
+ 00:05:47,000 --> 00:05:52,000
315
+ So if you want to use the special keys, we have to import a class with the name keys.
316
+
317
+ 80
318
+ 00:05:53,000 --> 00:06:03,000
319
+ So I'm coming here from Selenium Dot Web Driver Dot Gallman Dot Keys, Import Keys Plus.
320
+
321
+ 81
322
+ 00:06:05,000 --> 00:06:16,000
323
+ No hit, I want to perform, Deb, which is a specialty so I can go for is dot and What You Want to
324
+
325
+ 82
326
+ 00:06:16,000 --> 00:06:17,000
327
+ perform tab.
328
+
329
+ 83
330
+ 00:06:18,000 --> 00:06:23,000
331
+ And at the end, we want to we need to call performative means, whatever the case we have defined over
332
+
333
+ 84
334
+ 00:06:23,000 --> 00:06:25,000
335
+ here, just perform there.
336
+
337
+ 85
338
+ 00:06:26,000 --> 00:06:27,000
339
+ So I'm just leaving like here.
340
+
341
+ 86
342
+ 00:06:27,000 --> 00:06:31,000
343
+ Xenakis, Deb, I'm running here.
344
+
345
+ 87
346
+ 00:06:34,000 --> 00:06:35,000
347
+ So it should.
348
+
349
+ 88
350
+ 00:06:39,000 --> 00:06:44,000
351
+ Open browser, and you have to do things some task here.
352
+
353
+ 89
354
+ 00:06:44,000 --> 00:06:48,000
355
+ And if you notice control is shifted to the No.
356
+
357
+ 90
358
+ 00:06:49,000 --> 00:06:53,000
359
+ My control is on the e-mail, so that's a single cue you perform.
360
+
361
+ 91
362
+ 00:06:54,000 --> 00:06:56,000
363
+ Now I'll tell you the combination of keys.
364
+
365
+ 92
366
+ 00:06:56,000 --> 00:06:58,000
367
+ What do you mean by the combination of keys?
368
+
369
+ 93
370
+ 00:06:58,000 --> 00:06:58,000
371
+ OK.
372
+
373
+ 94
374
+ 00:06:59,000 --> 00:07:05,000
375
+ I'm going to enter some data here that I'm going to perform control e as you perform control e.
376
+
377
+ 95
378
+ 00:07:06,000 --> 00:07:12,000
379
+ That means it is going to select data of that particular box.
380
+
381
+ 96
382
+ 00:07:14,000 --> 00:07:20,000
383
+ Now I'm coming to perform this combination of keys to first of all, my control will be on the user
384
+
385
+ 97
386
+ 00:07:20,000 --> 00:07:26,000
387
+ box because we have located that and will perform that action and we have entered some data into that.
388
+
389
+ 98
390
+ 00:07:27,000 --> 00:07:30,000
391
+ Now I want to select data of that box.
392
+
393
+ 99
394
+ 00:07:31,000 --> 00:07:34,000
395
+ So my control is still on the user username because we have just entered that.
396
+
397
+ 100
398
+ 00:07:35,000 --> 00:07:36,000
399
+ Now go to the action plus.
400
+
401
+ 101
402
+ 00:07:36,000 --> 00:07:40,000
403
+ So now I will use this a city dot.
404
+
405
+ 102
406
+ 00:07:40,000 --> 00:07:42,000
407
+ OK, what action we want to perform?
408
+
409
+ 103
410
+ 00:07:43,000 --> 00:07:48,000
411
+ So if you notice, first of all, I want to press control and then E!
412
+
413
+ 104
414
+ 00:07:48,000 --> 00:07:53,000
415
+ To Control is used to select data from that text box something.
416
+
417
+ 105
418
+ 00:07:55,000 --> 00:07:57,000
419
+ He down.
420
+
421
+ 106
422
+ 00:07:58,000 --> 00:07:59,000
423
+ Vicky, you want to use.
424
+
425
+ 107
426
+ 00:07:59,000 --> 00:08:05,000
427
+ So here we have already imported these glass, so we are going to use keys.
428
+
429
+ 108
430
+ 00:08:05,000 --> 00:08:07,000
431
+ So I'm just coming here.
432
+
433
+ 109
434
+ 00:08:08,000 --> 00:08:10,000
435
+ He's not controlled.
436
+
437
+ 110
438
+ 00:08:11,000 --> 00:08:19,000
439
+ So first, I want to press my control key and just keep down means keep it down, then I'll go for.
440
+
441
+ 111
442
+ 00:08:20,000 --> 00:08:22,000
443
+ Send guys E!
444
+
445
+ 112
446
+ 00:08:23,000 --> 00:08:27,000
447
+ So control and E and at the end bottom.
448
+
449
+ 113
450
+ 00:08:29,000 --> 00:08:34,000
451
+ So it is control, and it means I'm selecting data and performed it.
452
+
453
+ 114
454
+ 00:08:34,000 --> 00:08:34,000
455
+ OK.
456
+
457
+ 115
458
+ 00:08:34,000 --> 00:08:40,000
459
+ What I want to do here, I'll just use import time.
460
+
461
+ 116
462
+ 00:08:40,000 --> 00:08:46,000
463
+ So I want to pause here for some time so that you can check it is working or not.
464
+
465
+ 117
466
+ 00:08:46,000 --> 00:08:47,000
467
+ So time dot sleep.
468
+
469
+ 118
470
+ 00:08:48,000 --> 00:08:49,000
471
+ How many seconds?
472
+
473
+ 119
474
+ 00:08:49,000 --> 00:08:52,000
475
+ I'm saying for 10 seconds, everything is done.
476
+
477
+ 120
478
+ 00:08:52,000 --> 00:08:55,000
479
+ I just run it.
480
+
481
+ 121
482
+ 00:08:58,000 --> 00:09:00,000
483
+ So to start, Rosa.
484
+
485
+ 122
486
+ 00:09:01,000 --> 00:09:07,000
487
+ And if you notice the data is selected over here, so it means, yes, this is working fine.
488
+
489
+ 123
490
+ 00:09:08,000 --> 00:09:12,000
491
+ So in the same way we can perform any combination of GIS.
492
+
493
+ 124
494
+ 00:09:12,000 --> 00:09:17,000
495
+ So whatever the combination you want to perform, like if I give an example, control or delete.
496
+
497
+ 125
498
+ 00:09:18,000 --> 00:09:25,000
499
+ So if you can see it will be like, first of all, I'm just going for the easy control, then I'm going
500
+
501
+ 126
502
+ 00:09:25,000 --> 00:09:25,000
503
+ for the key.
504
+
505
+ 127
506
+ 00:09:26,000 --> 00:09:29,000
507
+ And he's got all.
508
+
509
+ 128
510
+ 00:09:31,000 --> 00:09:33,000
511
+ And then Xenakis.
512
+
513
+ 129
514
+ 00:09:34,000 --> 00:09:40,000
515
+ And because here in two cases, in these two cases, I want to keep it down.
516
+
517
+ 130
518
+ 00:09:41,000 --> 00:09:46,000
519
+ Now I want to press delete Sookie's dot delete.
520
+
521
+ 131
522
+ 00:09:47,000 --> 00:09:48,000
523
+ So here it.
524
+
525
+ 132
526
+ 00:09:48,000 --> 00:09:51,000
527
+ In these two cases, I want to keep these two guys down.
528
+
529
+ 133
530
+ 00:09:51,000 --> 00:09:53,000
531
+ Only after that performed delete.
532
+
533
+ 134
534
+ 00:09:53,000 --> 00:09:55,000
535
+ So it will be a control archive.
536
+
537
+ 135
538
+ 00:09:55,000 --> 00:09:58,000
539
+ Delete and perform this, it will perform the action.
540
+
541
+ 136
542
+ 00:09:59,000 --> 00:10:04,000
543
+ So here in the situation, we have seen how we can perform activities by using keyboard.
544
+
545
+ 137
546
+ 00:10:05,000 --> 00:10:09,000
547
+ And here we have seen how we can perform single and combination of keys.
548
+
549
+ 138
550
+ 00:10:10,000 --> 00:10:12,000
551
+ That's all we have for the session.
552
+
553
+ 139
554
+ 00:10:12,000 --> 00:10:14,000
555
+ Thanks for watching this video.
556
+
33 - Keyboard & Mouse Operations ActionChains Class/002 Perform Mouse Operations Left Click, Right Click, Double Click, Drag and Drop_en.srt ADDED
@@ -0,0 +1,460 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:04,000
3
+ Now, I'll move to the most operations again.
4
+
5
+ 2
6
+ 00:00:04,000 --> 00:00:09,000
7
+ I'm just coming here and I'm going to create one more Python file with the name.
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:13,000
11
+ Most operations.
12
+
13
+ 4
14
+ 00:00:15,000 --> 00:00:17,000
15
+ And again, few lines I'm going to copy from there.
16
+
17
+ 5
18
+ 00:00:17,000 --> 00:00:18,000
19
+ So.
20
+
21
+ 6
22
+ 00:00:21,000 --> 00:00:26,000
23
+ These are the few lines that I've copied, which is going to start, which is going to import package
24
+
25
+ 7
26
+ 00:00:26,000 --> 00:00:27,000
27
+ and start browser.
28
+
29
+ 8
30
+ 00:00:28,000 --> 00:00:28,000
31
+ OK.
32
+
33
+ 9
34
+ 00:00:28,000 --> 00:00:30,000
35
+ Rich, are you want to start?
36
+
37
+ 10
38
+ 00:00:30,000 --> 00:00:32,000
39
+ So I want to start this you out of this time?
40
+
41
+ 11
42
+ 00:00:32,000 --> 00:00:33,000
43
+ And that's my application URL.
44
+
45
+ 12
46
+ 00:00:34,000 --> 00:00:35,000
47
+ So if I show you here.
48
+
49
+ 13
50
+ 00:00:41,000 --> 00:00:42,000
51
+ Yeah.
52
+
53
+ 14
54
+ 00:00:42,000 --> 00:00:43,000
55
+ So what I want to do?
56
+
57
+ 15
58
+ 00:00:44,000 --> 00:00:45,000
59
+ I'll show you how we can click.
60
+
61
+ 16
62
+ 00:00:46,000 --> 00:00:54,000
63
+ Also, I'll show you how we can right click, double click and also mouth whole, so I perform different
64
+
65
+ 17
66
+ 00:00:54,000 --> 00:00:55,000
67
+ mouse operations.
68
+
69
+ 18
70
+ 00:00:56,000 --> 00:01:02,000
71
+ So first of all, because we want to use mouse operations again, we have to use the class action genes
72
+
73
+ 19
74
+ 00:01:02,000 --> 00:01:04,000
75
+ which we have already imported.
76
+
77
+ 20
78
+ 00:01:04,000 --> 00:01:06,000
79
+ So I'm just going to create object.
80
+
81
+ 21
82
+ 00:01:06,000 --> 00:01:13,000
83
+ So I'm saying AZT action genes and passing the driver object with you.
84
+
85
+ 22
86
+ 00:01:13,000 --> 00:01:15,000
87
+ First of all, I want to click.
88
+
89
+ 23
90
+ 00:01:16,000 --> 00:01:25,000
91
+ So I'm saying it's dark and we have a direct operation like Click Dark Perform in this point of time.
92
+
93
+ 24
94
+ 00:01:26,000 --> 00:01:28,000
95
+ I'm not saying where you need to click.
96
+
97
+ 25
98
+ 00:01:28,000 --> 00:01:32,000
99
+ When I want to control this, just click on that and it will be left.
100
+
101
+ 26
102
+ 00:01:32,000 --> 00:01:33,000
103
+ Click OK.
104
+
105
+ 27
106
+ 00:01:33,000 --> 00:01:34,000
107
+ Let me show you.
108
+
109
+ 28
110
+ 00:01:39,000 --> 00:01:44,000
111
+ We are not saying Glick, we're I'm saying wherever the control is, just click or just left click.
112
+
113
+ 29
114
+ 00:01:45,000 --> 00:01:47,000
115
+ So that's a left click operation we are doing.
116
+
117
+ 30
118
+ 00:01:48,000 --> 00:01:50,000
119
+ I show you how we can perform, right click.
120
+
121
+ 31
122
+ 00:01:51,000 --> 00:01:55,000
123
+ So I'm going for context, like we call it context.
124
+
125
+ 32
126
+ 00:01:55,000 --> 00:01:56,000
127
+ Click Dot Perform.
128
+
129
+ 33
130
+ 00:01:56,000 --> 00:01:59,000
131
+ So wherever you control is just perform.
132
+
133
+ 34
134
+ 00:01:59,000 --> 00:02:00,000
135
+ Right click over here.
136
+
137
+ 35
138
+ 00:02:01,000 --> 00:02:08,000
139
+ Know then when we right click on any of that --, we got a menu, so let it perform, OK?
140
+
141
+ 36
142
+ 00:02:09,000 --> 00:02:11,000
143
+ My brother started, You are talented.
144
+
145
+ 37
146
+ 00:02:13,000 --> 00:02:17,000
147
+ And if we just check it here, that is right click perform.
148
+
149
+ 38
150
+ 00:02:19,000 --> 00:02:23,000
151
+ So we perform left click and right click here.
152
+
153
+ 39
154
+ 00:02:23,000 --> 00:02:25,000
155
+ We're not saying where to click.
156
+
157
+ 40
158
+ 00:02:26,000 --> 00:02:28,000
159
+ We are just saying whenever the control, just click it.
160
+
161
+ 41
162
+ 00:02:29,000 --> 00:02:30,000
163
+ We have the second option as well.
164
+
165
+ 42
166
+ 00:02:31,000 --> 00:02:37,000
167
+ I want to click on this home about or I want to click on this log in so I can locate it.
168
+
169
+ 43
170
+ 00:02:39,000 --> 00:02:42,000
171
+ And here it's a e with the text log in.
172
+
173
+ 44
174
+ 00:02:42,000 --> 00:02:49,000
175
+ So I'm going to generate export drive word dot, find element by export.
176
+
177
+ 45
178
+ 00:02:51,000 --> 00:02:55,000
179
+ And it's a weird text.
180
+
181
+ 46
182
+ 00:02:58,000 --> 00:02:59,000
183
+ Is equal to this.
184
+
185
+ 47
186
+ 00:03:02,000 --> 00:03:06,000
187
+ So we can click on this element.
188
+
189
+ 48
190
+ 00:03:07,000 --> 00:03:09,000
191
+ So what I'm doing here, as of now, I'm just removing this line.
192
+
193
+ 49
194
+ 00:03:10,000 --> 00:03:12,000
195
+ I'm saying we need to click, but we where to click.
196
+
197
+ 50
198
+ 00:03:13,000 --> 00:03:19,000
199
+ So in bracket will look getting that element and then perform performance, perform that action, which
200
+
201
+ 51
202
+ 00:03:19,000 --> 00:03:21,000
203
+ we got, which we said previously.
204
+
205
+ 52
206
+ 00:03:21,000 --> 00:03:22,000
207
+ So it is going to perform.
208
+
209
+ 53
210
+ 00:03:22,000 --> 00:03:22,000
211
+ Click.
212
+
213
+ 54
214
+ 00:03:23,000 --> 00:03:25,000
215
+ I'm just running it again.
216
+
217
+ 55
218
+ 00:03:26,000 --> 00:03:31,000
219
+ So this time we're taking out the most element and then clicking on that.
220
+
221
+ 56
222
+ 00:03:32,000 --> 00:03:35,000
223
+ So if you check it out here, it will go to the login and then click.
224
+
225
+ 57
226
+ 00:03:36,000 --> 00:03:37,000
227
+ So we got that log in.
228
+
229
+ 58
230
+ 00:03:37,000 --> 00:03:46,000
231
+ So we have seen we can use click method in the two is first just click means with the controller's click
232
+
233
+ 59
234
+ 00:03:46,000 --> 00:03:49,000
235
+ over there and click with Element Locator.
236
+
237
+ 60
238
+ 00:03:49,000 --> 00:03:54,000
239
+ So here if you are performing Liquid Element, you do it with bigger control.
240
+
241
+ 61
242
+ 00:03:54,000 --> 00:03:59,000
243
+ Pick your mouse to that particular element and then click on that in the same way.
244
+
245
+ 62
246
+ 00:03:59,000 --> 00:04:00,000
247
+ So that was my click.
248
+
249
+ 63
250
+ 00:04:00,000 --> 00:04:07,000
251
+ Operation can be used in the two ways so I can select click operation.
252
+
253
+ 64
254
+ 00:04:08,000 --> 00:04:09,000
255
+ It was, is it not?
256
+
257
+ 65
258
+ 00:04:09,000 --> 00:04:10,000
259
+ Click.
260
+
261
+ 66
262
+ 00:04:11,000 --> 00:04:19,000
263
+ So it is going to click anywhere with wherever my control is, and other one is by locating that element
264
+
265
+ 67
266
+ 00:04:20,000 --> 00:04:21,000
267
+ in the same way.
268
+
269
+ 68
270
+ 00:04:21,000 --> 00:04:26,000
271
+ If you want to go for right click, if you want to perform, right click, you can do that same.
272
+
273
+ 69
274
+ 00:04:27,000 --> 00:04:28,000
275
+ So I'm seeing context.
276
+
277
+ 70
278
+ 00:04:31,000 --> 00:04:35,000
279
+ Click, which is also called Right Click.
280
+
281
+ 71
282
+ 00:04:35,000 --> 00:04:40,000
283
+ So we can do it like, is it dark context?
284
+
285
+ 72
286
+ 00:04:40,000 --> 00:04:41,000
287
+ Flick, Dot Perform.
288
+
289
+ 73
290
+ 00:04:45,000 --> 00:04:53,000
291
+ Or a city dot context, click and we can look at whatever the element as I'm locating this.
292
+
293
+ 74
294
+ 00:04:56,000 --> 00:05:00,000
295
+ Do outperform as of now, I'm just commenting this out.
296
+
297
+ 75
298
+ 00:05:02,000 --> 00:05:09,000
299
+ So we have seen click and right click, we have the operation of the click as well so we can go for
300
+
301
+ 76
302
+ 00:05:09,000 --> 00:05:12,000
303
+ like a CD dot double click.
304
+
305
+ 77
306
+ 00:05:12,000 --> 00:05:20,000
307
+ And again we have the two option double click that perform or double click and we can give the locator
308
+
309
+ 78
310
+ 00:05:20,000 --> 00:05:21,000
311
+ and then perform.
312
+
313
+ 79
314
+ 00:05:22,000 --> 00:05:23,000
315
+ So that could also be used.
316
+
317
+ 80
318
+ 00:05:25,000 --> 00:05:32,000
319
+ Now I'm coming to the one of the most important part which is moving my mouth to the menu so that menu
320
+
321
+ 81
322
+ 00:05:32,000 --> 00:05:32,000
323
+ will be open.
324
+
325
+ 82
326
+ 00:05:33,000 --> 00:05:39,000
327
+ So that's my web page, which is going to be open and I want to open this tutorial, so I want to take
328
+
329
+ 83
330
+ 00:05:39,000 --> 00:05:40,000
331
+ my mouth over there.
332
+
333
+ 84
334
+ 00:05:40,000 --> 00:05:46,000
335
+ First of all, I need to look at this element because I need to take my mouth over to it.
336
+
337
+ 85
338
+ 00:05:47,000 --> 00:05:48,000
339
+ So I'm just getting it.
340
+
341
+ 86
342
+ 00:05:54,000 --> 00:05:58,000
343
+ It's a spin with the next tutorial, so I'm going to use.
344
+
345
+ 87
346
+ 00:06:02,000 --> 00:06:13,000
347
+ AZT, which is my object of the action gin glass dot move to element which element you want to move
348
+
349
+ 88
350
+ 00:06:13,000 --> 00:06:13,000
351
+ to.
352
+
353
+ 89
354
+ 00:06:14,000 --> 00:06:29,000
355
+ Driver Dot find element by X spot and it was a spin where text is equal to this and what I need to perform
356
+
357
+ 90
358
+ 00:06:30,000 --> 00:06:31,000
359
+ here.
360
+
361
+ 91
362
+ 00:06:31,000 --> 00:06:41,000
363
+ I'm seeing move to the element where they explore this, this and I'm moving this by using action gin.
364
+
365
+ 92
366
+ 00:06:41,000 --> 00:06:44,000
367
+ Plus I'm just running it.
368
+
369
+ 93
370
+ 00:06:52,000 --> 00:06:59,000
371
+ First, a take on the logging, and here we are, getting air like it is not able to locate that method.
372
+
373
+ 94
374
+ 00:06:59,000 --> 00:07:00,000
375
+ OK, what I do.
376
+
377
+ 95
378
+ 00:07:01,000 --> 00:07:06,000
379
+ First of all, I'm just commenting on this logging because click because right now I don't want to click
380
+
381
+ 96
382
+ 00:07:06,000 --> 00:07:09,000
383
+ second, I'm going to use contains.
384
+
385
+ 97
386
+ 00:07:09,000 --> 00:07:16,000
387
+ Hopefully you have gone through all element locator techniques.
388
+
389
+ 98
390
+ 00:07:17,000 --> 00:07:19,000
391
+ So that is a second technique.
392
+
393
+ 99
394
+ 00:07:19,000 --> 00:07:20,000
395
+ It might be possible there is a space.
396
+
397
+ 100
398
+ 00:07:21,000 --> 00:07:23,000
399
+ So I'm just handling that part.
400
+
401
+ 101
402
+ 00:07:24,000 --> 00:07:28,000
403
+ So contains no, I'm running it.
404
+
405
+ 102
406
+ 00:07:39,000 --> 00:07:46,000
407
+ So if you notice that menu is open and I did not taken my mouth over there, if you check it on the
408
+
409
+ 103
410
+ 00:07:46,000 --> 00:07:48,000
411
+ mouse's below.
412
+
413
+ 104
414
+ 00:07:48,000 --> 00:07:50,000
415
+ But it is sticking to control.
416
+
417
+ 105
418
+ 00:07:50,000 --> 00:07:52,000
419
+ It is not switching my mouse over there.
420
+
421
+ 106
422
+ 00:07:52,000 --> 00:07:55,000
423
+ You will not see mouse movement does.
424
+
425
+ 107
426
+ 00:07:55,000 --> 00:07:57,000
427
+ The control is going to that particular menu.
428
+
429
+ 108
430
+ 00:07:59,000 --> 00:08:06,000
431
+ So here we have seen how we can perform keyboard and the mouse operations by using action genes, plus
432
+
433
+ 109
434
+ 00:08:07,000 --> 00:08:12,000
435
+ also we can perform drag and drop, but as of now we are not having any scenario where we can perform,
436
+
437
+ 110
438
+ 00:08:12,000 --> 00:08:12,000
439
+ drag and drop.
440
+
441
+ 111
442
+ 00:08:13,000 --> 00:08:19,000
443
+ Later on, I'll show you how we can go for drag and drop by using Action Chin Plus.
444
+
445
+ 112
446
+ 00:08:20,000 --> 00:08:23,000
447
+ So that's all we have of the session.
448
+
449
+ 113
450
+ 00:08:23,000 --> 00:08:29,000
451
+ Here we covered how we can perform keyboard operations and mouse operations by using action genes.
452
+
453
+ 114
454
+ 00:08:31,000 --> 00:08:31,000
455
+ That's all we have.
456
+
457
+ 115
458
+ 00:08:32,000 --> 00:08:33,000
459
+ Thanks for watching this video.
460
+
34 - Fetch Data at Runtime from Application and Elements/001 Fetch Page Title Page URL Page HTML Source code_en.srt ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:08,000
7
+ So previously, we have seen how we can execute a simple test case in which we are performing some actions,
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:14,000
11
+ like we're putting data into the text box where we click on the radio button checkbox button.
12
+
13
+ 4
14
+ 00:00:14,000 --> 00:00:17,000
15
+ So we are executing these tests given the different browsers.
16
+
17
+ 5
18
+ 00:00:19,000 --> 00:00:25,000
19
+ Now I'll show you how we can fetch data from the page or as a browser at runtime.
20
+
21
+ 6
22
+ 00:00:26,000 --> 00:00:27,000
23
+ OK.
24
+
25
+ 7
26
+ 00:00:27,000 --> 00:00:31,000
27
+ I'm just going to the application that's going to the application.
28
+
29
+ 8
30
+ 00:00:31,000 --> 00:00:32,000
31
+ That's my application.
32
+
33
+ 9
34
+ 00:00:33,000 --> 00:00:39,000
35
+ If you check each application is having a title, if you check it over here, that's a title in the
36
+
37
+ 10
38
+ 00:00:39,000 --> 00:00:39,000
39
+ same way.
40
+
41
+ 11
42
+ 00:00:41,000 --> 00:00:43,000
43
+ On different pages, we have a user.
44
+
45
+ 12
46
+ 00:00:44,000 --> 00:00:47,000
47
+ So you want to fetch page title or you want which page you are.
48
+
49
+ 13
50
+ 00:00:48,000 --> 00:00:52,000
51
+ Or maybe you want to fetch page source.
52
+
53
+ 14
54
+ 00:00:52,000 --> 00:00:53,000
55
+ That's the estimate of the page.
56
+
57
+ 15
58
+ 00:00:53,000 --> 00:00:59,000
59
+ So, so in this section of show, you how we can fetch page title URL or page source.
60
+
61
+ 16
62
+ 00:01:00,000 --> 00:01:11,000
63
+ For that, I'm just moving to my desk discuses and I'm going to copy this first test case and making
64
+
65
+ 17
66
+ 00:01:11,000 --> 00:01:15,000
67
+ a copy of it like fetch data.
68
+
69
+ 18
70
+ 00:01:18,000 --> 00:01:21,000
71
+ Fetch data, Datadog, be here.
72
+
73
+ 19
74
+ 00:01:22,000 --> 00:01:26,000
75
+ I'm just removing all these lines as of now.
76
+
77
+ 20
78
+ 00:01:26,000 --> 00:01:33,000
79
+ I just want to start browser, Chrome browser and maximized it.
80
+
81
+ 21
82
+ 00:01:34,000 --> 00:01:40,000
83
+ Now I want to fetch page title whenever you want to fetch data.
84
+
85
+ 22
86
+ 00:01:40,000 --> 00:01:42,000
87
+ We have a command driver got.
88
+
89
+ 23
90
+ 00:01:45,000 --> 00:01:49,000
91
+ Later, it's going to fetch title of the page.
92
+
93
+ 24
94
+ 00:01:50,000 --> 00:01:55,000
95
+ I'm just going to print it, so I'm just printing it.
96
+
97
+ 25
98
+ 00:01:56,000 --> 00:01:58,000
99
+ So here, brother will be started.
100
+
101
+ 26
102
+ 00:01:58,000 --> 00:02:00,000
103
+ It will maximize and it will be printed.
104
+
105
+ 27
106
+ 00:02:03,000 --> 00:02:05,000
107
+ Just executing it.
108
+
109
+ 28
110
+ 00:02:06,000 --> 00:02:08,000
111
+ It will fetch data and display on the console.
112
+
113
+ 29
114
+ 00:02:13,000 --> 00:02:22,000
115
+ Well, this started maximized, and I'm just coming here, so if you take it here that they do this,
116
+
117
+ 30
118
+ 00:02:22,000 --> 00:02:26,000
119
+ this, so we're able to fetch title successfully.
120
+
121
+ 31
122
+ 00:02:27,000 --> 00:02:35,000
123
+ I'm just giving the comment like fetching title and I can write like title of the page is.
124
+
125
+ 32
126
+ 00:02:41,000 --> 00:02:44,000
127
+ Which is this?
128
+
129
+ 33
130
+ 00:02:44,000 --> 00:02:46,000
131
+ So we are able to fetch title successfully.
132
+
133
+ 34
134
+ 00:02:47,000 --> 00:02:54,000
135
+ No, second, I'll show you how we can fetch you all of the page for that.
136
+
137
+ 35
138
+ 00:02:54,000 --> 00:02:56,000
139
+ I'm going to use like fetch.
140
+
141
+ 36
142
+ 00:02:57,000 --> 00:03:05,000
143
+ You are of Page four that we are going to use dry diver dot garant.
144
+
145
+ 37
146
+ 00:03:06,000 --> 00:03:07,000
147
+ You are.
148
+
149
+ 38
150
+ 00:03:08,000 --> 00:03:09,000
151
+ And I want to print it.
152
+
153
+ 39
154
+ 00:03:09,000 --> 00:03:14,000
155
+ So print page you are held is.
156
+
157
+ 40
158
+ 00:03:17,000 --> 00:03:19,000
159
+ And we are just doing concatenation.
160
+
161
+ 41
162
+ 00:03:20,000 --> 00:03:23,000
163
+ We are just displaying it on the console.
164
+
165
+ 42
166
+ 00:03:24,000 --> 00:03:25,000
167
+ Everything seems to be OK.
168
+
169
+ 43
170
+ 00:03:25,000 --> 00:03:27,000
171
+ I just clear a screen.
172
+
173
+ 44
174
+ 00:03:28,000 --> 00:03:30,000
175
+ I'm just going for execution.
176
+
177
+ 45
178
+ 00:03:31,000 --> 00:03:33,000
179
+ So one to go for the execution.
180
+
181
+ 46
182
+ 00:03:33,000 --> 00:03:35,000
183
+ This time it should pick title.
184
+
185
+ 47
186
+ 00:03:35,000 --> 00:03:40,000
187
+ And you are all because we are we have written command for title in the URL.
188
+
189
+ 48
190
+ 00:03:48,000 --> 00:03:52,000
191
+ But I was I started maximize and task is done.
192
+
193
+ 49
194
+ 00:03:52,000 --> 00:03:58,000
195
+ I'm just closing this browser, if you check the title of the page, is this page you are releasing
196
+
197
+ 50
198
+ 00:03:59,000 --> 00:04:06,000
199
+ this, so we are able to fetch data and you ought to know next.
200
+
201
+ 51
202
+ 00:04:06,000 --> 00:04:07,000
203
+ And very important is.
204
+
205
+ 52
206
+ 00:04:08,000 --> 00:04:09,000
207
+ That's a page.
208
+
209
+ 53
210
+ 00:04:10,000 --> 00:04:13,000
211
+ I'm going to the page source means estimate of the page.
212
+
213
+ 54
214
+ 00:04:13,000 --> 00:04:19,000
215
+ So any point of time, if you want to get complete page source, we can do it here.
216
+
217
+ 55
218
+ 00:04:20,000 --> 00:04:21,000
219
+ I'm just coming here.
220
+
221
+ 56
222
+ 00:04:21,000 --> 00:04:30,000
223
+ So this time I'm going to fetch complete page EdgeHTML.
224
+
225
+ 57
226
+ 00:04:31,000 --> 00:04:40,000
227
+ For that, we have Driver Dot page source and I'm just displaying like print.
228
+
229
+ 58
230
+ 00:04:42,000 --> 00:04:49,000
231
+ Driver Rod Paige source, and it's going to display complete HDMI, so before displaying that, I just
232
+
233
+ 59
234
+ 00:04:49,000 --> 00:04:55,000
235
+ want to make this so that we can separate this data with the page source.
236
+
237
+ 60
238
+ 00:04:56,000 --> 00:04:59,000
239
+ OK, now going for execution again?
240
+
241
+ 61
242
+ 00:05:08,000 --> 00:05:10,000
243
+ Browsers started going to be maximized.
244
+
245
+ 62
246
+ 00:05:18,000 --> 00:05:25,000
247
+ And once it is done, I'm just moving here, and if you check it in, the desert is a complete big,
248
+
249
+ 63
250
+ 00:05:25,000 --> 00:05:26,000
251
+ solid display here.
252
+
253
+ 64
254
+ 00:05:26,000 --> 00:05:30,000
255
+ So first of all, it shows title you are.
256
+
257
+ 65
258
+ 00:05:30,000 --> 00:05:33,000
259
+ And from here, big stimulus started.
260
+
261
+ 66
262
+ 00:05:33,000 --> 00:05:38,000
263
+ If you take it here now we are getting complete picture estimate the spread over here.
264
+
265
+ 67
266
+ 00:05:40,000 --> 00:05:46,000
267
+ So we have seen how we can fetch page title y'all and compete at the landing.
268
+
269
+ 68
270
+ 00:05:48,000 --> 00:05:50,000
271
+ That's all we have for the session.
272
+
273
+ 69
274
+ 00:05:52,000 --> 00:05:53,000
275
+ Thanks for watching this video.
276
+
34 - Fetch Data at Runtime from Application and Elements/002 Fetch Element Text(Inner text) & Attribute Value_en.srt ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:09,000
7
+ So previously, we have seen how we can fetch data you are and page source now show you how we can fetch
8
+
9
+ 3
10
+ 00:00:10,000 --> 00:00:15,000
11
+ text written on the element or we can fetch element attributes.
12
+
13
+ 4
14
+ 00:00:16,000 --> 00:00:23,000
15
+ So first of all, I'm just moving to my application and I'll show you here.
16
+
17
+ 5
18
+ 00:00:23,000 --> 00:00:25,000
19
+ We have a link with the details.
20
+
21
+ 6
22
+ 00:00:26,000 --> 00:00:27,000
23
+ I just inspected.
24
+
25
+ 7
26
+ 00:00:30,000 --> 00:00:37,000
27
+ So if you take it here in our text of this link is very detailed, so means at any time if you want
28
+
29
+ 8
30
+ 00:00:37,000 --> 00:00:41,000
31
+ to check if you want to fetch inner text of any element.
32
+
33
+ 9
34
+ 00:00:42,000 --> 00:00:43,000
35
+ I can do it here.
36
+
37
+ 10
38
+ 00:00:43,000 --> 00:00:45,000
39
+ In-stadium Bay.
40
+
41
+ 11
42
+ 00:00:45,000 --> 00:00:46,000
43
+ So I'm just moving here.
44
+
45
+ 12
46
+ 00:00:47,000 --> 00:00:52,000
47
+ And first of all, I'm just removing these lines, which we have written in the previous session and
48
+
49
+ 13
50
+ 00:00:52,000 --> 00:00:56,000
51
+ I'm saying fetching element text.
52
+
53
+ 14
54
+ 00:00:57,000 --> 00:01:00,000
55
+ So first of all, I want to look at this.
56
+
57
+ 15
58
+ 00:01:00,000 --> 00:01:01,000
59
+ I'm going to look at it by the last name.
60
+
61
+ 16
62
+ 00:01:02,000 --> 00:01:03,000
63
+ So that's a class name.
64
+
65
+ 17
66
+ 00:01:04,000 --> 00:01:11,000
67
+ So I'm writing like Driver Dot, find element bike last name.
68
+
69
+ 18
70
+ 00:01:12,000 --> 00:01:13,000
71
+ And what do you want to do?
72
+
73
+ 19
74
+ 00:01:13,000 --> 00:01:15,000
75
+ I want to pick a text of it.
76
+
77
+ 20
78
+ 00:01:17,000 --> 00:01:33,000
79
+ I'm just printing it's a print text on a link is and just displaying this, everything seems to be OK
80
+
81
+ 21
82
+ 00:01:33,000 --> 00:01:36,000
83
+ now I'm just going to execute.
84
+
85
+ 22
86
+ 00:01:38,000 --> 00:01:41,000
87
+ So this time it should be text written on the element.
88
+
89
+ 23
90
+ 00:01:42,000 --> 00:01:44,000
91
+ And we are going to dispute.
92
+
93
+ 24
94
+ 00:01:51,000 --> 00:01:52,000
95
+ Browsers started.
96
+
97
+ 25
98
+ 00:01:55,000 --> 00:01:56,000
99
+ Maximized.
100
+
101
+ 26
102
+ 00:01:59,000 --> 00:02:03,000
103
+ And I'm just moving here, so it shows.
104
+
105
+ 27
106
+ 00:02:04,000 --> 00:02:15,000
107
+ Text on the link is the big deal so we can fetch text or entire text of any element by using this text
108
+
109
+ 28
110
+ 00:02:15,000 --> 00:02:16,000
111
+ property.
112
+
113
+ 29
114
+ 00:02:18,000 --> 00:02:21,000
115
+ Now I want to show you, I'm just moving to the browser.
116
+
117
+ 30
118
+ 00:02:22,000 --> 00:02:29,000
119
+ And for each element, we have multiple attributes like for this e, we have etched of color.
120
+
121
+ 31
122
+ 00:02:29,000 --> 00:02:30,000
123
+ We have glass.
124
+
125
+ 32
126
+ 00:02:31,000 --> 00:02:32,000
127
+ So these are the attributes.
128
+
129
+ 33
130
+ 00:02:32,000 --> 00:02:35,000
131
+ If we talk about this button, sign up button, I'm just coming here.
132
+
133
+ 34
134
+ 00:02:36,000 --> 00:02:38,000
135
+ Sign Up has two attributes.
136
+
137
+ 35
138
+ 00:02:38,000 --> 00:02:39,000
139
+ One is type and value.
140
+
141
+ 36
142
+ 00:02:40,000 --> 00:02:44,000
143
+ I want to fetch value of this button.
144
+
145
+ 37
146
+ 00:02:45,000 --> 00:02:55,000
147
+ For that, I'm going to fetch fetching attribute value of element.
148
+
149
+ 38
150
+ 00:02:55,000 --> 00:03:04,000
151
+ So first of all, we have to look at the two elements I'm writing like driver thought find element and
152
+
153
+ 39
154
+ 00:03:04,000 --> 00:03:08,000
155
+ I'm going to generate a spot for this, for this by using the tape.
156
+
157
+ 40
158
+ 00:03:09,000 --> 00:03:10,000
159
+ So I'm writing like.
160
+
161
+ 41
162
+ 00:03:13,000 --> 00:03:15,000
163
+ That is my input.
164
+
165
+ 42
166
+ 00:03:16,000 --> 00:03:20,000
167
+ So I'm writing input I.
168
+
169
+ 43
170
+ 00:03:23,000 --> 00:03:24,000
171
+ Is equal to submit.
172
+
173
+ 44
174
+ 00:03:26,000 --> 00:03:31,000
175
+ So first of all, we are locating that and then we want to fetch after locating, I want to fetch,
176
+
177
+ 45
178
+ 00:03:31,000 --> 00:03:33,000
179
+ get attribute, which attribute you want to fetch.
180
+
181
+ 46
182
+ 00:03:34,000 --> 00:03:36,000
183
+ I want to fetch value of it.
184
+
185
+ 47
186
+ 00:03:36,000 --> 00:03:44,000
187
+ So I'm just writing like value and whatever the result is coming, I just want to displace or print.
188
+
189
+ 48
190
+ 00:03:47,000 --> 00:03:51,000
191
+ Well, you off button is.
192
+
193
+ 49
194
+ 00:03:53,000 --> 00:04:02,000
195
+ This so here we are, fetching value of value, of that particular element or indirectly, if I see
196
+
197
+ 50
198
+ 00:04:02,000 --> 00:04:05,000
199
+ we are fetching a tribute of any element.
200
+
201
+ 51
202
+ 00:04:06,000 --> 00:04:10,000
203
+ So that's an attribute and we can fetch any attribute.
204
+
205
+ 52
206
+ 00:04:10,000 --> 00:04:14,000
207
+ So as of now, I'm picking value attribute.
208
+
209
+ 53
210
+ 00:04:15,000 --> 00:04:16,000
211
+ Everything is good.
212
+
213
+ 54
214
+ 00:04:16,000 --> 00:04:18,000
215
+ I'm just going to execute.
216
+
217
+ 55
218
+ 00:04:18,000 --> 00:04:19,000
219
+ No.
220
+
221
+ 56
222
+ 00:04:28,000 --> 00:04:33,000
223
+ So brother started maximised, I'm just moving here.
224
+
225
+ 57
226
+ 00:04:33,000 --> 00:04:37,000
227
+ Text on the link is this and value of the button is sign up.
228
+
229
+ 58
230
+ 00:04:37,000 --> 00:04:41,000
231
+ If you check it on application, the is sign up.
232
+
233
+ 59
234
+ 00:04:43,000 --> 00:04:52,000
235
+ So we have seen how we can fetch, text or attribute in our text or attribute off any element.
236
+
237
+ 60
238
+ 00:04:54,000 --> 00:04:56,000
239
+ So that's all we have for the session.
240
+
241
+ 61
242
+ 00:04:56,000 --> 00:04:57,000
243
+ Thanks for watching this video.
244
+
34 - Fetch Data at Runtime from Application and Elements/003 Fetch Values from dropdown or list_en.srt ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:01,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:02,000 --> 00:00:08,000
7
+ So previously, we have seen how we can work on drop down our list and we have seen there how we can
8
+
9
+ 3
10
+ 00:00:08,000 --> 00:00:10,000
11
+ select value in the dropdown or list.
12
+
13
+ 4
14
+ 00:00:11,000 --> 00:00:17,000
15
+ But now I'll show you how we can fetch data from the dashboard on our list for that.
16
+
17
+ 5
18
+ 00:00:17,000 --> 00:00:19,000
19
+ First of all, I'm moving to my desk.
20
+
21
+ 6
22
+ 00:00:19,000 --> 00:00:19,000
23
+ Yes.
24
+
25
+ 7
26
+ 00:00:20,000 --> 00:00:27,000
27
+ And if you remember, I have created first test kits there we have using select.
28
+
29
+ 8
30
+ 00:00:27,000 --> 00:00:31,000
31
+ So first of all, I'm just copying that.
32
+
33
+ 9
34
+ 00:00:32,000 --> 00:00:39,000
35
+ And so, first of all, we need to import that select class now for selecting any data.
36
+
37
+ 10
38
+ 00:00:40,000 --> 00:00:42,000
39
+ We have this option.
40
+
41
+ 11
42
+ 00:00:42,000 --> 00:00:46,000
43
+ So I just copied this and pasted over here.
44
+
45
+ 12
46
+ 00:00:46,000 --> 00:00:50,000
47
+ So now my test case, I'm just removing these fetching line.
48
+
49
+ 13
50
+ 00:00:52,000 --> 00:01:01,000
51
+ So now my best guess is we are what we are working on a dropdown and we have selected some value.
52
+
53
+ 14
54
+ 00:01:03,000 --> 00:01:11,000
55
+ Now, after the election, I want to fetch selected value and I want to fetch all options means I'll
56
+
57
+ 15
58
+ 00:01:11,000 --> 00:01:15,000
59
+ show you two approaches one, whatever the value we just selected, you want to fetch it.
60
+
61
+ 16
62
+ 00:01:16,000 --> 00:01:19,000
63
+ Second, you want to fetch all available values here.
64
+
65
+ 17
66
+ 00:01:20,000 --> 00:01:27,000
67
+ So first of all, I'll show you how we can fetch selected data for DROPDOWN.
68
+
69
+ 18
70
+ 00:01:27,000 --> 00:01:30,000
71
+ We have already created the object like object.
72
+
73
+ 19
74
+ 00:01:31,000 --> 00:01:37,000
75
+ I want to fetch selected option.
76
+
77
+ 20
78
+ 00:01:38,000 --> 00:01:40,000
79
+ So I'm writing like object dart.
80
+
81
+ 21
82
+ 00:01:42,000 --> 00:01:45,000
83
+ We can either go for the all selected option or selected option.
84
+
85
+ 22
86
+ 00:01:47,000 --> 00:01:49,000
87
+ All selected option will work when we are having a list.
88
+
89
+ 23
90
+ 00:01:50,000 --> 00:01:53,000
91
+ We can have more than one option option selected then.
92
+
93
+ 24
94
+ 00:01:54,000 --> 00:01:58,000
95
+ If you think only one option is selected, you can go for the full selected option.
96
+
97
+ 25
98
+ 00:01:59,000 --> 00:02:06,000
99
+ So as of now, I'm just printing like a print and print to be the first selected option.
100
+
101
+ 26
102
+ 00:02:07,000 --> 00:02:09,000
103
+ I'm just going to execute.
104
+
105
+ 27
106
+ 00:02:09,000 --> 00:02:11,000
107
+ But we have to make some more changes.
108
+
109
+ 28
110
+ 00:02:11,000 --> 00:02:16,000
111
+ So as of now, I'm just showing discord where we are fetching first selected option.
112
+
113
+ 29
114
+ 00:02:21,000 --> 00:02:27,000
115
+ Now, the Star Trek task is done, I'm just coming here, if you check it, it is giving me the web
116
+
117
+ 30
118
+ 00:02:27,000 --> 00:02:29,000
119
+ element means it is.
120
+
121
+ 31
122
+ 00:02:29,000 --> 00:02:38,000
123
+ It is giving the object of first selected option, but I want to fetch text of it, so I just return
124
+
125
+ 32
126
+ 00:02:38,000 --> 00:02:39,000
127
+ next.
128
+
129
+ 33
130
+ 00:02:40,000 --> 00:02:48,000
131
+ Now, if I execute, you will notice it will give me text of selected option.
132
+
133
+ 34
134
+ 00:02:56,000 --> 00:02:56,000
135
+ That is done.
136
+
137
+ 35
138
+ 00:02:58,000 --> 00:02:59,000
139
+ And it shows me.
140
+
141
+ 36
142
+ 00:02:59,000 --> 00:03:03,000
143
+ And if you want to check here merely selected.
144
+
145
+ 37
146
+ 00:03:04,000 --> 00:03:07,000
147
+ So we have seen how we can fetch selected option.
148
+
149
+ 38
150
+ 00:03:08,000 --> 00:03:12,000
151
+ Now I'll show you how we can fetch all available options if we check it here.
152
+
153
+ 39
154
+ 00:03:12,000 --> 00:03:17,000
155
+ We have three options available choose gender, male and female, and I want to fetch all.
156
+
157
+ 40
158
+ 00:03:18,000 --> 00:03:23,000
159
+ I'm just going for our widget dock options.
160
+
161
+ 41
162
+ 00:03:23,000 --> 00:03:31,000
163
+ It's going to turn me all the options, but actually it is going to return object of all options available.
164
+
165
+ 42
166
+ 00:03:33,000 --> 00:03:38,000
167
+ I want to go to the each and every web web element if you want to check.
168
+
169
+ 43
170
+ 00:03:38,000 --> 00:03:39,000
171
+ We can just print it.
172
+
173
+ 44
174
+ 00:03:43,000 --> 00:03:50,000
175
+ And later on, I'll show you how we can look through each and every option and print its text.
176
+
177
+ 45
178
+ 00:03:55,000 --> 00:03:55,000
179
+ That is done.
180
+
181
+ 46
182
+ 00:03:56,000 --> 00:04:02,000
183
+ And it shows many options here, like first option than second option, third option.
184
+
185
+ 47
186
+ 00:04:02,000 --> 00:04:14,000
187
+ So what I can do, I'm just going to run a loop for for each option in this.
188
+
189
+ 48
190
+ 00:04:15,000 --> 00:04:20,000
191
+ So it is going to return me a list of all the elements which are available.
192
+
193
+ 49
194
+ 00:04:20,000 --> 00:04:27,000
195
+ I'm just running a loop through it and every and inside the loop for each option.
196
+
197
+ 50
198
+ 00:04:27,000 --> 00:04:29,000
199
+ I'm printing text.
200
+
201
+ 51
202
+ 00:04:30,000 --> 00:04:31,000
203
+ So it's a very straightforward play.
204
+
205
+ 52
206
+ 00:04:32,000 --> 00:04:33,000
207
+ I'm just going to execute now.
208
+
209
+ 53
210
+ 00:04:34,000 --> 00:04:40,000
211
+ So now it will bring all the options which are available in the dropdown and display its text.
212
+
213
+ 54
214
+ 00:04:45,000 --> 00:04:47,000
215
+ Brows are going to be started.
216
+
217
+ 55
218
+ 00:04:50,000 --> 00:04:51,000
219
+ Maximize.
220
+
221
+ 56
222
+ 00:04:54,000 --> 00:05:00,000
223
+ And now if I show you there, so it shows these are the three options while ching milk, because we
224
+
225
+ 57
226
+ 00:05:00,000 --> 00:05:04,000
227
+ have printed first selected option and then we are going for three options.
228
+
229
+ 58
230
+ 00:05:05,000 --> 00:05:09,000
231
+ If you want, I can just for the clarification.
232
+
233
+ 59
234
+ 00:05:10,000 --> 00:05:14,000
235
+ I can just make a line between them running one more time.
236
+
237
+ 60
238
+ 00:05:21,000 --> 00:05:26,000
239
+ Brother started maximized and task is done, I'm just checking here.
240
+
241
+ 61
242
+ 00:05:26,000 --> 00:05:28,000
243
+ So, yes, we are getting these three options.
244
+
245
+ 62
246
+ 00:05:30,000 --> 00:05:36,000
247
+ So here we have seen how we can fetch selected option and how we can fetch all options in the dropdown.
248
+
249
+ 63
250
+ 00:05:37,000 --> 00:05:38,000
251
+ That's all we have for the session.
252
+
253
+ 64
254
+ 00:05:39,000 --> 00:05:40,000
255
+ Thanks for watching this video.
256
+
35 - PyTest Unit Testing Framework for Python (Use to Execute Test Cases)/001 PyTest Introduction What is Pytest and How to use Pytest_en.srt ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1
2
+ 00:00:00,000 --> 00:00:02,000
3
+ Welcome to the testing world.
4
+
5
+ 2
6
+ 00:00:03,000 --> 00:00:09,000
7
+ So previously, we have seen how we can write selenium test cases using Python, and we have seen like
8
+
9
+ 3
10
+ 00:00:09,000 --> 00:00:13,000
11
+ we are writing in a Python file and then executing that python file.
12
+
13
+ 4
14
+ 00:00:14,000 --> 00:00:22,000
15
+ But in actual automation, we are going to use any unit testing framework for executing artist cases.
16
+
17
+ 5
18
+ 00:00:23,000 --> 00:00:26,000
19
+ So one of the framework is by test.
20
+
21
+ 6
22
+ 00:00:27,000 --> 00:00:31,000
23
+ So first of all, we need to understand what is best and why we are going to use Biotest.
24
+
25
+ 7
26
+ 00:00:32,000 --> 00:00:35,000
27
+ Biotest is a unit testing framework for the Python.
28
+
29
+ 8
30
+ 00:00:36,000 --> 00:00:42,000
31
+ We have many other framework as well, like unit test or nodes, but we are going to use byte test.
32
+
33
+ 9
34
+ 00:00:43,000 --> 00:00:50,000
35
+ But the question here is if we can execute our tasks even without PI test, what is the need of the
36
+
37
+ 10
38
+ 00:00:50,000 --> 00:00:51,000
39
+ test?
40
+
41
+ 11
42
+ 00:00:51,000 --> 00:00:53,000
43
+ So first of all, what is by test?
44
+
45
+ 12
46
+ 00:00:53,000 --> 00:00:55,000
47
+ It's a unit testing framework for the python.
48
+
49
+ 13
50
+ 00:00:56,000 --> 00:00:57,000
51
+ Why do we need it?
52
+
53
+ 14
54
+ 00:00:57,000 --> 00:01:02,000
55
+ So in protest or in your testing framework, we are going to get many advantages.
56
+
57
+ 15
58
+ 00:01:03,000 --> 00:01:06,000
59
+ First, we can execute our test.
60
+
61
+ 16
62
+ 00:01:07,000 --> 00:01:13,000
63
+ If you're writing multiple test in single python file and whenever we execute the Python file, it's
64
+
65
+ 17
66
+ 00:01:13,000 --> 00:01:15,000
67
+ going to execute all the desks.
68
+
69
+ 18
70
+ 00:01:16,000 --> 00:01:19,000
71
+ But by using byte test, we can control our execution.
72
+
73
+ 19
74
+ 00:01:20,000 --> 00:01:23,000
75
+ We can set in which condition what.
76
+
77
+ 20
78
+ 00:01:23,000 --> 00:01:29,000
79
+ All of this, because I want to execute, means we can conditionally execute our test cases.
80
+
81
+ 21
82
+ 00:01:30,000 --> 00:01:32,000
83
+ So that is one advantage we are going to get with by test.
84
+
85
+ 22
86
+ 00:01:33,000 --> 00:01:37,000
87
+ Next is can set the prerequisite and post script.
88
+
89
+ 23
90
+ 00:01:40,000 --> 00:01:44,000
91
+ Post script, so here it a post script.
92
+
93
+ 24
94
+ 00:01:44,000 --> 00:01:47,000
95
+ OK, what do you mean by the pre and post script?
96
+
97
+ 25
98
+ 00:01:48,000 --> 00:01:55,000
99
+ My requirement is before executing a test case, I want to connect with the database or I want to start
100
+
101
+ 26
102
+ 00:01:55,000 --> 00:01:57,000
103
+ browser and tell you all.
104
+
105
+ 27
106
+ 00:01:57,000 --> 00:02:03,000
107
+ So whatever the task you want to perform before executing your test case, we call it prerequisites.
108
+
109
+ 28
110
+ 00:02:04,000 --> 00:02:11,000
111
+ And whatever the task you want to perform after executing your task is the discard post script, so
112
+
113
+ 29
114
+ 00:02:11,000 --> 00:02:16,000
115
+ we can set the prerequisite and postscript in unit testing framework.
116
+
117
+ 30
118
+ 00:02:16,000 --> 00:02:21,000
119
+ So before execute a test case before execution, I want to make connection with the database.
120
+
121
+ 31
122
+ 00:02:21,000 --> 00:02:23,000
123
+ That's a prerequisite.
124
+
125
+ 32
126
+ 00:02:23,000 --> 00:02:27,000
127
+ And after execution, I want to break my connection from the database.
128
+
129
+ 33
130
+ 00:02:27,000 --> 00:02:29,000
131
+ That is post-script.
132
+
133
+ 34
134
+ 00:02:29,000 --> 00:02:32,000
135
+ So we can do that next.
136
+
137
+ 35
138
+ 00:02:32,000 --> 00:02:36,000
139
+ And very important is assertions here.
140
+
141
+ 36
142
+ 00:02:36,000 --> 00:02:38,000
143
+ First, we need to understand what is a solution.
144
+
145
+ 37
146
+ 00:02:39,000 --> 00:02:43,000
147
+ So with the help of this solution, we can compare actual results with the expected result.
148
+
149
+ 38
150
+ 00:02:44,000 --> 00:02:49,000
151
+ I take an example the men were testing whenever we are executing any manual desks.
152
+
153
+ 39
154
+ 00:02:50,000 --> 00:02:56,000
155
+ So at the end or in the middle of the test case, we are comparing actual results with expected results.
156
+
157
+ 40
158
+ 00:02:56,000 --> 00:03:04,000
159
+ And if that is past, so means test cases past as filled in the same way when we are going for automation.
160
+
161
+ 41
162
+ 00:03:04,000 --> 00:03:11,000
163
+ We are also comparing actual results with expected results on many places, and that can be done by
164
+
165
+ 42
166
+ 00:03:11,000 --> 00:03:12,000
167
+ using assertions.
168
+
169
+ 43
170
+ 00:03:13,000 --> 00:03:16,000
171
+ So we are going to use assertions which are coming with biased.
172
+
173
+ 44
174
+ 00:03:18,000 --> 00:03:26,000
175
+ Next and very important, once we complete our execution at the end, we want to generate a report that
176
+
177
+ 45
178
+ 00:03:26,000 --> 00:03:29,000
179
+ report can be generated by using Biotest.
180
+
181
+ 46
182
+ 00:03:29,000 --> 00:03:34,000
183
+ So these are the few advantages I have shown you many other advantages we are going to get with the
184
+
185
+ 47
186
+ 00:03:34,000 --> 00:03:37,000
187
+ Biotest with unit testing framework.
188
+
189
+ 48
190
+ 00:03:37,000 --> 00:03:42,000
191
+ And for this, of course, we are going to use a unit testing framework that is by test.
192
+
193
+ 49
194
+ 00:03:44,000 --> 00:03:51,000
195
+ So now we have seen what is brightest now to how we can set a fight test for setting up by deceit.
196
+
197
+ 50
198
+ 00:03:51,000 --> 00:03:56,000
199
+ First of all, we need to move for the command prompt and we know how we can use PIP.
200
+
201
+ 51
202
+ 00:03:56,000 --> 00:04:02,000
203
+ So PIP install bite test enter.
204
+
205
+ 52
206
+ 00:04:03,000 --> 00:04:09,000
207
+ It's going to start by test module, so let it execute first and then I'll show you.
208
+
209
+ 53
210
+ 00:04:11,000 --> 00:04:14,000
211
+ So it shows you already had that by just OK, let me check.
212
+
213
+ 54
214
+ 00:04:15,000 --> 00:04:16,000
215
+ Do I already have that?
216
+
217
+ 55
218
+ 00:04:16,000 --> 00:04:21,000
219
+ So I'm moving to Python interpreter and here I'm writing help.
220
+
221
+ 56
222
+ 00:04:24,000 --> 00:04:29,000
223
+ Modules show me the modules which are already installed, so here I'll show you.
224
+
225
+ 57
226
+ 00:04:29,000 --> 00:04:30,000
227
+ Do I have bite or not?
228
+
229
+ 58
230
+ 00:04:31,000 --> 00:04:35,000
231
+ If yes, it means it is already installed.
232
+
233
+ 59
234
+ 00:04:35,000 --> 00:04:40,000
235
+ But when we are going to install, like Bip installed by default, it will install Biotest on your machine.
236
+
237
+ 60
238
+ 00:04:43,000 --> 00:04:47,000
239
+ So here it shows the complete list, and if I check it here.
240
+
241
+ 61
242
+ 00:04:49,000 --> 00:04:50,000
243
+ I already have here.
244
+
245
+ 62
246
+ 00:04:51,000 --> 00:04:58,000
247
+ So if you educated that despite this, so it means we have ready to use brightest inner automation.
248
+
249
+ 63
250
+ 00:05:00,000 --> 00:05:02,000
251
+ That's all we have for the session.
252
+
253
+ 64
254
+ 00:05:02,000 --> 00:05:08,000
255
+ In next session, I'll show you how we can use brightest tanks watching this video.
256
+