37,460 views
Automation testing courses from scratch - https://threadqa.ru/courses.html In this video, I talked about how to search for elements on a page using Xpath and Css from scratch. The elements found can be used in Selenium or Selenide and autotests can be written. The skill of finding xpath is very useful in the field of testing automation. Various options for finding elements in different ways were considered. Xpath is more universal for walking up and down the DOM tree on a page. CSS selector does not allow to do this, it is better if you find a single element without complex logic Boosty - https://boosty.to/threadqa Writing autotests and infrastructure from scratch to order - https://threadqa.ru/ Our chat in telegram where you can communicate and ask questions about autotests - https://t.me/threadqa Support the author - https://www.tinkoff.ru/cf/Lo21kq4VNG My group in VK - https://vk.com/threadqa Api autotests from scratch №1 - • API Autotests from scratch Rest Assured Api autotests from scratch №2 - • API Autotests from scratch Rest Assured h... UI autotests from scratch Selenium - • Autotests from scratch Selenium Java UI autotests from scratch Selenide - • Autotests from scratch Selenide Java Allure - • Installing Allure for Gradle Selenium ... 00:00:00 start 00:01:00 web page and dev tools 00:02:10 difference between css and xpath 00:03:45 browser xpath 00:05:44 xpath from scratch 00:10:10 attributes 00:16:06 finding an element with two attributes 00:17:56 contains method 00:23:48 not contains method 00:25:38 elements inside a block 00:29:30 skipping elements inside a block 00:30:45 finding an element immediately inside a block 00:33:24 the word ancestor 00:35:35 moving up and down by 1 element 00:37:37 find different elements with one xpath 00:39:12 last method 00:41:27 xpath logical operators 00:44:18 searching by text 00:47:50 searching without a tag by xpath attribute 00:48:38 CSS selectors 00:50:40 regular expression in css 00:52:40 contains in css 00:53:22 down-tree refinement 00:56:26 logical operators css 00:57:38 last method in css 00:59:00 search without tag by css attribute