|
@@ -138,7 +138,7 @@ from pyppeteer import launch
|
|
|
async def main():
|
|
|
|
|
|
browser = await launch({
|
|
|
- 'executablePath': '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
|
|
|
+ 'executablePath': '%s',
|
|
|
'headless': True
|
|
|
})
|
|
|
page = await browser.newPage()
|
|
@@ -173,7 +173,7 @@ async def main():
|
|
|
asyncio.run(main())
|
|
|
`
|
|
|
|
|
|
- pyCode = fmt.Sprintf(pyCode, reportUrl, filePath)
|
|
|
+ pyCode = fmt.Sprintf(pyCode, utils.ChromeDrivePath, reportUrl, filePath)
|
|
|
|
|
|
cmd := exec.Command("python3", "-c", pyCode)
|
|
|
_, err = cmd.CombinedOutput()
|
|
@@ -191,7 +191,7 @@ from pyppeteer import launch
|
|
|
async def main():
|
|
|
|
|
|
browser = await launch({
|
|
|
- 'executablePath': '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
|
|
|
+ 'executablePath': '%s',
|
|
|
'headless': True
|
|
|
})
|
|
|
page = await browser.newPage()
|
|
@@ -217,7 +217,7 @@ async def main():
|
|
|
asyncio.run(main())
|
|
|
`
|
|
|
|
|
|
- pyCode = fmt.Sprintf(pyCode, reportUrl, filePath)
|
|
|
+ pyCode = fmt.Sprintf(pyCode, utils.ChromeDrivePath, reportUrl, filePath)
|
|
|
|
|
|
cmd := exec.Command("python3", "-c", pyCode)
|
|
|
|