Тёмный

Playwright with TS - Page Object Model - Setup 

QA Automation Alchemist
Подписаться 2 тыс.
Просмотров 3,6 тыс.
50% 1

Playwright with TS - Page Object Model - Setup
Locators basics:
• Playwright with Java -...
• Playwright with Java -...
• Playwright with Java -...

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@coolmahen
@coolmahen Год назад
Thanks for sharing valuable info.QQ Under formPage.ts ;if line 4 is replaced with public static fname = '#firstname'; then line 16 await this.page.locator(Form.firstname).type(fname); My current real-time (POM)project looks like the above. Is this also considered a proper coding standard? Your input is highly appreciated.
@QaAutomationAlchemist
@QaAutomationAlchemist Год назад
Thanks for asking . You can use it. However, Use static variables when you want to share data or configuration across all instances of a class. Use instance variables (accessed via this) when you need to store and access data that is specific to each instance of an object. Better use "this", as it will be individual instance, so that you can change ( in specific test and will not impact other test ) or use in parallel testing.
@coolmahen
@coolmahen Год назад
@@QaAutomationAlchemist Thank you for your explanation.👍
@mr.hgorgan1812
@mr.hgorgan1812 Год назад
awesome content, nice and easy with the screenshot and video options in the config file. One question: in the case of a major project with hundreds of tests, will those features (screenshot and video capture) hinder the test run speed?
@QaAutomationAlchemist
@QaAutomationAlchemist Год назад
You can set video and screenshots on only test failures Go to Playwright. config. ts file and under use add the flag screenshot: 'only-on-failure'.
Далее
Playwright with TS - Hooks and Pre-defined Fixtures
15:14
Page Object Model in Playwright
29:17
Просмотров 24 тыс.
pumpkins #shorts
00:39
Просмотров 25 млн
Page Object Model In Playwright With JavaScript
41:48
pumpkins #shorts
00:39
Просмотров 25 млн