News for hackers. Stuff that matters.
Re:Playwright for .NET is now stable by hpaavola on Thursday June 10, 2021 @06:51AM (#27459206)
Pair Playwright with Robot Framework (https://github.com/MarketSquare/robotframework-browser) and you'll get awesome browser automation with solid reporting, good test instrumentation and support for pretty much any TA need you might have besides browser automation.
Re:Playwright for .NET is now stable by rullopat on Thursday June 10, 2021 @08:42AM (#27459985)
Playwright is fantastic, but having used a lot Robot Framework in the past, I would not recommend it even to my worst enemy. The experience he continuous from string / to string conversions that you need to do with the content of the steps and the orrible structure of the directories and the amount of glue code to share some common methods around, brought me to don't even take into consideration job offers that have "Robot Framework" in them.
Re:Playwright for .NET is now stable by hpaavola on Thursday June 10, 2021 @09:50AM (#27460745)
RF does automatic type conversion based on the typehints in the python libraries used. So no need to change types manually. And there is no dictated directory structure. So, stop doing horrible directory structures and the pain goes away. And there is no glue at all needed to share methods at all. Write function in Python/keyword in Robot framework and take it in use using "Resource" or "Library" statement. Done.
Re:Playwright for .NET is now stable by hpaavola on Thursday June 10, 2021 @10:03AM (#27460893)
test.robot

    *** Settings ***
    Library    calc.py


    *** Test Cases ***
    My First Library
        ${sum}    Plus    1    2
        Should Be Equal As Integers    ${sum}    3
calc.py

    def plus(a: float, b: float):
        return a + b
No manual casting, no extra directories, no complicated sharing of functions.