#3 Create Selenium framework in C# from scratch for beginners | WebDriver Base Class | POM | Part 2

  Рет қаралды 5,176

Maximum Automation

Maximum Automation

Күн бұрын

Пікірлер
@anitak2196
@anitak2196 Жыл бұрын
Hi can you explain how to create a POM without using page factory in latest selenium version 4.9 using C#. As we have upgraded the selenium version from 3.141 to 4.9, the Page Bys are not supporting and throwing error like "System.TypeInitializationException : The type initializer for 'APPresentationReports.Bys' threw an exception. ----> OpenQA.Selenium.InvalidSelectorException : Compound class names not allowed." Please help me to resolve
@maximumautomation
@maximumautomation Жыл бұрын
Hi, Page factory is deprecated now in latest version of selenium. So instead of using page factory , you can create your page elements using By object By searchElement= By.Xpath("//div[@class='search']"); and then you can use this element inside your page methods. public void SearchItem(String item){ driver.FindElement(searchElement).SendKeys(Item); }
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 625 М.
Selenium C# How to Implement BaseTest(Inheritance)?
10:20
Testers Talk
Рет қаралды 6 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
#11 - Writing Page Object Model code for Selenium with C# .NET
12:32
Execute Automation
Рет қаралды 8 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Памяти Евгении Добровольской. Умерла 10 января 2025
37:45
How to Become a Highly Employable C# Developer in 2025
20:10
Gavin Lon
Рет қаралды 2,1 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН