Code Monkey home page Code Monkey logo

Comments (4)

mxschmitt avatar mxschmitt commented on May 12, 2024 1

Hey! The file is currently located in a fork: https://github.com/mxschmitt/playwright/tree/docs/golang-generation

I can also take a look probably tomorrow if you want. :)

from playwright-go.

rusq avatar rusq commented on May 12, 2024

Also, when trying to regenerate the files, I'm struggling to find the
playwright/utils/doclint/generateGoApi.js

dug through the playwright repo commits with no luck. How does this work?

Using this dockerfile to create a build env:

FROM mcr.microsoft.com/playwright:bionic

WORKDIR /tmp
RUN curl -LO https://golang.org/dl/go1.16.3.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
RUN echo 'export PATH=/usr/local/go/bin:$PATH' >> /root/.bashrc
    

WORKDIR /build

COPY  . .
# ms/playwright is cloned in the same dir as go-playwright and moved to / during the build.
RUN mv playwright ..


ENTRYPOINT [ "/bin/bash" ]

Running

root@abf47fdd0385:/build# ./scripts/generate-api.sh 
Generating Interfaces
Generated Interfaces
internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module '/playwright/utils/doclint/generateGoApi.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
root@abf47fdd0385:/playwright# find . -iname generateGoApi.js
root@abf47fdd0385:/playwright# 

from playwright-go.

rusq avatar rusq commented on May 12, 2024

from playwright-go.

rusq avatar rusq commented on May 12, 2024

Thanks Max, I was able to run the generate script, and as expected it did not generate the StorageStateOption (otherwise, it would already be here 28 days ago, when you bumped the version to 1.10)

This library is a good effort, thank you!

from playwright-go.

Related Issues (20)

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.