Open HagaiHargil opened 2 months ago
Shoot, it looks like the issue is that we need to resize the browser to capture the table, but resizing sets the browser outerHeight (the full browser, including topbar etc..). I'm guessing something about the outer size changed. I think we can tweak it so it accounts for the outer part better...
(Here's an image showing the outer and inner heights in the bottom right console, after I resized it to 1000)
Thanks for the quick work and super-fast release!
Sadly, the issue is now that the table is seen in a "zoomed out" version:
The last row appears properly, but this is obviously the wrong "crop". The firefox
web driver still works flawless, and changing window_size
this time does decrease the window size, so theoretically I can pick the exact pixel size that will fit a given table.
This is true for Windows and Linux.
Thanks again for the help!
Shoot -- do you mind posting your chrome version? I can look a bit more, since chrome is a fairly popular choice 😬
On Windows it's 128.0.6613.120.
Prework
Description
Hi,
GT has been great so far - thanks! Recently, the tables it outputs have a semi-missing last line:
(I cut the upper half of the image since the data is sensitive)
This is the last row of the table - and you can also see that the table "knows" that it's the last one since the image ends a bit below that. This happens on Windows and Linux (WSL).
Reproducible example
The code I'm running is a simple
GT(df)...save(fname)
(see below) and as I said it worked until a week ago. Sadly - I have no idea what has changed.git diff
doesn't provide any clues, but regardless the code and data are still legit in the sense that they should be rendered correctly.I was somehow able to make Firefox run on this work laptop (inside Docker) and saw that changing
web_driver
tofirefox
solves the issue, but still not having it work on Chrome (the default) on both Windows and Linux feels worthy of a bug report (and annoys me slightly).These are things that I checked:
as_raw_html()
) outputs the correct table.window_size
parameter doesn't change anything.htmltools
versions, as well asselenium
andPIL
, but that didn't help either.jpg
andpdf
doesn't help.I'm sorry I can't provide a real reproducible example - I really have no idea what was changed. Instead, I'd be happy if you would point me at other angles that I haven't covered in my search.
Thanks again!
Development environment