Bolt-Tech / autofill-mybenefits-java

Autofill data for mybenefits using web driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Autofill mybenefits site in Java

Autofill data for mybenefits using selenium webdriver

Live demo preview

mybenefits demo

Prerequisites

Getting Started

  1. Clone this repo

  2. Run Eclipse and click the following Package-->Import Project(Or just click Import existing projects on welcome page), then General-->Existing project into workspace Eclipse Import Project

  3. Set as UTF-8 in Eclipse by going to Preferences-->General-->Workspace and select UTF-8 as the Text File Encoding. This should set the encoding for all the resources in your workspace. Any components you create from now on using the default encoding should all match. Setting UTF-8

  4. on Package Explorer tab, right click pom.xml and click Maven-->Update Project... then click OK to update all packages(errors will disappear from console) Setting UTF-8

  5. Download 2 required files from GitHub releases mybenefits_data.xls and webdriver_setup.exe, Readme-setup.docx(Optional for Hebrew readers) and place anywhere you want.

  6. Run webdriver_setup.exe (Only works in Windows and it's safe) and wait for it to finish installation chromedriver in few moments

  7. Open Eclipse project where you cloned "autofill-mybenefits-java" and redirect to \testeclipsegit\autofill-mybenefits-java\src\test\java\pages_oop\BaseDriver.java and change code in line 11: System.setProperty("webdriver.chrome.driver","\old_path_to_your\\chromedriver.exe"); to your location of chromedriver like this System.setProperty("webdriver.chrome.driver","\new_path_to_your\\chromedriver.exe");

  8. then redirect to \autofill-mybenefits-java\src\test\java\test_case\Setup_Data_Demo.java, then change code in line 33 to your saved location of excel file

  9. Finally, redirect to \autofill-mybenefits-java\src\test\java\test_case\ and right click Setup_Data_Demo.java then run and enjoy automating fill in data that read from excel file (you can change data only in orange column D2 to D25 from title "Value")

NOTE: If for some reason Eclipse unable to run/debug Setup_Data_Demo.java or giving different errors, end all duplicates if found chromedriver.exe from Task Manager (Windows)

Eclipse Import Project

About

Autofill data for mybenefits using web driver


Languages

Language:Java 100.0%