CSS Attribute Selectors | Selenium WebDriver | CSS Selectors |

  Рет қаралды 9,440

H Y R Tutorials

H Y R Tutorials

4 жыл бұрын

In this video, I explained about CSS Attribute Selectors.
CSS Selector is a pattern used to find the elements in the HTML web page.
If you are writing that pattern using attributes and attribute values, then we call that pattern as CSS Attribute Pattern.
The [attribute] selector is used to find elements with a specified attribute.
The [attribute="value"] selector is used to find elements with a specified attribute and value.
The [attribute~="value"] selector is used to find elements with an attribute value containing a specified word.
The [attribute*="value"] selector is used to find elements whose attribute value contains a specified value.
The [attribute|="value"] selector is used to find elements with the specified attribute starting with the specified value.
The [attribute^="value"] selector is used to find elements whose attribute value begins with a specified value.
The [attribute$="value"] selector is used to find elements whose attribute value ends with a specified value.
Examples:
AttributeName ------------------------ input[placeholder]
AttributeValue ----------------------- input[placeholder='First Name']
AttributeValue-PartialText-WholeWord - input[placeholder~='question']
AttributeValue-PartialText-Text ------ input[placeholder*='que']
AttributeValue-StartsWith-WholeWord -- p[class|='my']
AttributeValue-StartsWith-Text ------- p[class^='my']
AttributeValue-EndsWith-Text --------- p[class$='lass']
To practice CSS Selectors, check out the below link:
www.hyrtutorials.com/p/css-se...
==============================================
▶️ Next Video Link: • CSS Combinator selecto...
◀️ Previous Video Link: • CSS Simple Selectors |...
↔️ CSS Selectors Playlist Link: bit.ly/2Rn0IbD
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
👑 Join my KZfaq channel to get access to perks:👇
/ @hyrtutorials
==============================================
==============================================
Connect us @
🔗 Website - www.hyrtutorials.com
🔗 Telegram - t.me/hyrtutorials
🔗 Facebook - / hyrtutorials
🔗 LinkedIn - / hyrtutorials
🔗 Twitter - / hyrtutorials
🔗 Instagram - / hyrtutorials
==============================================
==============================================
🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
#hyrtutorials #selenium #cssselectors
CSS Selectors By Yadagiri Reddy
css selector,css selectors,css selectors tutorial,css selectors tutorial for selenium,how to use css selector in selenium webdriver,css selector selenium,css selector selenium java,understanding css selectors,what are css selectors,css selector types,css selectors in selenium,selenium,webdriver,selenium java,how to write css selector?,hyr
CSS Attribute Selectors, css tutorial
hyr tutorials,yadagiri reddy, yadagiri reddy h, h yadagiri reddy, h y reddy, yada giri reddy

Пікірлер: 20
@HYRTutorials
@HYRTutorials 4 жыл бұрын
↔️ CSS Selectors Playlist Link: bit.ly/2Rn0IbD ✴ Checkout my other playlists: bit.ly/3gLIAVL ☕ Buy me a coffee: bit.ly/33ljBWc
@mohanramakrishnakonijety9405
@mohanramakrishnakonijety9405 15 күн бұрын
Thank you
@muhammadzia9421
@muhammadzia9421 3 жыл бұрын
very nicely explained. keep up the good work :)
@HYRTutorials
@HYRTutorials 3 жыл бұрын
Thankyou 😊
@MuksEmmaN
@MuksEmmaN 5 ай бұрын
Thanks
@jayitapatra5336
@jayitapatra5336 4 жыл бұрын
Please, can you show how the same elements can be located both by Xpath as well CSS and which is better and when to use which one. Pros and cons of both. Please show practically.
@HYRTutorials
@HYRTutorials 4 жыл бұрын
Yeah I'm going to make a video on that very soon.
@jayitapatra5336
@jayitapatra5336 4 жыл бұрын
thank u for quick response
@parshiphani1283
@parshiphani1283 Жыл бұрын
can we use all the 7 attribute in real time work
@HYRTutorials
@HYRTutorials 11 ай бұрын
Yes buddy
@manojKumar-si4ml
@manojKumar-si4ml Жыл бұрын
Can we find the element based on text on that element using css selector?
@HYRTutorials
@HYRTutorials Жыл бұрын
You can but it won't work 100% buddy
@BiranchiNarayanNayak
@BiranchiNarayanNayak 3 жыл бұрын
Gave thumbs down due to annoying too much ads
@HYRTutorials
@HYRTutorials 3 жыл бұрын
KZfaq is a free platform to get the knowledge brother As a creator how much time we spent on making this video. Just understand this before you take such decisions. Anyway thankyou for watching my video.
@dinkarinjosh
@dinkarinjosh 2 жыл бұрын
@@HYRTutorials dont bother, you are doing a great job.
@HYRTutorials
@HYRTutorials 2 жыл бұрын
@@dinkarinjosh thankyou 😊
@chandanadk3066
@chandanadk3066 3 жыл бұрын
Thanks
@HYRTutorials
@HYRTutorials 3 жыл бұрын
Keep watching
CSS Combinator selectors | Selenium WebDriver | CSS Selectors |
11:48
H Y R Tutorials
Рет қаралды 7 М.
CSS Simple Selectors | Selenium WebDriver | CSS Selectors |
14:51
H Y R Tutorials
Рет қаралды 19 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 66 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 120 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 25 МЛН
Perform Click Operation using JavascriptExecutor in Selenium WebDriver
22:17
How to Handle Frames in Selenium WebDriver
21:20
H Y R Tutorials
Рет қаралды 57 М.
Enter Text into a Textbox using JavascriptExecutor in Selenium WebDriver
17:11
XPath vs CSS Selector in Selenium WebDriver | XPath | CSS Selector |
17:53
What is Agile?
15:22
Telusko
Рет қаралды 983 М.