1. ????? ??????
1.1 ??? ??
Selenium? ? ???? ?? ??? ????? ?? ?? ????????. ?? ?? ???? ???? ??? ????? ??? ????? ???? ???? ??? ???? ??, ??, ??? ? ??? ?? ??? ?? ??? ?????? ? ????.
???? ?? ????? ?????.
- Selenium WebDriver : ? ????? ?? ?? ???? ?? ?? ?????.
- Selenium IDE: ?? ??? ????? ???? ?? ?? ? ?? ?????.
- Selenium Grid: ?? ???? ?????? ??? ???? ???? ?? ?????.
???? ??? ?? ??? ?? ?????.
- ??? ????? ??(Java, Python, C# ?)? ?????.
- ??? ????(Chrome, Firefox, Safari ?)?? ?????.
- ???? ??? JUnit ? TestNG? ?? ??? ?????? ??? ? ????.
???? ??? ??? ??? ?????? ?????.
- ?? ?? ??? : ? ??????? ???? ????? ?????.
- ?? ??? : ??? ?? ???? ?? ?? ??? ???? ??? ??
- ? ???? : ?????? ???? ?????.
2. Java?? Selenium ??
2.1 ???? ????
???? ?? ?? ??? ?????.
- JDK(Java Development Kit): Selenium ????? Java? ????? JDK? ?????.
- ?? ?? ??(IDE): Eclipse ?? IntelliJ IDEA? ?? ?????.
- ?????? ????? WebDriver : ?? ?? Chrome? ChromeDriver
2.2 ??? Selenium WebDriver ??
Java?? Selenium WebDriver? ?????:
IDE?? ? Java ????? ????.
pom.xml? ??? ???? ????? Selenium WebDriver ???? ?????(Maven? ???? ??).
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>4.5.0</version> </dependency>
2.3 ?? ?????? Selenium ??
???? ????? WebDriver(?: Chrome? ChromeDriver)? ?????? ??? ?????? ?? ??? ?????.
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>4.5.0</version> </dependency>
2.4 Java? ? ?? Selenium ???: ??? ???
??? ????? ?? ????? ???? ??? ??????.
System.setProperty("webdriver.chrome.driver", "path/to/chromedriver"); WebDriver driver = new ChromeDriver();
? ??? ???? Chrome? ??? "https://www.example.com"?? ???? ??? ??? ??? ?? ????? ????.
3. Selenium ??: ?? ?? ? ??
3.1 ?? ???? ???
??? ??, ?? ?? ? ?? ???? ??? ?????? ?? ??? ????.
import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class FirstSeleniumTest { public static void main(String[] args) { // Set the path to the ChromeDriver System.setProperty("webdriver.chrome.driver", "path/to/chromedriver"); // Initialize the WebDriver WebDriver driver = new ChromeDriver(); // Open a website driver.get("https://www.example.com"); // Print the page title System.out.println("Page title is: " + driver.getTitle()); // Close the browser driver.quit(); } }
? ????? ????? ???? ?? ????? ID? ???? ??? ?????.
3.2 ? ??? ????
??? ????? ???? ???? ??? ? ????.
driver.get("https://www.example.com"); driver.findElement(By.id("someButton")).click();
3.3 ?? ? ??? ??
???? ???? ???? ?? ??? ??? ??? ???? ? ?? ????.
// Enter text into a form field driver.findElement(By.name("username")).sendKeys("myUsername"); // Extract and print text from an element String text = driver.findElement(By.id("welcomeMessage")).getText(); System.out.println("Welcome message: " + text);
? ??? ??? ?????? ?? ??? ??? ??? ?????.
3.4 ?? ???: ?? ? ? ??? ??
?? ??? ???? ?????:
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10)); WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("dynamicElement"))); element.click();
?? ?? ??? ??? ???? ??? ????? ? ????.
4. Java?? Selenium? ???? ?? ?? ?? ??
4.1 ?? ?? ??? ??? ??? ??
??? ?? ???? ?? ??? ? ????.
??? ???????? ??? ?????.
????? ??? ?? ???? ??? ????? ??? ??? ???
??? ??? ?? ? ?? ???? ?????.
4.2 ??? ??? ???
???? ??? ? ????. ??:
???? : ??? ?? ? ????? ?????.
?? : ??? ??? ????? ??? ?????.
???: IDE? ???? ???? ??? ???? ?????.
4.3 ??? ?? ???
??? ??? ??? ??:
?? ??? : ??? ?? ?? ??? ??? ?????.
?? ?? : Selenium Grid ?? ??? ?????? ???? ???? ??? ?????.
4.4 ???? ??? ?? ??? ??
??? ?? ???? ??? ????.
? ???? : ?? ?? ?? ??? ?????.
?? ?? : ??? ??? ??? ?? ??? ?????.
?? ???? : ?? ?? ???? ????? ????.
5. ??
? ????? ?? ??? ??? ????.
Selenium ?? ? ?? ?? ??, Java ?????? Selenium? ???? ??, Selenium? ???? ?? ?? ???? ?, Selenium ??? ??, ??? ? ???? ?? ?.
??? ??? ?? ??? ??? ?? ??? ??? ?????! ??? ??? ???!
?? ? ?? ??? ??: Java?? Selenium ???? ?? ?: ?? ?? ? ??? ??? ?? ???
? ??? Java?? Selenium? ????? ?? ?: ?? ?? ? ??? ??? ?? ???? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ?? ?? ??? ??? ?? ??? ??, ? ? ?? ? ??? ?????. 1. ??? ?? ???? ?? ???? ???-????, ? ??? ??? ??? ? ????, Hashmap? ???-??? ?? ??? ??? ???? ????. 2. NULL ? ?? ???? HashMap? ??? NULL ?? ?? ? ?? ???? ?? HashTable? NULL ?? ?? ???? ??? NullPointerException? ?????. 3. ????? ??? ????? ?? ??? ?? ?? ? ????? HashTable? ? ??? ?? ?? ??? ????. ?? ConcurrenTashMap? ???? ?? ????.

Java? ?? ??? ??? ?? ??? ??? ?? ??? ??? ?? ??? ?? ?? ??? ???? ??? ?? ???? ?????. 1. ??? ???? ??? ?? ?? ? ???? ?? ??? ???? ?? ?? ??? ? ????. 2. ???? ?? ??? ???? ??? ?? ???? ?? ?? ??? ???????. 3. ?? ???? ?? ?? ?? ? ???? ???? ?? NULL ?? ??? ? ????. 4. ?? ???? ??? ?? ?? ? ??? ?????? ?? ??? ??? ?? ?? ??? ????? ??? ??? ??? ??????? ?? ???? ??????.

JIT ????? ??? ???, ??? ?? ? ???, ?? ?? ? ???? ? ? ?? ?? ??? ? ?? ??? ?? ??? ??????. 1. ??? ???? ?? ?? ??? ??? ?? ?? ???? ??? ?? ?????. 2. ??? ?? ? ??? ?? ?? ? ??? ???? ?? ?? ???; 3. ?? ??? ??? ?? ??? ???? ???? ???? ? ?? ?? ??? ?????. 4. ?? ??? ?? ??? ??? ???? ???? ?? ? ??? ???? ?? ??? ?????.

staticmethodsininterfaceswereIntRectionSelffacesswithinteffaceswithinteffaceswithintintinjava8toallowutilityFunctionswithinterfaceitswithinteffaceswithinterfaceffaces

???? ??? ??? Java?? ??? ?? ???? ??? ?? ? ? ??? ??? ???? ? ?????. ?? ???? ??? ??, ??? ?? ??? ?? ?? ??? ??? ????? ???? ????? ?????. ?? ??? ??? ??, ????? ? ??? ????, ?? ??? ??? ?????? ? ?? ? ?? ?????.

injava, thefinalkeywordpreventsavariable'svalue'svalueffrombeingchangedafterassignment, butitsbehaviordiffersforprimitivesandobjectreences.forprimitivevariables, asinfinalintmax_speed = 100; wherereassoncesanerror.forobjectref

??? ??? ?? ?? ??? ????? ? ???? ????? ???? ?? ???? ?? ???? ?????. ?? ??? ??? ????. ?? ?? ?? ??? ???? ???? ?? ?? ??? ??? ?? ?? ??? ??? ?????. ?? ??? ??? ????. ?? ??? ?? ??? ?? ?? ??? ?? ?? ??? ???? NewClass ()? ??? ?? ???? ????. ?? ??? ?? ??? ???? ?? ??? ?? ? ? ??? ?? ?? ??? ????? ????? ?????. ?? ??, ?? ?????? ?????, ??? ? ?? ????? ??? ?? ?????. ???? ?? ?? ??? ???? ?? ???? ?? ? ??? ???? ?? ??? ?? ?????? ?????. ???? ???? ??? ??, ?? ?? ? ?? ??? ????, ?? ?? ???? ?????.

??? ? ?? ??? ???? : ????? ?? ?. 1. int? ???? ???? ?? ?? ?? ? ??? ???? ?????. 2. ?? ? ???? (int) myDouble ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.
