Skip to content
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

Update Selenium to v4 + .NET 6 Tests #225

Closed
wants to merge 4 commits into from

Conversation

slang25
Copy link

@slang25 slang25 commented Nov 6, 2021

This PR contains 3 changes:

  • Updating the Selenium.WebDriver dependency to 4.0.1
  • Changes test projects to .NET 6
  • Get the test passing on macOS, this includes changing the self-hosted server to aspnetcore

@slang25 slang25 changed the title Update Selenium to v4 Update Selenium to v4 + .NET 6 Tests Nov 7, 2021
@petersladek
Copy link

@obstar Any plans when this will be merged?

@sbowler sbowler mentioned this pull request Jan 28, 2022
@mhlavacek
Copy link

Any updates on this? I'm waiting to be able to update to selenium webdriver 4.x

@slang25
Copy link
Author

slang25 commented Mar 4, 2022

That'll be a question for @obstar, would be good to know if there is an intention to merge. No pressure here, just nice to have from my perspective

@sbowler
Copy link
Collaborator

sbowler commented Mar 8, 2022

I'm pretty sure there's a runtime issue taking screenshots that needs to be adjusted with this move to .NET 6. See SeleniumHQ/selenium#8760 for more details on what I'm running into and possible solutions. I could be wrong, but I think this should be adjusted here.

@ben-soler
Copy link

Any updates on this PR?

@DDSGooch
Copy link

DDSGooch commented Jul 13, 2022

When will this be merged? Is there any reason this can't be done now. We'd really appreciate this update and I'm happy to do some testing on this. If it's just the screenshot issue only supporting PNGs, that's not a showstopper for us. Thanks

@adiel
Copy link
Member

adiel commented Mar 28, 2023

Hi! Just checking back in on this project and seems like nobody is maintaining it any more.

Any volunteers from this thread? I know a lot of projects are relying on it still.

@adiel adiel mentioned this pull request May 4, 2023
Copy link
Collaborator

@sbowler sbowler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also suggest updating the NUnit project to net6.0 instead of net45. At this point it would probably be good to update some of the other dependencies as well like browser drivers for example.

using ElementFinder = Coypu.Finders.ElementFinder;
using FrameFinder = Coypu.Finders.FrameFinder;

[SetUpFixture]
public class AssemblyTearDown
{
public static SelfishSite TestSite;
public static SelfHostedSite TestSite;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not including the namespace for this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The namespace is Coypu.Drivers.Tests.Sites which is included on line 6, it also compiles etc... What IDE are you viewing it with? Could be an IDE specific quirk? (in which case I'm happy to try and tweak this to workaround it)

Copy link
Collaborator

@sbowler sbowler May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was using visual studio 2022. That's where the old type was defined, you moved it to the Acceptance tests, see https://github.com/featurist/coypu/pull/225/files#diff-9e9da1c47aac76e44f6605c2eee71162d1ab18ad7995388b3b301c694fccfdefR10

{
return "file:///" + Path.Combine(TestContext.CurrentContext.TestDirectory, $@"html\{page}")
.Replace("\\", "/");
Driver.Visit(PathHelper.GetPageHtmlPath(TestPage), Root);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PathHelper is not included and is also not public so it can't be referenced here. Maybe consider moving the PathHelper class or make it public.

@sbowler
Copy link
Collaborator

sbowler commented Jun 1, 2023

@slang25 I think I've highlighted the main issues I found. Just wondering if you'll be able to update this and an idea on the timeframe?

@ijabit
Copy link

ijabit commented Jun 1, 2023

Same question as @sbowler can this PR be merged? I hate to have to use the older Selenium version.
Is this project dead? Is there an alternative?

@slang25
Copy link
Author

slang25 commented Jun 1, 2023

I'll have a look over the weekend, you are right, it's totally broken, I blame past me 😆

@obstar
Copy link
Collaborator

obstar commented Jun 1, 2023

@ijabit tbh the best alternative is playwright a lot faster and user friendly than selenium 🤷‍♂️

@ijabit
Copy link

ijabit commented Jun 1, 2023

Thanks! I think I'm locked in to Selenium though due to organizational choices

@adiel
Copy link
Member

adiel commented Jun 1, 2023 via email

@ijabit
Copy link

ijabit commented Jun 6, 2023

I thought Coypu was tied to Selenium, interesting that you might be able to hook it up to Playwright

@sbowler
Copy link
Collaborator

sbowler commented Jun 19, 2023

@slang25 If you don't have time to work on this, let me know and I can finish it up and submit a PR if you need.

@slang25
Copy link
Author

slang25 commented Jun 19, 2023

I'm not sure I'm going to get around to it 😔

@adiel
Copy link
Member

adiel commented Jun 19, 2023 via email

@ijabit
Copy link

ijabit commented Jun 30, 2023

Any updates on this one?

@sbowler
Copy link
Collaborator

sbowler commented Jul 5, 2023

Closing in favor of #228

@sbowler sbowler closed this Jul 5, 2023
@adiel
Copy link
Member

adiel commented Dec 9, 2023

I thought Coypu was tied to Selenium, interesting that you might be able to hook it up to Playwright

#231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants