{"id":16759893,"url":"https://github.com/corevo/webdriver-async-failure","last_synced_at":"2025-03-16T08:41:03.035Z","repository":{"id":99024819,"uuid":"142288475","full_name":"corevo/webdriver-async-failure","owner":"corevo","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-26T07:39:08.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T20:51:43.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corevo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-07-25T11:05:04.000Z","updated_at":"2018-07-26T07:39:09.000Z","dependencies_parsed_at":"2023-06-30T06:49:41.207Z","dependency_job_id":null,"html_url":"https://github.com/corevo/webdriver-async-failure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corevo%2Fwebdriver-async-failure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corevo%2Fwebdriver-async-failure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corevo%2Fwebdriver-async-failure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corevo%2Fwebdriver-async-failure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corevo","download_url":"https://codeload.github.com/corevo/webdriver-async-failure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846984,"owners_count":20357297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-13T04:09:17.018Z","updated_at":"2025-03-16T08:41:02.993Z","avatar_url":"https://github.com/corevo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## selenium-webdriver throws without capturing the stacktrace\n\n`yarn` or `npm install`\n\n`yarn test` or `npm test`\n\nThe result is that the error won't be caught [here](https://github.com/corevo/webdriver-async-failure/blob/master/async.test.js#L12), nor will jest.  \nIt will cause jest to unexpectedly exit, before even giving time to quit the drivers correctly.\n\n## Difference in stacktrace capturing, the test framework is able to catch the error\n\n![image](https://user-images.githubusercontent.com/888886/43205148-5f43f03a-902b-11e8-8a22-1b472b2ebf8b.png)\n\n## Proposed solution\n\nA change to `perform()`.  \nhttps://github.com/SeleniumHQ/selenium/blob/selenium-3.6.0/javascript/node/selenium-webdriver/lib/actions.js#L116\n\n```js\nperform() {\n  // Make a protected copy of the scheduled actions. This will protect against\n  // users defining additional commands before this sequence is actually\n  // executed.\n  let actions = this.actions_.concat();\n  let driver = this.driver_;\n  return Promise.all(actions.map((action) =\u003e {\n    return driver.schedule(action.command, action.description);\n  }));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorevo%2Fwebdriver-async-failure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorevo%2Fwebdriver-async-failure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorevo%2Fwebdriver-async-failure/lists"}