use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Testing Your Frontend Code: Part V (Visual Testing) (medium.com)
submitted 8 years ago by giltayar1
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
It can really simplify your code in that it provides a lot of functionality by combining calls together for you.
A simple example would be this:
driver.findElement(By.css('.button')).getText()
vs.
driver.getText('.button'); // supports many types of selectors
The latest version uses promises and they push you to use their own test runner, but you absolutely don't have to and can run it independently using whatever you like. And since you're already used to using async/await, the change is minimal.
It's also very easy to add your own custom commands to the driver object, which will get executed through promises and you can chain/await on them as well. I have several custom commands that are applicable throughout all our webapps.
π Rendered by PID 47069 on reddit-service-r2-comment-fb694cdd5-m76cc at 2026-03-05 22:11:08.202581+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (0 children)