# 原神启动 **Repository Path**: yhzhang-dev/Test_Or_Be_Tested ## Basic Information - **Project Name**: 原神启动 - **Description**: 测完就删_原神!启动! - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: https://ys.mihoyo.com/main/?af_adset=1 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-21 - **Last Updated**: 2026-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # YuanShen Web Testing Tool ## Project Overview This is a web automation testing project based on Selenium, designed to access the Genshin Impact official website using different browsers (Chrome, Firefox, Edge). ## Technology Stack - **Programming Language**: Java - **Build Tool**: Maven - **Testing Framework**: Selenium WebDriver - **Selenium Server**: 3.9.1 ## Project Structure ``` ├── src/main/java/ │ └── YuanShenWebTest.java # Main test class ├── pom.xml # Maven configuration file ├── lib/ │ └── selenium-server-standalone-3.9.1.jar ├── drivers/ # Browser drivers │ ├── chromedriver.exe │ ├── geckodriver.exe │ └── msedgedriver.exe └── browsers/ # Browser installers ├── ChromeSetup.exe ├── Firefox Setup 152.0.1.exe └── MicrosoftEdgeSetup.exe ``` ## Features - Supports automated testing on three major browsers - Chrome browser testing - Firefox browser testing - Edge browser testing - Unified browser driver management ## System Requirements - JDK 1.8 or higher - Maven 3.x - One of the following browsers must be pre-installed: - Google Chrome - Mozilla Firefox - Microsoft Edge ## Quick Start ### 1. Build the Project ```bash mvn clean package ``` ### 2. Run the Test ```bash # Execute the main program java -jar target/YuanShenWebTest.jar ``` Alternatively, run the `main` method of the `YuanShenWebTest` class directly in your IDE. ## Usage The project automatically detects and opens the Genshin Impact official website using an installed browser. Supported browsers: | Method | Browser | |--------|---------| | `openWithChrome()` | Google Chrome | | `openWithFirefox()` | Mozilla Firefox | | `openWithEdge()` | Microsoft Edge | ## Driver Notes The project includes pre-packaged drivers for each browser: - `chromedriver.exe` - Chrome browser driver - `geckodriver.exe` - Firefox browser driver - `msedgedriver.exe` - Edge browser driver If driver version mismatches occur, download and replace with the compatible driver version. ## License This project is intended solely for learning and communication purposes. Please comply with relevant service terms.