From 84bdd0c3a65b91c1adb32f13daa0c1bd9761cd0b Mon Sep 17 00:00:00 2001 From: Nithu Lakshmi Date: Sat, 7 Dec 2024 16:10:48 +0530 Subject: [PATCH 1/3] Commit Done --- Lambdatest Playground/.classpath | 11 ++ Lambdatest Playground/.project | 17 +++ .../org.eclipse.core.resources.prefs | 2 + .../.settings/org.eclipse.jdt.core.prefs | 14 ++ .../Lambdatest_Registration.class | Bin 0 -> 5433 bytes .../Lambdatest_Registration.java | 127 ++++++++++++++++++ 6 files changed, 171 insertions(+) create mode 100644 Lambdatest Playground/.classpath create mode 100644 Lambdatest Playground/.project create mode 100644 Lambdatest Playground/.settings/org.eclipse.core.resources.prefs create mode 100644 Lambdatest Playground/.settings/org.eclipse.jdt.core.prefs create mode 100644 Lambdatest Playground/bin/lambdatest_project/Lambdatest_Registration.class create mode 100644 Lambdatest Playground/src/lambdatest_project/Lambdatest_Registration.java diff --git a/Lambdatest Playground/.classpath b/Lambdatest Playground/.classpath new file mode 100644 index 0000000..900895c --- /dev/null +++ b/Lambdatest Playground/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Lambdatest Playground/.project b/Lambdatest Playground/.project new file mode 100644 index 0000000..d1c0497 --- /dev/null +++ b/Lambdatest Playground/.project @@ -0,0 +1,17 @@ + + + Lambdatest Playground + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/Lambdatest Playground/.settings/org.eclipse.core.resources.prefs b/Lambdatest Playground/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/Lambdatest Playground/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/Lambdatest Playground/.settings/org.eclipse.jdt.core.prefs b/Lambdatest Playground/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..6e5f874 --- /dev/null +++ b/Lambdatest Playground/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=22 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=22 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=22 diff --git a/Lambdatest Playground/bin/lambdatest_project/Lambdatest_Registration.class b/Lambdatest Playground/bin/lambdatest_project/Lambdatest_Registration.class new file mode 100644 index 0000000000000000000000000000000000000000..60c4eea2ffccca7dfcef93e829f5b0ae297889d9 GIT binary patch literal 5433 zcma)AX>=Ra75?6Mku1x0B0Ek5AyLv0+eu_4ID6t^?AT;cHf)jx$Az)r=|W3OciMA$+Wg}jPQMw+vXrPPKF6B( z=G}MSefNI%yYJ02Z#?`MfL^@jfg-RhrKU&Ysx2-1+Kg!&k}*3Hoq2VYOlX#EsHHA`Sc^vzqeiL0emO&4fwACAsgHfWogp4il}&x6?l zZHAeM7#XP_Q6rX2NnOjPBeA4uq-CVfeQYtcacTN63w8BqL8}LI1TLvGZND7N3;Qt_ z^SJl4s;dcZsiVCkdcg@xc4r(XTAS)|5$1bvvB0HoYJwk^U;$T}(Db-5A<+JRSK9AN za-k3wd$34g$%Pln%lq*bCtBXLI;o|#>!k;mG8&a;TG>p-FzrZIixmB_U)Agy;>!8+ z`Otyo9xP*|-JsYSUA-lnhmjvE5EiI2#s+1~(Bq8x-1hAq`S6uVZt`IXA`XgH3ao9v zuzxpIQqZx_i^~MIC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Wjk>W66`-*(B)s?oD=Oa-KP9h;scpJ0%|7RFD=iQH#EZ^(o~X1p z5B^dX>ayJw+(5p_JA(9IxKQyG4@5khU=gXd%DsV9vBkS5e?9C+_!NBBEIS47gKQ}9 z@z)s!{HS+-T>UgSJbs_ zqHM??^v?|C%7z+(4KqVGxI^#AhhSsl3A{7dcn0qico-i5PT~%}34DZ4ca4vgDQXHf zO)GLeHY+&mJdfQ~He+^h_VkPuf%2sTT<9b|;TRAo81TuW0iT*SAdi@7bDM+BGwSXu z+eu5XWoGCzWk$>i&T)r=bIuF=ioj>fL|cQcdC}GivG{zM=-lAk=>?erUlb^2k{G~V zW=#{k{DLwM0kol+N!NnQ(8>=@bFr0gckr{vL0ruH!hBf#q%n?#xP@OR?qJ&9hsC&` zcl{H%lsUDOWulGspo6r&46k50UPTyZ(TUd)5%v5S(8x>uLUf6xSS{9Kjo5&7VmsE0 zz1SdBY!q>97Fl$Qqr5}kgdTB>x8=LgEAHX7_c;2+2@HsbuvI*TZQ>n3Ju~Z5yiLJY7}S10zArAlTytHJVwp4=$U`uJA5~ret8~`vlXB>?!|Z6YNju4 z#uIF{&=U!KkF7cM!Df7)tyb=SHlAc_F8P*UO7eV*Yq&#)i1t#YU_y67W}=o?!Pd|4m$t< literal 0 HcmV?d00001 diff --git a/Lambdatest Playground/src/lambdatest_project/Lambdatest_Registration.java b/Lambdatest Playground/src/lambdatest_project/Lambdatest_Registration.java new file mode 100644 index 0000000..9fac809 --- /dev/null +++ b/Lambdatest Playground/src/lambdatest_project/Lambdatest_Registration.java @@ -0,0 +1,127 @@ +package lambdatest_project; + +import java.time.Duration; +import org.openqa.selenium.By; +import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.chrome.ChromeDriver; +import org.openqa.selenium.support.ui.ExpectedConditions; +import org.openqa.selenium.support.ui.WebDriverWait; + +public class Lambdatest_Registration { + + public static void main(String[] args) { + WebDriver driver = new ChromeDriver(); + driver.manage().window().maximize(); + + WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10)); + driver.get("https://ecommerce-playground.lambdatest.io/index.php?route=account/login"); + waitForTheUser(); + + WebElement continueButton = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@class='btn btn-primary']"))); + continueButton.click(); + waitForTheUser(); + + WebElement firstName = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@name='firstname']"))); + firstName.click(); + firstName.sendKeys("Ethan"); + waitForTheUser(); + + WebElement lastName = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@name='lastname']"))); + lastName.click(); + lastName.sendKeys("Winters"); + waitForTheUser(); + + WebElement emailField = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@name='email']"))); + emailField.click(); + emailField.sendKeys("ethanwinters1984@gmail.com"); + waitForTheUser(); + + JavascriptExecutor scrollDownOne = (JavascriptExecutor) driver; + scrollDownOne.executeScript("window.scrollBy(0,400)"); + waitForTheUser(); + + WebElement telePhone = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@name='telephone']"))); + telePhone.click(); + telePhone.sendKeys("(337) 555-0199"); + waitForTheUser(); + + WebElement passWord = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@name='password']"))); + passWord.click(); + passWord.sendKeys("EthanwinterS@1984"); + waitForTheUser(); + + WebElement confirmPassword = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@name='confirm']"))); + confirmPassword.click(); + confirmPassword.sendKeys("EthanwinterS@1984"); + waitForTheUser(); + + WebElement subscribeButton = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//label[@for='input-newsletter-yes']"))); + subscribeButton.click(); + waitForTheUser(); + + WebElement policyButton = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("(//label[@class='custom-control-label'])[3]"))); + policyButton.click(); + waitForTheUser(); + + WebElement submitButton = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@type='submit']"))); + submitButton.click(); + waitForTheUser(); + + WebElement loginMessage = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//h1[@class='page-title my-3']"))); + System.out.println("Login Message: " + loginMessage.getText()); + System.out.println("Congratulations! Your new account has been successfully created!"); + waitForTheUser(); + + WebElement proceedButton = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[text()='Continue']"))); + proceedButton.click(); + waitForTheUser(); + + JavascriptExecutor scrollDownTwo = (JavascriptExecutor) driver; + scrollDownTwo.executeScript("window.scrollBy(0,400)"); + waitForTheUser(); + + WebElement logoutButton = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//i[@class='fas fa-sign-out-alt fa-fw mr-1']"))); + logoutButton.click(); + waitForTheUser(); + + WebElement logoutMessage = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//h1[@class='page-title my-3']"))); + System.out.println(); + System.out.println("Logout Message: " + logoutMessage.getText()); + System.out.println("You have been logged off your account. It is now safe to leave the computer."); + waitForTheUser(); + + WebElement logoutContinue = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//a[@class='btn btn-primary']"))); + logoutContinue.click(); + waitForTheUser(); + + WebElement myAccount = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"widget-navbar-217834\"]/ul/li[6]/a/div/span"))); + myAccount.click(); + waitForTheUser(); + + WebElement inputEmail = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@id='input-email']"))); + inputEmail.click(); + inputEmail.sendKeys("ethanwinters1984@gmail.com"); + waitForTheUser(); + + WebElement inputPassword = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@id='input-password']"))); + inputPassword.click(); + inputPassword.sendKeys("EthanwinterS@1984"); + waitForTheUser(); + + WebElement inputLogin = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@value='Login']"))); + inputLogin.click(); + waitForTheUser(); + + driver.quit(); + } + + public static void waitForTheUser() { + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } +} From ebdb52b301830bdbb9a8cfb3475805e11cca4665 Mon Sep 17 00:00:00 2001 From: Nithu Lakshmi <110821617+niths09@users.noreply.github.com> Date: Sat, 7 Dec 2024 16:11:54 +0530 Subject: [PATCH 2/3] Delete ToolsQA_Project directory --- ToolsQA_Project/.classpath | 11 -- ToolsQA_Project/.project | 17 --- .../org.eclipse.core.resources.prefs | 2 - .../.settings/org.eclipse.jdt.core.prefs | 14 --- .../tools_qa_page/Registeration_Form.class | Bin 4249 -> 0 bytes .../src/tools_qa_page/Registeration_Form.java | 99 ------------------ 6 files changed, 143 deletions(-) delete mode 100644 ToolsQA_Project/.classpath delete mode 100644 ToolsQA_Project/.project delete mode 100644 ToolsQA_Project/.settings/org.eclipse.core.resources.prefs delete mode 100644 ToolsQA_Project/.settings/org.eclipse.jdt.core.prefs delete mode 100644 ToolsQA_Project/bin/tools_qa_page/Registeration_Form.class delete mode 100644 ToolsQA_Project/src/tools_qa_page/Registeration_Form.java diff --git a/ToolsQA_Project/.classpath b/ToolsQA_Project/.classpath deleted file mode 100644 index 900895c..0000000 --- a/ToolsQA_Project/.classpath +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/ToolsQA_Project/.project b/ToolsQA_Project/.project deleted file mode 100644 index 7cf210a..0000000 --- a/ToolsQA_Project/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - ToolsQA_Project - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/ToolsQA_Project/.settings/org.eclipse.core.resources.prefs b/ToolsQA_Project/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0..0000000 --- a/ToolsQA_Project/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/ToolsQA_Project/.settings/org.eclipse.jdt.core.prefs b/ToolsQA_Project/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 6e5f874..0000000 --- a/ToolsQA_Project/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,14 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=22 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=22 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning -org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=22 diff --git a/ToolsQA_Project/bin/tools_qa_page/Registeration_Form.class b/ToolsQA_Project/bin/tools_qa_page/Registeration_Form.class deleted file mode 100644 index e93963cc549b560f863c2ef5bdfa588825123684..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4249 zcma)AYj9L&8GgRaq+9sl^t@%heKlHFkinaQ5Z z_rBlvUY_@P-@|MFdFf>Uo%n->kU+w-?TkBm(iqJd<1%?zj+?G09m6wiYjn5mWHnR@ zEI4kQGLjj?8c!Y=J1$e6K=oGBGQGD8R5UdY3RHI4X&FHUYIIbgTA;qyv}9jCJ0_h0 zV=N;DV!d|C$P5~esh$fjE4>NR6uu!1U zcE*!-PFg38q$@MhGV|GFYQnLzGTG%{b~)xL=|r#qHBl_W5)F$5R+dv6l4F6ej-^;e zkF$ow7zs2tHTT|DVeNsOil5sN#d56BaF@Wk|4Tu~O5DwpCQU1CPYN{M@uVSNk_RQQ zM#E}>wYNVgkk@gK%27CLOqp5p38`V7Kx;WoH=oPdj+e}v$+>t88Kzf745@#S2%6EN zVFUB)C&e=v>RtH&K{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] README.md Done --- README.md | 73 +++++++++++++++++++++++++------------------------------ 1 file changed, 33 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index b50cf48..1b9a7e3 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,33 @@ -# ToolsQA Automation Using Selenium - -### Description -This project demonstrates an automation script for user registration, login and logout on the ToolsQA demo application. The script interacts with the web elements on the registration and login pages to simulate a user performing the following tasks: -1. Registering a new account. -2. Logging in with the registered account. -3. Logging out of the account. - -The script uses Selenium WebDriver with Java and incorporates manual handling for CAPTCHA verification. - - -### Features -- Automates the registration process by filling in user details. -- Handles manual CAPTCHA solving with a pause in the script. -- Automates login and logout functionalities after successful registration. -- Alerts and confirmations are managed effectively in the script. -- Uses dynamic waits to handle varying page load times. - - -### Prerequisites -Before running the project, ensure the following are installed and set up: - -1. **Java Development Kit (JDK)**: Install JDK 8 or later and set up the environment variables. -2. **Selenium WebDriver**: Include the Selenium library in your project. You can add it using a dependency manager like Maven/Gradle or manually download it. -3. **WebDriver Binary**: Ensure the ChromeDriver binary is installed and matches your Chrome browser version. Place it in a directory included in your system's PATH or provide the path explicitly in the code. -4. **Browser**: Google Chrome browser installed on the system. -5. **IDE**: Use an Integrated Development Environment like IntelliJ IDEA or Eclipse to run the script. - - -### **Technologies Used** -- **Programming Language**: Java -- **Automation Framework**: Selenium WebDriver -- **Browser**: Google Chrome -- **Testing Environment**: ToolsQA Demo Page -- **Java Libraries**: - - Selenium Support Libraries (`org.openqa.selenium.*`) - - WebDriverWait and ExpectedConditions for dynamic waits - - Java Utilities like `Scanner` for user input - - JavaScript Executor for smooth scrolling - +# LambdaTest Playground Project + +## Project Description +This is an automation script designed to test the registration and login functionality of the Ecommerce Playground website. It utilizes Selenium WebDriver with Java to simulate user interactions, such as filling out forms, navigating through pages and verifying successful actions. This script automates the process of creating a new user account, logging out and re-logging in, ensuring the website's core features function as expected. + +--- + +## Features +1. Automates user registration with predefined data inputs. +2. Validates the success message for account creation. +3. Automates user logout and subsequent login. +4. Verifies the functionality of critical UI elements such as buttons, text fields, and messages. +5. Implements JavaScript scrolling to handle long web pages. +6. Includes delays to mimic real-world user interactions. + +--- + +## Prerequisites +- **Java Development Kit (JDK)** installed (version 11 or higher recommended). +- **Google Chrome** browser installed. +- **ChromeDriver** compatible with the installed Chrome browser version. +- **Eclipse IDE** or any other Java-supported IDE. +- **Selenium WebDriver** library added to the project. + +--- + +## Technologies Used +- **Java**: Programming language for writing the automation script. +- **Selenium WebDriver**: For browser automation. +- **Google Chrome & ChromeDriver**: Browser and corresponding WebDriver for executing the test. +- **JavaScriptExecutor**: For scrolling actions. +- **Explicit Waits**: To handle dynamic elements and ensure proper interaction. +- **Eclipse IDE**: Integrated Development Environment for Java development.