#632 (Make screenshots using Selenium)
by Luc Saffre · in Developers · assigned to tonis
Summary
We want a system which lets us define sequences of screenshots for a given application, to be executed by an automated task, which creates the .png files and checks whether they have changed. A first step is to *create* them so we can use them in the docs.
Children
Comments
- 5 years, 8 months ago by Luc Saffre about #632 (Make screenshots using Selenium) : I put this to sleep once more. See [url luc.lino-framework.org/blog/2021/0207.html my blog entry about it].
- 5 years, 8 months ago by Luc Saffre about #632 (Make screenshots using Selenium) : Oops, now I am getting "selenium.common.exceptions.ElementClickInterceptedException: Message: Element (button id="ext-gen103" class=" x-btn-text x-tbar-database_gear" type="button") is not clickable at point (172,69) because another element (div id="ext-gen195" class="ext-el-mask") obscures it". But...
- 5 years, 8 months ago by Luc Saffre about #632 (Make screenshots using Selenium) : I now added "self.run_django_admin_command_cd('lino_book/projects/noi1e', 'run', 'maketour.py')" to the book test suite (in test_demo.py). If that works, at least we have now a tangible result (test coverage is effectively increased).
- 5 years, 8 months ago by Luc Saffre about #632 (Make screenshots using Selenium) (1 reply) : This morning I just wanted to quickly finish and commit this... but before committing I wanted to have a minimal documentation... and when writing documentation I often get great ideas... Now it is getting really great. And nobody will pay me for this cool new feature...
- 5 years, 8 months ago by Luc Saffre about #632 (Make screenshots using Selenium) : Uff! Seems that I got it working. It was tricky because I have to use a combination of subprocess.Popen and threading.Thread. For some time I thought it was because I used shell=True, so I removed this (and use shutil.which() to find the name of the django-admin script; that wasn't the reason but I ...
- 5 years, 8 months ago by Luc Saffre about #632 (Make screenshots using Selenium) : I have it almost working, using a multiprocessing.Process with a target that calls subprocess.run(). But the subprocess is not being trminated, ie on the second invocation the album is created with the runserver from the first invocation also says "Error: That port is already in use." Looks as if "s...
- 5 years, 8 months ago by Luc Saffre about #632 (Make screenshots using Selenium) : Some days ago, with Hannes, while working on #3949 I rediscovered the maketour.py script. The main problem there was that it does not yet invoke the server. I started to work on this again. It has to do with threading and subprocesses.