Apress / Zhan_Selenium-WebDriver-Recipes-in-C-3rd-ed

Original source code for Selenium WebDriver Recipes in C# 3rd ed. by Courtney Zhan and Zhimin Zhan
https://link.springer.com/book/10.1007/979-8-8688-0023-8
Other
2 stars 2 forks source link

using ancient Selenium Driver/Support dependencies #2

Open DickBaker opened 4 months ago

DickBaker commented 4 months ago

The 3e book was published 24/12/2023 but the code download on GitHub is based on ancient releases of

such poor UX is sad because these packages have enjoyed rapid change ...

date Selenium.WebDriver CDP
31/7/2023 4.11.0 113-115
5/9/2023 4.12.4 114-116
26/9/2023 4.13.1 115-117
15/10/2023 4.14.1 116-118
1/11/2023 4.15.0 117-119
8/12/2023 4.16.2 118-120
23/1/2024 4.17.0 119-121
20/2/2024 4.18.1 120-122
27/3/2024 4.19.0 121-123
date Selenium.Support
24/3/2023 4.8.2
8/5/2023 4.9.1
7/6/2023 4.10.1
31/7/2023 4.11.0
5/9/2023 4.12.4
26/9/2023 4.13.1
15/10/2023 4.14.1
1/11/2023 4.15.0
8/12/2023 4.16.2
23/1/2024 4.17.0
20/2/2024 4.18.1
27/3/2024 4.19.0
date .NET 7.x
8/11/2022 7.0.0
13/12/2022 7.0.1
10/1/2023 7.0.2
14/2/2023 7.0.3
14/3/2023 7.0.4
11/4/2023 7.0.5
13/6/2023 7.0.7
22/6/2023 7.0.8
11/7/2023 7.0.9
8/8/2023 7.0.10
12/9/2023 7.0.11
10/10/2023 7.0.12
24/10/2023 7.0.13
14/11/2023 7.0.14
9/1/2024 7.0.15
13/2/2024 7.0.16
12/3/2024 7.0.17
9/4/2024 7.0.18
date .NET 8.x
09/04/2024 7.0.18
14/11/2023 8.0.0
09/01/2024 8.0.1
13/02/2024 8.0.2
12/03/2024 8.0.3
09/04/2024 8.0.4

and instead of defining the CDP version in ONE place (e.g. the TestHelper.cs +/- Usings.cs source files), many *.cs files contain hardwired references

which is fragile and ugly.

Unfortunately the code on GH also lacks the standard files

which makes submitting a PR a hazard (as would contain a myriad misc files). I will shortly submit a PR with latest Selenium releases (plus these GH files)

DickBaker commented 4 months ago

In the 3e book p245 it is suggested to simplify via a using namespace alias, but even the example code on p246 does not exploit this.