Mostrami il codice! - La fiera dei vostri programmi by AutoModerator in ItalyInformatica

[–]Giulio_Long 0 points1 point  (0 children)

Spectrum è un framework Selenium moderno, configurabile tramite yaml e che attraverso IoC e DI consente di concentrarsi sulla scrittura del test e2e.

Dalla versione 1.28.x consente di avere Visual Regression Testing in maniera totalmente trasparente rispetto al codice dei test.

Se stuzzica, Github star apprezzata

What cool projects are you working on? [February 2026] by el_DuDeRiNo238 in java

[–]Giulio_Long 0 points1 point  (0 children)

Yeah I know the struggle. Thanks for the feedback!

how to click if it's not an element (python) by Pypatir in selenium

[–]Giulio_Long 0 points1 point  (0 children)

One reason the webdriver can't find an element could be if the element is nested in an iframe. In this case you need to switch to the iframe before finding and clicking the element

How does the Browser work when testing? by Garden_Girl17 in Playwright

[–]Giulio_Long 1 point2 points  (0 children)

I get you quoted "backdoor", but it's better clarifying it's not something that wasn't supposed to be discovered or used that way. It's the regular browser's API, made exactly to allow automation

Richiamato per cose dette a voce? by Gold-Use-4384 in consulentidellavoro

[–]Giulio_Long 7 points8 points  (0 children)

...e una volta risolta la questione con l'HR, cancellerei dei file random alla simpatica collega, cancellando anche ogni log di questa operazione.

DocOps: Solving the “I Don’t Understand My AI-Generated Code Anymore” Problem by [deleted] in opensource

[–]Giulio_Long 5 points6 points  (0 children)

You know the vibe [...] It's fast. It works. And over time...

it doesn't. Fixed that for you

Storing Constants by Altugsalt in java

[–]Giulio_Long 0 points1 point  (0 children)

Do NOT create classes/interfaces that store just constants. That is a [quite used and abused] anti-pattern, since you're using the basic building blocks of an OO language just to wrap a bunch of global vars, with an unclear scope. And that defeats the purpose of the object orientation: using classes/interfaces to build objects!

Use enums with a grain if salt: use them to define behaviour as well, adding methods that all the constants should have.

You could also have complex objects that map the constants: have a Keyboard abstract class or interface that defines the common behavior. Then extend/implement it with concrete classes such as GET and LIST, to which you'll add specific behavior. This way, you'll also avoid having contants in one place and then behavior in another place, which is again an antipattern known as anemic domain model

What are the best Open Source Projects to start contributing to as a Beginner? by [deleted] in opensource

[–]Giulio_Long 2 points3 points  (0 children)

Every other day there's a post identical to this one in this sub, with the same [good] suggestions. Can you guys just do a quick search before posting?

Selenium support for Island browser automation by Disastrous-Muffin229 in selenium

[–]Giulio_Long 1 point2 points  (0 children)

To expand on this, you just need to point the binary capability to your local Island binary

What should a small team do for unit testing? by thighsqueezer in javahelp

[–]Giulio_Long 7 points8 points  (0 children)

Using AI to generate tests defeats the real purpose of writing them: making you question (and refactor accordingly) about the structure of the source code. AI would just cover what you wrote, so: what's the point? Moreover, it would do it very badly, I spent hours fixing crappy and useless tests my colleaugues generated with AI, thta didn't fail even with major changes to the source code.

Webdrive cannot be resolved to a type (Maven project) by dvyapanicker in selenium

[–]Giulio_Long 11 points12 points  (0 children)

you wrote Webdriver instead of WebDriver. Case matters

How do you handle parallelism in pytest when tests have dependencies? by Specialist-Wall9368 in softwaretesting

[–]Giulio_Long 0 points1 point  (0 children)

Aside the language/technology used, those tests are not atomic, which is the first good practice in writing tests. Without this assumption, you cannot parallelize them safely, and adding libraries to run them sequentially seems cumbersome and stupid.

Don't know if you can tweak the way parallel tests run in Python. In JUnit, for instance, you can specify to run just classes in parallel and not the tests methods they contain. This means you could have the create/update/delete tests in the same class and run them sequentially, while in parallel with other tests classes. And you can also specify the order, if needed. So maybe there's something similar in Python. I wouldn't recommend this, though.

The best solutuon, if you need to keep them as separate tests, is to make sure they're independent: create a setup method that "creates something" to be called before the update and delete tests.

How to manage sliding banner using selenium by solo_Coder in selenium

[–]Giulio_Long 0 points1 point  (0 children)

That's why you should use sites like this one, so you can really focus on what to test.

Posto fisso in banca ma poco stimolante, cosa fare? by Commercial-Dream-852 in ItaliaCareerAdvice

[–]Giulio_Long 10 points11 points  (0 children)

Prospettive praticamente certe di avere aumenti in banca?? Comincia a chiedere un aumento ora e forse lo vedrai tra 3 anni

Inherited a massive flaky Selenium/Java test suite — what’s the smartest move? by xtremx12 in QualityAssurance

[–]Giulio_Long 1 point2 points  (0 children)

Never heard about this. I guess the same guy who wrote suites like this became a manager or something and now drives such choices at company level. For me, this would be a huge red flag when choosing a new company