Giter VIP home page Giter VIP logo

Comments (3)

super-kamil avatar super-kamil commented on August 16, 2024
TypeError: Cannot read properties of undefined (reading 'match')
    at chrome (C:\Users\info\Projects\xxx\wcs\b-input\node_modules\wct-local\lib\browsers.js:115:36)
    at Object.<anonymous> (C:\Users\info\Projects\xxx\wcs\b-input\node_modules\wct-local\lib\browsers.js:88:38)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\info\Projects\xxx\wcs\b-input\node_modules\wct-local\lib\browsers.js:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
/**
 * @param browser A launchpad browser definition.
 * @return A selenium capabilities object.
 */
function chrome(browser, browserOptions) {
    return {
        'browserName': 'chrome',
        'version': browser.version.match(/\d+/)[0],
        'chromeOptions': {
            'binary': browser.binPath,
            'args': browserOptions || ['start-maximized']
        }
    };
}

Browser object:

browser {
  name: 'chrome',
  path: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',
  binPath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
}

Version property is missing.

from tools.

MattAllen31 avatar MattAllen31 commented on August 16, 2024

@super-kamil so what exactly was the fix?

from tools.

chiragshivam avatar chiragshivam commented on August 16, 2024

Do we have any fix for this yet?
I could see that while installing the web-component-tester module, it tries to install launchpad from forllowing commitin the package.json
"dependencies": {
"@types/express": "^4.0.30",
"@types/freeport": "^1.0.19",
"@types/launchpad": "^0.6.0",
"@types/which": "^1.3.1",
"chalk": "^2.3.0",
"cleankill": "^2.0.0",
"freeport": "^1.0.4",
"launchpad": "git+https://github.com/web-padawan/launchpad.git#fdd994d089572e2c2152d70cc74abf497d08d5b7",
"selenium-standalone": "^6.7.0",
"which": "^1.0.8"
}

was there any specific reason for this?
Am I missing something here?

from tools.

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.