Leave a Reply

39 Comments on "Selenium, Totally Tooling Tips (S3, E14)"

Notify of
avatar

Ashish Desai
Guest
Ashish Desai
5 months 30 days ago

Matt, what terminal are you using in this machine? Are you using windows? Is that the bash for windows? Are you using oh-my-zsh? I cant get my terminal to be colorful like yours. Oh-my-zsh on windows uses really unreadable colors.

Ievgen Furmanskyi
Guest
Ievgen Furmanskyi
7 months 17 days ago

Which benefits selenium has against karma?

comet3bc13
Guest
comet3bc13
7 months 19 days ago

Super recently, super fast, super reliable. Super awesome

ConquerJS
Guest
ConquerJS
7 months 28 days ago

Why all the chaining? You don't need to do that with selenium api for node it has a promise manager that manages promises for you unles syou want to extract a value.

ConquerJS
Guest
ConquerJS
7 months 28 days ago

I'm recording a series of videos on using webdriverJS (there are too few resources) hopefully I can get the first batch of videos up by next week.

ConquerJS
Guest
ConquerJS
7 months 28 days ago

You are far more experienced than me (You work at Google!) I've only been working with webdriver since last fall (and still learning) but I've been building a pretty big test suite with it since and the recommended pattern is to let the promise manager do it's thing and use implicit/explicit waits when required. Finally when you get into more large scale suites with a ton of helper functions you'll find the more you can trim callbacks the better.

Matt Gaunt
Guest
Matt Gaunt
7 months 28 days ago

ConquerJS this could be personal preference. if the API returns a promise (which it does) I'm much more comfortable waiting on the promise than not, especially in a test runner when run away sync code could cause a great deal of confusion and pain.

ConquerJS
Guest
ConquerJS
7 months 28 days ago

Right off the bat the executeScript(); command doesn't need to be chained to the driver.get() command. webdriverJS will always wait for the page to be fully loaded before proceeding. You could just start writing your executeScript() on the next line without 'then(callback())'I have never used mocha in the way you use it so forgive me if I'm missing what is actually going on in the code and if you needed to chain to pass down a value…

Matt Gaunt
Guest
Matt Gaunt
7 months 28 days ago

If you can show me an example I'd love to see what you mean.

Emmanuel Valverde Ramos
Guest
Emmanuel Valverde Ramos
8 months 27 days ago

Matt how many hours of battery do you get from your Dell XPS13 and did you need to configure anything?

Emmanuel Valverde Ramos
Guest
Emmanuel Valverde Ramos
8 months 21 days ago

By the way, I work everyday with selenium with Java, but I don't really know how to setup the environment so that I could work with javascript, that would be a good video.

Matt Gaunt
Guest
Matt Gaunt
8 months 22 days ago

I didn't configure anything and I honestly can't tell you how much time I get, but never thought it was unreasonable. (Around 4 or 5 hours on avg.)

shkico
Guest
shkico
9 months 1 day ago

very good vids but pls lower the sound of intro, it is way to loud

Leon Mwazange
Guest
Leon Mwazange
9 months 9 days ago

@Matt rocking an XPS 🤘I got one too. (Late 2016 XPS13)

Richard Rose
Guest
Richard Rose
9 months 16 days ago

Nice episode – very scary as I had just looked at exactly the same thing.

Josh Martin
Guest
Josh Martin
9 months 16 days ago

SO HELPFUL! MORE ON SELENIUM!

Reuben Pasquini
Guest
Reuben Pasquini
9 months 17 days ago

Take a look at karmajs when you get the chance – I like it a lot for running unit tests in browser from the command-line and in CI. I think it's basically the equivalent of your "selenium assistant", although I'm not sure if karma uses selenium under the hood or not to manage the browser interaction. I would be interested to know what you think of it: karma-runner.github.io/1.0/index.html

Matt Gaunt
Guest
Matt Gaunt
9 months 17 days ago

I actually checked it out fairly recently and it's nice the amount it does for you.The main thing I got stuck up on was it didn't look like I could access the selenium-webdriver instance directly, which has been needed for some of the UI and push use cases. But I could have been using it wrong…

1 2 3
wpDiscuz