Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 70431fc

Browse files
Merge branch 'SeleniumHQ:trunk' into patch-3
2 parents a89b5e0 + 01482d2 commit 70431fc

File tree

134 files changed

+3360
-1785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+3360
-1785
lines changed

‎.github/workflows/link-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Node
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: '18.14.2'
30+
node-version: '22.15.0'
3131
cache: 'npm'
3232
# The action defaults to search for the dependency file (package-lock.json,
3333
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its

‎.github/workflows/ruby-examples.yml‎

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ jobs:
4141
if: matrix.os != 'windows'
4242
run: |
4343
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
44-
- name: Start Xvfb
44+
- name: Setup Fluxbox and Xvfb
4545
if: matrix.os == 'ubuntu'
46-
run: Xvfb :99 &
46+
run: |
47+
sudo apt-get -y install fluxbox libxss1 libappindicator3-1 libindicator7
48+
Xvfb :99 &
49+
fluxbox -display :99 &
50+
echo "DISPLAY=:99" >> "$GITHUB_ENV"
4751
- name: Set up Ruby
4852
uses: ruby/setup-ruby@v1
4953
with:
50-
ruby-version: 3.0
54+
ruby-version: 3.1
5155
bundler-cache: true
5256
- name: Install Gems Nightly non-Windows
5357
if: matrix.release == 'nightly' && matrix.os != 'windows'
@@ -83,11 +87,43 @@ jobs:
8387
with:
8488
distribution: 'temurin'
8589
java-version: 11
86-
- name: Run tests
90+
- name: Run tests on Windows
91+
if: matrix.os == 'windows'
8792
uses: nick-invision/retry@v3.0.2
8893
with:
8994
timeout_minutes: 20
90-
max_attempts: 3
95+
max_attempts: 2
9196
command: |
9297
cd examples/ruby
9398
bundle exec rspec
99+
new_command_on_retry: |
100+
cd examples/ruby; $env:DEBUG="true"; bundle exec rspec --only-failures --backtrace
101+
- name: Run tests on ${{ matrix.os }}
102+
if: matrix.os != 'windows'
103+
uses: nick-invision/retry@v3.0.2
104+
with:
105+
timeout_minutes: 20
106+
max_attempts: 2
107+
command: |
108+
cd examples/ruby
109+
bundle exec rspec
110+
new_command_on_retry: |
111+
cd examples/ruby
112+
DEBUG=true bundle exec rspec --only-failures --backtrace
113+
114+
lint:
115+
runs-on: ubuntu-latest
116+
steps:
117+
- name: Checkout GitHub repo
118+
uses: actions/checkout@v4
119+
- name: Set up Ruby
120+
uses: ruby/setup-ruby@v1
121+
with:
122+
ruby-version: 3.1
123+
bundler-cache: true
124+
- name: Install dependencies
125+
working-directory: ./examples/ruby
126+
run: bundle install
127+
- name: Run RuboCop
128+
working-directory: ./examples/ruby
129+
run: bundle exec rubocop

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ to use **[Hugo 0.125.4](https://github.com/gohugoio/hugo/releases/tag/v0.125.4)*
2121

2222
Steps needed to have this working locally and work on it:
2323

24-
- Follow the [Install Hugo](https://www.docsy.dev/docs/get-started/other-options/#install-hugo) instructions from Docsy
24+
- [Install Hugo](https://gohugo.io/installation/) and follow the [Get Started](https://www.docsy.dev/docs/get-started/) instructions from Docsy
2525
- [Install go](https://go.dev/doc/install)
2626
- Clone this repository
2727
- Run `cd website_and_docs`

‎examples/dotnet/SeleniumDocs/BaseTest.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class BaseTest
1717
protected IWebDriver driver;
1818
protected Uri GridUrl;
1919
private Process _webserverProcess;
20-
private const string ServerJarName = "selenium-server-4.29.0.jar";
20+
private const string ServerJarName = "selenium-server-4.32.0.jar";
2121
private static readonly string BaseDirectory = AppContext.BaseDirectory;
2222
private const string RelativePathToGrid = "../../../../../";
2323
private readonly string _examplesDirectory = Path.GetFullPath(Path.Combine(BaseDirectory, RelativePathToGrid));

‎examples/dotnet/SeleniumDocs/Elements/InformationTest.cs‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,43 +22,43 @@ public void TestInformationCommands(){
2222
bool isEmailVisible = driver.FindElement(By.Name("email_input")).Displayed;
2323
Assert.AreEqual(isEmailVisible, true);
2424

25-
//isEnabled
26-
//returns true if element is enabled else returns false
25+
//isEnabled
26+
//returns true if element is enabled else returns false
2727
bool isEnabledButton = driver.FindElement(By.Name("button_input")).Enabled;
2828
Assert.AreEqual(isEnabledButton, true);
2929

30-
//isSelected
31-
//returns true if element is checked else returns false
30+
//isSelected
31+
//returns true if element is checked else returns false
3232
bool isSelectedCheck = driver.FindElement(By.Name("checkbox_input")).Selected;
3333
Assert.AreEqual(isSelectedCheck, true);
3434

35-
//TagName
36-
//returns TagName of the element
35+
//TagName
36+
//returns TagName of the element
3737
string tagNameInp = driver.FindElement(By.Name("email_input")).TagName;
3838
Assert.AreEqual(tagNameInp, "input");
3939

40-
//Get Location and Size
41-
//Get Location
40+
//Get Location and Size
41+
//Get Location
4242
IWebElement rangeElement = driver.FindElement(By.Name("range_input"));
4343
Point point = rangeElement.Location;
4444
Assert.IsNotNull(point.X);
45-
//Get Size
45+
//Get Size
4646
int height=rangeElement.Size.Height;
4747
Assert.IsNotNull(height);
4848

4949
// Retrieves the computed style property 'font-size' of field
5050
string cssValue = driver.FindElement(By.Name("color_input")).GetCssValue("font-size");
5151
Assert.AreEqual(cssValue, "13.3333px");
5252

53-
//GetText
53+
//GetText
5454
// Retrieves the text of the element
5555
string text = driver.FindElement(By.TagName("h1")).Text;
5656
Assert.AreEqual(text, "Testing Inputs");
5757

58-
//FetchAttributes
59-
//identify the email text box
58+
//FetchAttributes
59+
//identify the email text box
6060
IWebElement emailTxt = driver.FindElement(By.Name("email_input"));
61-
//fetch the value property associated with the textbox
61+
//fetch the value property associated with the textbox
6262
string valueInfo = emailTxt.GetAttribute("value");
6363
Assert.AreEqual(valueInfo, "admin@localhost");
6464

‎examples/dotnet/SeleniumDocs/SeleniumDocs.csproj‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.7.1" />
1111
<PackageReference Include="MSTest.TestAdapter" Version="3.6.0" />
1212
<PackageReference Include="MSTest.TestFramework" Version="3.6.0" />
13-
<PackageReference Include="Selenium.Support" Version="4.29.0" />
14-
<PackageReference Include="Selenium.WebDriver" Version="4.29.0" />
13+
<PackageReference Include="Selenium.Support" Version="4.31.0" />
14+
<PackageReference Include="Selenium.WebDriver" Version="4.31.0" />
1515
</ItemGroup>
1616

1717
<ItemGroup>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using OpenQA.Selenium.Chrome;
3+
4+
namespace SeleniumDocs.SeleniumManagerTest
5+
{
6+
[TestClass]
7+
public class UsageTest
8+
{
9+
[TestMethod]
10+
public void TestWithSeleniumManager()
11+
{
12+
// Before
13+
// using var driver = new ChromeDriver("path/to/chromedriver");
14+
15+
// Now
16+
using var driver = new ChromeDriver();
17+
driver.Navigate().GoToUrl("https://www.selenium.dev/documentation/selenium_manager/");
18+
}
19+
}
20+
}

‎examples/java/build.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ repositories {
1010
}
1111

1212
dependencies {
13-
testImplementation 'org.seleniumhq.selenium:selenium-java:4.29.0'
14-
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.12.0'
13+
testImplementation 'org.seleniumhq.selenium:selenium-java:4.31.0'
14+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.12.1'
1515
}
1616

1717
test {

‎examples/java/pom.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<maven.compiler.source>17</maven.compiler.source>
1414
<maven.compiler.target>17</maven.compiler.target>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
<selenium.version>4.29.0</selenium.version>
16+
<selenium.version>4.31.0</selenium.version>
1717
</properties>
1818

1919
<repositories>
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>org.junit.jupiter</groupId>
4242
<artifactId>junit-jupiter-engine</artifactId>
43-
<version>5.12.0</version>
43+
<version>5.12.1</version>
4444
<scope>test</scope>
4545
</dependency>
4646
<dependency>
@@ -55,7 +55,7 @@
5555
<plugin>
5656
<groupId>org.apache.maven.plugins</groupId>
5757
<artifactId>maven-surefire-plugin</artifactId>
58-
<version>3.5.2</version>
58+
<version>3.5.3</version>
5959
<configuration>
6060
<properties>
6161
<configurationParameters>

‎examples/java/src/test/java/dev/selenium/bidi/cdp/CdpApiTest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import org.openqa.selenium.chrome.ChromeOptions;
1717
import org.openqa.selenium.devtools.DevTools;
1818
import org.openqa.selenium.devtools.HasDevTools;
19-
import org.openqa.selenium.devtools.v131.browser.Browser;
20-
import org.openqa.selenium.devtools.v131.network.Network;
21-
import org.openqa.selenium.devtools.v131.network.model.Headers;
19+
import org.openqa.selenium.devtools.v134.browser.Browser;
20+
import org.openqa.selenium.devtools.v134.network.Network;
21+
import org.openqa.selenium.devtools.v134.network.model.Headers;
2222
import org.openqa.selenium.support.ui.WebDriverWait;
2323

2424
public class CdpApiTest extends BaseTest {
@@ -27,7 +27,7 @@ public class CdpApiTest extends BaseTest {
2727
@BeforeEach
2828
public void createSession() {
2929
ChromeOptions options = getDefaultChromeOptions();
30-
options.setBrowserVersion("131");
30+
options.setBrowserVersion("134");
3131
driver = new ChromeDriver(options);
3232
wait = new WebDriverWait(driver, Duration.ofSeconds(10));
3333
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /