{"id":15135026,"url":"https://github.com/testingbot/testingbot-electron-demo-app","last_synced_at":"2026-02-09T04:07:42.580Z","repository":{"id":253785763,"uuid":"844519660","full_name":"testingbot/testingbot-electron-demo-app","owner":"testingbot","description":"TestingBot Electron Demo App","archived":false,"fork":false,"pushed_at":"2024-08-23T13:13:53.000Z","size":668,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-20T05:13:47.366Z","etag":null,"topics":["demo-app","electron","electron-app","electron-demo","testingbot"],"latest_commit_sha":null,"homepage":"https://testingbot.com/support/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testingbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T12:32:59.000Z","updated_at":"2024-08-23T13:13:56.000Z","dependencies_parsed_at":"2024-10-31T14:21:52.870Z","dependency_job_id":"0e486575-b913-4260-b5da-0b4d08ab2d30","html_url":"https://github.com/testingbot/testingbot-electron-demo-app","commit_stats":null,"previous_names":["testingbot/testingbot-electron-demo-app"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/testingbot/testingbot-electron-demo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot-electron-demo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot-electron-demo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot-electron-demo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot-electron-demo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testingbot","download_url":"https://codeload.github.com/testingbot/testingbot-electron-demo-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot-electron-demo-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29256056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T03:07:45.136Z","status":"ssl_error","status_checked_at":"2026-02-09T03:07:24.123Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo-app","electron","electron-app","electron-demo","testingbot"],"created_at":"2024-09-26T05:42:00.693Z","updated_at":"2026-02-09T04:07:42.519Z","avatar_url":"https://github.com/testingbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testingbot-electron-demo-app\n\nThis repository contains a simple calculator app, built by TestingBot to demonstrate automated testing against Electron-based apps.\n\n![Electron Calculator App](screenshot.jpg?raw=true \"Electron Demo App\")\n\n## NodeJS Example\n\nBelow is an example on how to run this demo Electron app on TestingBot's remote machines:\n\n```javascript\nconst { Builder, By } = require('selenium-webdriver');\nconst { Options } = require('selenium-webdriver/chrome');\n\n(async function example() {\n    let driver;\n\n    try {\n        // Set capabilities\n        let caps = {\n            browserName: 'electron',\n            platformName: 'VENTURA',\n            browserVersion: '31',\n            'tb:binary_location': 'testingbot-electron-demo-app.app/Contents/MacOS/testingbot-electron-demo-app',\n            'tb:app': 'https://github.com/testingbot/testingbot-electron-demo-app/releases/download/v1.0.0/testingbot-electron-demo-app-darwin-arm64-1.0.0.zip'\n        };\n\n        driver = await new Builder()\n            .usingServer('https://key:secret@hub.testingbot.com/wd/hub')\n            .withCapabilities(caps)\n            .build();\n\n        // Generate two random numbers between 0 and 9\n        const num1 = Math.floor(Math.random() * 10);\n        const num2 = Math.floor(Math.random() * 10);\n\n        const firstNumber = await driver.findElement(By.id(`btn-${num1}`));\n        const secondNumber = await driver.findElement(By.id(`btn-${num2}`));\n        const plus = await driver.findElement(By.id('btn-plus'));\n        const equal = await driver.findElement(By.id('btn-equal'));\n\n        // Perform operations\n        await firstNumber.click();\n        await plus.click();\n        await secondNumber.click();\n        await equal.click();\n\n        // Get the result\n        const resultElement = await driver.findElement(By.id('calc-display'));\n        const resultText = await resultElement.getText();\n\n        // Verify the result\n        if ((num1 + num2) !== parseInt(resultText)) {\n            throw new Error('Test failed');\n        }\n\n    } catch (error) {\n        console.error('Error during test execution:', error);\n    } finally {\n        if (driver) {\n            await driver.quit();\n        }\n    }\n})();\n```\n\n## More information\n\nMore information is available on [TestingBot's Electron Documentation](https://testingbot.com/support/electron).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Ftestingbot-electron-demo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestingbot%2Ftestingbot-electron-demo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Ftestingbot-electron-demo-app/lists"}