Тёмный

How To Handle Inputs And Buttons | Playwright With TypeScript Tutorial 🎭| Part IV | LambdaTest 

LambdaTest
Подписаться 29 тыс.
Просмотров 8 тыс.
50% 1

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

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@LambdaTest
@LambdaTest 2 года назад
GitHub: github.com/ortoniKC/playwright-ts-lambdatest
@Zovc
@Zovc 23 дня назад
The thunder storm moment is priceless 🤭 Loved it!
@brandtjryan
@brandtjryan 3 месяца назад
@18:31 "It's not that easy my friend." 😄
@rajendraprasad9718
@rajendraprasad9718 10 месяцев назад
Hi Sir, await myElement.selectOption(testData.type) --> input value await myElement.click() -> submit o/p : getting output value with type name Please let me know how to validate(compare) input value is equal to the output value
@LambdaTest
@LambdaTest 9 месяцев назад
Sure, will get back to you on this soon
@brandtjryan
@brandtjryan 3 месяца назад
FYI: "type" is now deprecated (at least in version 5.4.5 which vscode uses currently)
@LambdaTest
@LambdaTest 3 месяца назад
Thanks, Brandt
@ecatzkool7027
@ecatzkool7027 2 года назад
Great videos! Got a simple question. I noticed that sometimes a semi-colon is included at the end of sentence but sometimes its not. I believe they are ignored as they didn't cause any error. Is there a reason to include them, or not? Thanks.
@LambdaTest
@LambdaTest 2 года назад
Semicolons are an essential part of JavaScript code. They are read and used by the compiler to distinguish between separate statements so that statements do not leak into other parts of the code. The good news is that JavaScript includes an automatic semicolon feature. Due to this feature, sometimes one can go without adding the semicolon in the end.
@sandeepbhadgaonkar
@sandeepbhadgaonkar Год назад
Hi, how to handle toggle switch in a website using Playwright C#? I want to check of the switch is on or off.
@LambdaTest
@LambdaTest Год назад
To handle toggle switches with Playwright in C#: 1.Identify the toggle switch using a selector. 2.Check its state, which could be based on: - A CSS class (e.g., 'active'). - An attribute (e.g., 'checked' for checkboxes). - Textual content (e.g., "ON" or "OFF").
@sandeepbhadgaonkar
@sandeepbhadgaonkar Год назад
@@LambdaTest thanks for the reply Sir. The funny thing is the element doesnt have any of such attribute. It has background-color: rgb(255, 255, 255), thinking to use that, any idea how to capture it using C#?
@LambdaTest
@LambdaTest Год назад
Hey Sandeep, You're welcome! If the element has a CSS style with background-color: rgb(255, 255, 255), you can capture this in C# using Selenium. Here's how: // Assuming you have initialized your WebDriver as 'driver' IWebElement element = driver.FindElement(By.YourSelector("your-element-selector")); string backgroundColor = element.GetCssValue("background-color"); The backgroundColor variable will now hold the value rgb(255, 255, 255). Ensure you replace By.YourSelector("your-element-selector") with the appropriate method to locate your element (e.g., By.Id, By.ClassName, etc.). Let us know if this helps
@sonardhananjay
@sonardhananjay Год назад
what extension yu use in chrome to check xpaths?
@LambdaTest
@LambdaTest Год назад
Hey Dhananjay There are a number of extension you can use. Please refer to the blog to choose from the list www.lambdatest.com/blog/chrome-extensions-to-find-xpath-in-selenium
Далее
THIS is Playwrights BEST Feature for Web Automation
9:45