-
Notifications
You must be signed in to change notification settings - Fork 143
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
Conversation
@obstar Any plans when this will be merged? |
Any updates on this? I'm waiting to be able to update to selenium webdriver 4.x |
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 |
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. |
Any updates on this PR? |
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 |
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. |
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 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; |
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.
You are not including the namespace for this.
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 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)
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 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); |
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.
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.
@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? |
Same question as @sbowler can this PR be merged? I hate to have to use the older Selenium version. |
I'll have a look over the weekend, you are right, it's totally broken, I blame past me 😆 |
@ijabit tbh the best alternative is playwright a lot faster and user friendly than selenium 🤷♂️ |
Thanks! I think I'm locked in to Selenium though due to organizational choices |
For sure.
Although a Coypu driver for Playwright should be pretty trivial and best of
both worlds if you ask me. It still has all the semantic finder and wait
issues that this project tackles.
I'm planning to do this in a few weeks time when I have some time off
coming up.
…On Thu, 1 Jun 2023 at 22:33, Jakub Obstarczyk ***@***.***> wrote:
@ijabit <https://github.com/ijabit> tbh the best alternative is
playwright a lot faster and user friendly than selenium 🤷♂️
—
Reply to this email directly, view it on GitHub
<#225 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASTJECT63T2M55CTJWLUTXJEDBHANCNFSM5HP3FOPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I thought Coypu was tied to Selenium, interesting that you might be able to hook it up to Playwright |
@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. |
I'm not sure I'm going to get around to it 😔 |
I did get this branch working the other day - it was basically just the
errors that were pointed out on the pull request. Then I had to update a
bunch of references and language settings - I didn't really know what I was
doing not having run dotnet for so many years. Managed to get it compiling
though on my Mac, and installed Playwright ok and made the first steps
towards a Playwright driver. Hoping to get time to finish it in a couple of
weeks time.
I'll push what I did (minus the playwright stuff) later when I get in and
maybe you can give it a run and see if I did anything stupid Stacy?
…On Mon, 19 Jun 2023 at 17:29, Stuart Lang ***@***.***> wrote:
I'm not sure I'm going to get around to it 😔
—
Reply to this email directly, view it on GitHub
<#225 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASTJB7PICFBCFOLB2A4CTXMB47VANCNFSM5HP3FOPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Any updates on this one? |
Closing in favor of #228 |
|
This PR contains 3 changes:
Selenium.WebDriver
dependency to4.0.1