mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#Selenium

1 Beitrag1 Beteiligte*r0 Beiträge heute

У меня проблема:
- Есть скрипт на
#Python, он использует #Selenium и #Firefox.
- В одной(!) вкладке по очереди открываются странички. И с каждой открытой страничкой потребление ОЗУ увеличивается на 100-200Мб забивает мне всю ОЗУ и весь свап.

Вопрос:
- Какого хуя?
- Как это исправить?

Этим скриптом я пользуюсь уже лет пять и раньше такой херни не было.

Czy to nie wspaniałe, że kiedy wysyłasz łatkę, która wyłącznie zmienia wartość zwracaną przez funkcję, opisujesz szczegółowo, dlaczego ta zmiana jest konieczna — a następnie jakiś przypadkowy bot #AI do przeglądu łatek wygotowuje wodę z morza po to, żeby napisać, że łatka zmienia wartość zwracaną przez funkcję, i ktoś powinien sprawdzić, czy ta zmiana jest pożądana?

Isn't it great when you submit a pull request whose sole purpose is changing the return value of a function, and you describe in detail why are you changing it — and then some random #AI pull request review bot boils oceans to say that the pull request is changing the return value of a function, and the reviewer may need to consider if that change is desired?

Your logs are lying to you - metrics are meaner and better.

Everyone loves logs… until the incident postmortem reads like bad fan fiction.
Most teams start with expensive log aggregation, full-text searching their way into oblivion. So much noise. So little signal. And still, no clue what actually happened. Why? Because writing meaningful logs is a lost art.
Logs are like candles, nice for mood lighting, useless in a house fire.

If you need traces to understand your system, congratulations: you're already in hell.

Let me introduce my favourite method: real-time, metric-driven user simulation aka "Overwatch".

Here's how you do it:

🧪 Set up a service that runs real end-to-end user workflows 24/7. Use Cypress, Playwright, Selenium… your poison of choice.
📊 Every action creates a timed metric tagged with the user workflow and action.
🧠 Now you know exactly what a user did before everything went up in flames.

Use Grafana + InfluxDB (or other tools you already use) to build dashboards that actually tell stories:

* How fast are user workflows?
* Which steps are breaking, and how often?
* What's slower today than yesterday?
* Who's affected, and where?

🎯 Alerts now mean something.
🚨 Incidents become surgical strikes, not scavenger hunts.
⚙️ Bonus: run the same system on every test environment and detect regressions before deployment. And if you made it reusable, you can even run the service to do load tests.

No need to buy overpriced tools. Just build a small service like you already do, except this one might save your soul.

And yes, transform logs into metrics where possible. Just hash your PII data and move on.

Stop guessing. Start observing.
Metrics > Logs. Always.

New research explores #selenium's potential in cancer treatment. A Phase 1 clinical trial found combining selenium with #chemotherapy effectively treated metastatic kidney cancer, with over half of patients seeing tumor shrinkage. theconversation.com/selenium-i
By Aliasger K. Salem, University of Iowa

While comparing #Selenium to Playwright and Cypress is off, today I saw a comparison to entire commercial test Automation platform that is built on top of Selenium. Yes, a piece of your thing is less than your thing. I guess the name of the piece is relevant enough.

Is understanding Selenium already a lost cause?

Antwortete im Thread

@annearchet @scarpentier Y'a sûrement un(e) geek qui va proposer d'automatiser avec python+selenium comme je l'ai fait ici (pour automatiser la commande de crayons sur le site du cegep 😏 ). Sûr, ce n'est pas du matos érotique 🍆 mais le principe est le même: tout ce qu'un usager accomplit comme tâche via un browser peut-être automatisé... mais il faut fouiller dans le html du site pour bâtir les invocations de Selenium 😐 selenium-python.readthedocs.io

A co powiecie na jakieś gówniane narzędzie #AI do szukania błędów w łatkach, które twierdzi, że w moim TOML-u brakuje zamknięcia listy, bo owe gówno "widzi" tylko cztery pierwsze jej elementy?

github.com/SeleniumHQ/selenium

Cóż, nigdy nie uważałem #Selenium za szczególnie dobrej jakości bibliotekę (no ale męczy się z trudnym tematem), ale teraz już powiem wprost: trzymajcie się od tego projektu z daleka.

GitHub[py] Fix installing most of the data from source distributions by mgorny · Pull Request #15128 · SeleniumHQ/seleniumVon mgorny

How about using some crappy #AI pull request review tool that claims that my TOML is missing a closing bracket because it apparently "sees" only the first four list items?

github.com/SeleniumHQ/selenium

Well, I never considered #Selenium to be particularly good quality (well, it's a hard domain), but at this point I'm going to say: stay away.

GitHub[py] Fix installing most of the data from source distributions by mgorny · Pull Request #15128 · SeleniumHQ/seleniumVon mgorny