#61 Playwright with Python | Assertions-Part1 | Verify Page title, URL, field value, text content

preview_player
Показать описание
#playwright
#python
#pytest
-----------------------------------------------
In this video we learned about below topics:
- How to verify Page title using Playwright
- How to verify Page URL using Playwright
- How to verify if a field has a specific value selected using Playwright
- How to verify element text using Playwright

------------------------------------------------
expect(dropdown).to_have_value('Label 2’)
expect(page).to_have_title('The Internet')
expect(new_window_txt).to_have_text('New Window')
expect(new_window_txt).not_to_have_text('Old Window’)
expect(locator).not_to_have_value(value, **kwargs)
expect(page).not_to_have_title(title_or_reg_exp, **kwargs)
Рекомендации по теме
Комментарии
Автор

sir how to handle angular tables in playwright

mahaboobsabmaniyar
Автор

Hi Neemo. SO what is the standard practise when using Pytest and Playwright, do we use 'assert' or 'expect'?

Yoyo-gfoi