Google doesn't like it when you use an old chrome (you're supposed to auto-update).
So in my code, I can't rely only on weight, and I do it like this :
from ua_generator.data.browsers.chrome import VERSIONS
max_major = max(v.major for v in VERSIONS)
opts = Options()
opts.version_ranges = {
'chrome': VersionRange(min_version=max_major),
....
}
It works, but it would be nice to have it integrated into the library. Saying for instance that only the latest two versions are acceptable, or something similar.
Google doesn't like it when you use an old chrome (you're supposed to auto-update).
So in my code, I can't rely only on weight, and I do it like this :
It works, but it would be nice to have it integrated into the library. Saying for instance that only the latest two versions are acceptable, or something similar.