TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Remote-Browser – A browser automation framework based on the Web Extensions API

66 pointsby foobabout 7 years ago

3 comments

mixologicabout 7 years ago
&quot;The central idea behind Remote Browser is that there&#x27;s no need to reinvent the wheel when modern browsers already ship with an extremely powerful cross-browser compatible API that&#x27;s suitable for automation tasks.&quot;<p>Thats already what the webdriver API accomplishes, and its a w3c standard. <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;webdriver&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;webdriver&#x2F;</a><p>People still call it &#x27;selenium&#x27; for whatever reason, but chromedriver&#x2F;geckodriver&#x2F;edgedriver are all implementations of the protocol for each existing browser (safari&#x27;s might be built in?).<p>Granted the web extensions API would likely allow for some additional powerful options, but at the cost of some missing features.
评论 #16845493 未加载
scottfrabout 7 years ago
The Web Extension APi doesn&#x27;t seem too suitable for browser automation as it doesn&#x27;t have support for simulating key presses or mouse movements (other than HTMLElement&#x27;s click method).<p>Yeah, you can simulate events, but that can be a lot of work (e.g. typing an &#x27;a&#x27; key might require you to simulate all of keydown, keypress, and keyup and set various non-standardized properties on them). And that won&#x27;t even work in a standard text input as isTrusted is set to False on events you generate. Simulating something like a Tab key press will require you writing code to try to replicate your browser&#x27;s logic in determining what the next element should be.<p>Why would this be preferable over something like Selenium?
评论 #16845501 未加载
评论 #16845471 未加载
tal_berznizabout 7 years ago
Cool idea - Web Extensions API are very powerful.<p>How would you go about installing the extension in a CI&#x2F;CD setup? Can it be installed on headless Chrome?
评论 #16845600 未加载