From 527f2f7574be66b54471fc5e8ef3a4a8f8e36bde Mon Sep 17 00:00:00 2001 From: Nithu Lakshmi Date: Tue, 10 Dec 2024 17:15:02 +0530 Subject: [PATCH 1/3] First Commit Done --- SignUpGenius_Project/.classpath | 11 ++ SignUpGenius_Project/.project | 17 +++ .../org.eclipse.core.resources.prefs | 2 + .../.settings/org.eclipse.jdt.core.prefs | 14 +++ .../bin/sign_up_genius/SignUp_Form.class | Bin 0 -> 4440 bytes .../src/sign_up_genius/SignUp_Form.java | 116 ++++++++++++++++++ 6 files changed, 160 insertions(+) create mode 100644 SignUpGenius_Project/.classpath create mode 100644 SignUpGenius_Project/.project create mode 100644 SignUpGenius_Project/.settings/org.eclipse.core.resources.prefs create mode 100644 SignUpGenius_Project/.settings/org.eclipse.jdt.core.prefs create mode 100644 SignUpGenius_Project/bin/sign_up_genius/SignUp_Form.class create mode 100644 SignUpGenius_Project/src/sign_up_genius/SignUp_Form.java diff --git a/SignUpGenius_Project/.classpath b/SignUpGenius_Project/.classpath new file mode 100644 index 0000000..900895c --- /dev/null +++ b/SignUpGenius_Project/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/SignUpGenius_Project/.project b/SignUpGenius_Project/.project new file mode 100644 index 0000000..a9a0538 --- /dev/null +++ b/SignUpGenius_Project/.project @@ -0,0 +1,17 @@ + + + SignUpGenius_Project + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/SignUpGenius_Project/.settings/org.eclipse.core.resources.prefs b/SignUpGenius_Project/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/SignUpGenius_Project/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/SignUpGenius_Project/.settings/org.eclipse.jdt.core.prefs b/SignUpGenius_Project/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..6e5f874 --- /dev/null +++ b/SignUpGenius_Project/.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/SignUpGenius_Project/bin/sign_up_genius/SignUp_Form.class b/SignUpGenius_Project/bin/sign_up_genius/SignUp_Form.class new file mode 100644 index 0000000000000000000000000000000000000000..0719ae732b1d47907963cd5d9051aa94bee75030 GIT binary patch literal 4440 zcma)9`*Ryt75=U)du4h3lASb4(^fG_kr=eRYl&Sf}5WYkEi znMu{s#Jm47=qzY9!euSVPos`=(;5d$I|q4U)!XFMuxayr4_^E`UO?7 zc}Dn=Rgw#qk>$#u`xvscMQ(-Bfa)4FW21x(4EL0qHpS;WWf^y26Zx7|bu~>cw6(U4 z-f_aVigBy45acIS;e zeHm{N*$HLUB`vEx$|Y=P=qxwW&Y7lRIZ94b*5WaxYEC8LM*M}tXhVmDcFL@q6i1^_ z59KUXL_kI-b~02O^9i0b^c3azuGS-MUiwNj`@+};MWCje;r`Y;$G5NC0&SBa?4m#~ zIF4!eDoQ?|?-FpznI4?Gl15gscv`a^Zi&>tRmL9NPtZ+sLh^>za-a%>;XxUDMYQVj zxfKFI@?J%0pLY0?)7rK_K4@{(;W0HP3MV#U#%IFVkGD&p`q)@5xC6^F z`f-4va>-Pk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=H<`W0fJ7B%!MdkXZdrMGI-p`O0bJ8qE()1 zm9MH6sU}NQrKseoO1>&DQcahrhN2-?mHb;Db=-v3TOF;AoUgcnidAGQFhvSia3PXk z!SZ!HcIpb=a~1FJ4M)Q(xHu(#pK?R=bjj*9(VD{Qoso}~h~%ieF8V}?s5V;bnO|GR z(@&MC)Y3niaBBhQp96p2O(3w1`G zEfF!0a#`Zr9mf8t^GFPshpFdb;XnLraB2}Cg)h~sRa z9dm&`Bm)CT1%@#nm_#}-gN49ZoD0n3yj!Zby>i40_$tLG6qv==@O3KIc%UCI;u}=l z1A*=MCN2>doC(z6TQmydBKs4*O`}R&VK3u5G^)ZI>`8o=MiL9LS$vO1A=bi%@qNld zH9N#&6uXxYX7h~U2PCZ_U;m1iX(W@Uzs3rUYRSjvaFs@N9Xj0W;- z46o3rk^Jf;uDFB7qA3&d6S8i$2RcAHECr5eOvfe{I}g0%8)={11Y@H=`&XtbH4_ Date: Tue, 10 Dec 2024 17:15:47 +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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@MCPib+q7hepvh& z8}S$J^cFVZ-`FhF_#ef6qJh196&?`lILL26yXfG!-ifWEn}hjbY!}1WAq-C0X>^G^ zhvw7h7Ej_~@eBvrXVD|hb25D%z2XY?i&xMm-oOFzM;sD==Uozd-y&okrU_e z1HP-mSux3|U0~&17rpfM0?YF)u^K<*U6>yI3qPX&HT36CxWso6dUFkziTNn~c#gQa z0G(bug_n3&OZ$gdeiu+j%Ukgi-qq9Yg}BN)e*LN;I;djWAL1RWeGy)s!L{=U@7r(* z*I)EsR#Wr_O;)53qrt#qR2=2=<0OKyIf96A?N|6U*I(x!|8t>7!;MPr{2M-o@LT+j b*X7)3Ip>q#SJ!a7ScErtP4N0=b Date: Tue, 10 Dec 2024 17:16:27 +0530 Subject: [PATCH 3/3] First README.md Done --- README.md | 67 ++++++++++++++++++++++--------------------------------- 1 file changed, 27 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index b50cf48..59d3ad6 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,27 @@ -# 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 - +# SignUp Genius Automation + +This project automates the user registration and login process on the SignUpGenius website. The script demonstrates Selenium WebDriver's capabilities for interacting with dynamic web elements and handling browser-based automation tasks. + +## Features +- Automates the user registration process, including inputting personal details and solving a CAPTCHA manually. +- Automates the login process for the registered user. +- Includes JavaScript-based scrolling for seamless interaction with the page. +- Performs logout functionality to complete the user flow. + +## Prerequisites +Before running this project, ensure you have the following: +1. **Java Development Kit (JDK)** - Version 8 or above. +2. **Google Chrome** - Latest stable version. +3. **ChromeDriver** - Version compatible with your Google Chrome browser. +4. **Selenium WebDriver** - Included in the project dependencies. +5. **CAPTCHA solving capability** - The script pauses for manual CAPTCHA solving. + +## Technologies Used +- **Java** - The programming language for automation. +- **Selenium WebDriver** - For interacting with web elements and automating browser actions. +- **Google Chrome & ChromeDriver** - For browser automation. +- **JavaScript Executor** - For advanced browser interactions such as scrolling. + +## Notes +- The script includes pauses (`Thread.sleep`) for better visibility of the process and user actions. +- CAPTCHA solving requires manual intervention, as automated CAPTCHA solutions are not implemented.