Giter Club home page Giter Club logo

demo.playwright's Introduction

Hello ๐Ÿ‘‹ Welcome to my GitHub Profile.

  • โ” Ask me about ...

Subjects: Testing, Infrastructure as Code (IaC), Source control (Git, TFVC), Continuous Integration (CI) and Continuous Delivery (CD), Agile software development (Scrum, Kanban), and software developer productivity.

Tech: Playwright, Azure Bicep, ARM Templates, Azure DevOps (Pipelines, Boards, Test Plans, Artifacts), PowerShell, .NET, Visual Studio, VS Code, Azure, AWS, NuGet, Octopus Deploy, Terraform, GitHub Actions, IIS, SQL Server, SonarQube.

demo.playwright's People

Contributors

jfgreffier avatar marcusfelling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo.playwright's Issues

Make local run easier

This repo is great as a resource, but most tests won't run locally out of the box.

The first issue is that the base URLs are set in the Github Actions. What do you think of moving them in the test ? URLs are then hardcoded but the tests can run independently. Another solution is using one .env file defining the different base URL.

[Idea for testing scenario] Using fixtures with multiple browser windows/tabs in single test

Hello, can you provide an example of using fixtures in situations when i want to initialize page object for multiple pages inside single test? For example i have Livechat class and i want to init livechat page object for each browser. How to achieve this with using fixtures? I understand how to do this while using a single page instance in your test like this example: https://github.com/MarcusFelling/demo.playwright/blob/main/basic/pom/pom-with-fixtures.spec.ts but not sure how to do this with multiple pages in single test.

  test('Test with multiple livechat windows', async ({ browser }) => {
    const browserWindow1 = await browser.newContext() 
    const browserWindow2 = await browser.newContext()
    const browserWindow3 = await browser.newContext()

    const page1 = await browserWindow1.newPage()
    const page2 = await browserWindow2.newPage()
    const page3 = await browserWindow3.newPage()
    
    const livechat1 = new Livechat(page1)
    const livechat2 = new Livechat(page2)
    const livechat3 = new Livechat(page3)
    
    await livechat1.startSession()
    await livechat2.startSession()
    await livechat3.startSession()
    ...
   })
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.