Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669446yMe: find Id xyz
Selenium: where is it?
Me: right there at the bottom of the screen
Selenium: nope can't see it
Me: scroll the fuck down
Selenium: nope still don't see it
Me: write some xpath to go to it instead
Selenium: oh there it is with id xyz
Me: 😖I hate you some days -
realngnx1466y@C0D4 Selenium at first: It's so easy, why haven't I used it before!
Some days later: FFS! -
Yep, I also leverage HtmlAgilityPack with Selenium, because sometimes HAP can find stuff faster but use Selenium for navigating pages.
-
C0D4669446y@realngnx i do enjoy punching out an automation script in an hour or so.
But when it doesn't want to behave, it's maddening. -
Root797346yI absolutely feel your pain.
I fought with that quite a but, and the dreaded "stale element reference" error.
But! Know that Crappybara is worse, despite using Selenium as its backend. -
realngnx1466y@C0D4 Thank God I'm free from using it nowadays, but back then I used to always carry a paracetamol with me.
-
realngnx1466y@Root "Stale element reference" oof
Never used Capybara, but if it's backed by Selenium, it can't be a good thing. -
NarkoCat2856yAh, the inconsistency of Selenium tests is wonderful. I am so glad that I am not working on frontend tests anymore.
Related Rants
Me: This element is ID located (and visible) in your page, so it must contain it.
Selenium: I've never seen that element!
devrant
crawlers
java
python
selenium