Comments (7)
@titusfortner I added a private field to the class with a default value of True. The property can be set to False, as in the case for fixing the current bug. I believe such changes should not break client code that does not use setting a value to the field self._strict_timestamp.
from selenium.
thanks for the patch
can we change the default to self._strict_timestamp = False
?
i guess no one will care about pre-1980 timestamps in a firefox profile zip ...
@property
def encoded(self) -> str:
"""Updates preferences and creates a zipped, base64 encoded string of
profile directory."""
if self._desired_preferences:
self.update_preferences()
fp = BytesIO()
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED) as zipped:
path_root = len(self.path) + 1 # account for trailing slash
for base, _, files in os.walk(self.path):
for fyle in files:
filename = os.path.join(base, fyle)
zipped.write(filename, filename[path_root:])
return base64.b64encode(fp.getvalue()).decode("UTF-8")
from selenium.
@milahu, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
from selenium.
I'm not sure the value of maintaining time stamps vs supporting profiles generated with timestamp zero.
Would you like to make a PR with the value configurable in the constructor or a property of the profile class?
from selenium.
This issue is looking for contributors.
Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested.
from selenium.
@milahu @titusfortner I changed the default value to False
I believe that the behavior in the client code will not change at all, because until the current changes, users could not directly pass the argument value or influence it in any way. This means that after the current pull request, this bug will be fixed - this is what we are aiming for. However, if they set the flag self_strict_timestamps = True, the bug will reoccur - this is the expected behavior.
from selenium.
added my comments to the PR
from selenium.
Related Issues (20)
- Selenium JavaScript atoms, used in appium-remote-debugger, are clobbering window._ causing issues with hybrid apps after webview context is utilized HOT 4
- [🐛 Bug]: org.openqa.selenium.SessionNotCreatedException: Could not start a new session HOT 5
- [🐛 Bug]: Unable run scripts using remote webdriver on remote machines HOT 14
- [🐛 Bug]: Slow responses to driver commands HOT 4
- [🐛 Bug]: selenium.webdriver.Edge() -> HOT 2
- [🐛 Bug]: Can not establish connection with Authorization header in Java client since 4.14.0 HOT 2
- [🚀 Feature]: BiDi: Add low-level helper method to subscribe/unsubscribe from events HOT 5
- [🐛 Bug]: selenium-server-standalone-2.53.0.jar fails to extract on Windows using Java 21 jar.exe HOT 2
- [🐛 Bug]: Setting timeouts in Python
- Not able initiate browser in remote system whereas it's working fine in local system[🐛 Bug]: HOT 6
- [🐛 Bug]: The problem of [java.lang.IllegalArgumentException: Unknown HttpClient factory jdk-http-client] has appeared again. HOT 4
- [🐛 Bug]: selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location HOT 5
- [🐛 Bug]: Getting timeout exception in selenium grid (WebDriver could not start a new session. Response Code 500 HOT 3
- [🚀 Feature]: Implement high level BiDi navigation commands
- [🐛 Bug]: Timeout error when trying to capture screenshot using DevTools HOT 1
- [🐛 Bug]: Exception in thread "main" java.lang.NoClassDefFoundError: io/netty/util/Timer HOT 2
- [🐛 Bug]: HOT 3
- [🐛 Bug]: raise WebDriverException( selenium.common.exceptions.WebDriverException) HOT 2
- [🐛 Bug]: Unable to close the browser driver and unable to do parallel run in ADO pipeline HOT 2
- [🐛 Bug]: Cannot start mobile application with appium when slot also specifies a 'browserName' capability HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium.