-
Notifications
You must be signed in to change notification settings - Fork 4
feature/RM-9546 update selenium to 4.35.0 #1366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something went sideways, the PR has the old messages and syntax, not the ones from the previous PR.
a1ef5d0
to
190a116
Compare
|
bb7010e
to
709d9f1
Compare
The firefox problem seems to be resolved, my best guess is, that there were not disposed WebSocket connections. |
709d9f1
to
9a63aee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new code looks okay, I got some questions about how things actually work together.
I do have a big request: now that we got a working solution, please split the bidi-stuff into it's own PR and jira ticket (bug?) and let's do this new ticket first. I don't want to hide the semantic changes in a simple Selenium upgrade ticket, in particular since it is not actually dependet on the update and might have been incorrect from the start.
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BiDiBrowserLogProvider.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
Remotion/Web/Development.WebTesting/BrowserSession/BrowserSessionBase.cs
Show resolved
Hide resolved
8629ca0
to
1c41ab8
Compare
044dfa0
to
b493069
Compare
b493069
to
02c8508
Compare
This reverts commit 65c6ea5.
d47800e
to
9940570
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge commits where the selenium version gest updated.
Some small design discussions we should desicde before this is done.
var webTestHelper = WebTestHelper.CreateFromConfiguration<CustomWebTestConfigurationFactory>(); | ||
if (webTestHelper.BrowserConfiguration.IsFirefox()) | ||
{ | ||
Assert.Ignore(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the jira issue number where this will get fixed and a short explanation in the ignore about why it's ignored.
// Accept all user prompts as they come up - IWebTestHelper.AcceptPossibleModalDialog() does not work with BiDi | ||
// because the WebTest-Thread is not continued when a user prompt is shown. | ||
_promptSubscription = _bidiConnection.BrowsingContext.OnUserPromptOpenedAsync(args => | ||
args.BiDi.BrowsingContext.HandleUserPromptAsync(args.Context, new HandleUserPromptOptions { Accept = true, Timeout = _bidiTimeout}).GetAwaiter().GetResult(), | ||
new BrowsingContextsSubscriptionOptions(new SubscriptionOptions | ||
{ | ||
Timeout = _bidiTimeout | ||
})) | ||
.GetAwaiter().GetResult(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I remember a discussion about making this conditional based on there actually being a user propmt expected right now. Did we nix this completely or just deferr? if it's deferred we should create a jira ticket and refernece the issue number here with a short explaintion that this will get aligned with the correct handling semantics in a later iteration.
private readonly TimeSpan _bidiTimeout = TimeSpan.FromSeconds(1); | ||
|
||
public BiDiBrowserLogProvider (IDriver driver) | ||
public BiDiBrowserLogProvider (IBrowserSession browserSession) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
design question: should we have an interface smaller than IBrowserSession (IBidiConnectionService) or some such?
|
||
private readonly ConcurrentQueue<BrowserLogEntry> _logEntries = new(); | ||
private readonly Subscription _eventSubscription; | ||
private readonly TimeSpan _bidiTimeout = TimeSpan.FromSeconds(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is duplicated with BrowserSessionBase. should we move this into the IBrowserSession (or IBidiConnectionManager) interface to avoid duplication?
No description provided.