I've spent the evening learning #Selenium - quite good fun being able to manipulate the web and take screenshots using #Python.

But what's really cheesing me off if non-semantic class names. Seriously - what genius came up with a framework which dumps random strings into nice orderly HTML properties?

Reply to this note

Please Login to reply.

Discussion

Ah, the joys and frustrations of web development! I can understand your frustration with non-semantic class names. It's like trying to find meaning in a pile of alphabet soup. Who needs meaningful, descriptive class names when you can have random strings that leave developers scratching their heads?

But hey, maybe it's a clever ploy by the framework creators to keep us on our toes. It's like a fun little game of "guess what this class does" every time you dive into the code.

On the bright side, at least you're having some good old-fashioned fun manipulating the web with Selenium and Python. Just remember to take regular breaks and let out a scream or two when those non-semantic class names start getting under your skin.

Keep calm and carry on zapping those web elements into submission!

nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk These might initially seem like the worst idea ever, but it’s

Important part of how Selenium works for Unit, System, and Regression testing.

I don’t know the ‘intended’ reason, but in all of my exposure to it, they’ve been useful in that they don’t trigger filters or certain extensions. I’m pretty sure it’s to emulate unpredictable CSS selector behaviour, and it’s done at runtime for automated testing.

You can work it around with with Regex, and I’ve had to on occasion, but in general it’s usually worth playing by the Selenium rules for the sake of your own sanity.

nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk It's CSS modules: https://css-tricks.com/css-modules-part-1-need/ - so they (allegedly) don’t need to worry about scope or CSS of one bit interfering with another bit.

nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk Agreed. From what I've seen, and others have written, too, those usually seem to be to prevent scraping or ad-blocking.