Open fentonfentonfenton opened 6 years ago
Hi,
Procedure I followed to automate you tube launch using chrome browser and I am using Eclipse java oxygen.
step 1: I created a new maven project with artifact Id (with some name). step 2: In pom.xml file add dependencies and save. got dependencies from URL: https://www.seleniumhq.org/download/maven.jsp
step 3: Download zip file from URL: https://sites.google.com/a/chromium.org/chromedriver/downloads and extract and save to a folder.
for firefox download from URL https://github.com/mozilla/geckodriver/releases.
step 4: Copy the path of .exe file and use in arguments for driver.
step 5: Create package in src/test/java.
step 6: Create a java class.
step 7: Call system.setproperty specify the key as "webdriver.chrome.driver" and value as "path of chromedriver.exe" on system.
thx! figured it was eclipse. will install.
Hi Rani,
Back again.
So on a system with maven and eclipse installed, what is next? If I follow your steps above I don't see the step where you run the test. Do you run it from the eclipse UI, or using maven in the terminal? Please treat the reader as someone who has never used your environment before.
thanks
Hi,
I used Eclipse UI to run tests, I am sending detailed steps.
Step 1: After launching Eclipse To create Maven Project go to File->New->Other->Maven project->Next ->Next->Next->GroupId(Ex:Techtest)->ArtifactId(Ex:bbclive)->Finish.
Step 2: Package Explorer->Click on bbclive->pom.xml->pom.xml->add dependencies of selenium java ->save
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.12.0</version>
`
` >
Step 3: Download zip file from URL: https://sites.google.com/a/chromium.org/chromedriver/downloads and extract and save to a folder. for firefox download from URL https://github.com/mozilla/geckodriver/releases.
Step 4: Click on bbclive->src/test/java->right click on techtest.bbclive package->New->class ->Name(Ex:videos)->click on public static void main->Finish.
Step 4: In videos class-> write the java code.
Step 5: Call system.setproperty specify the key as "webdriver.chrome.driver" and value as "path of chromedriver.exe" on system.
Step 6: To execute Test Right click on videos class -> Run As->Java Application( It will run).
If you have any questions, please feel free to ask me.
Thanks, Sandhya Rani Nimmana
Hi Fenton,
I updated the information on my GitHub, please check it.
Kind Regards, Sandhya Rani Nimmana
On Wednesday, June 20, 2018, fenton notifications@github.com wrote:
Hi Rani,
Back again.
So on a system with maven and eclipse installed, what is next? If I follow your steps above I don't see the step where you run the test. Do you run it from the eclipse UI, or using maven in the terminal? Please treat the reader as someone who has never used your environment before.
thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rani41/Technical-Test/issues/1#issuecomment-398751842, or mute the thread https://github.com/notifications/unsubscribe-auth/AmYQzjR5PxazUoFxa2f3STdizq4rzuUMks5t-lCsgaJpZM4UtRLg .
Hi !
We're able to clone the repository, but on an environment which has java, selenium and chromedriver/firefox installed, we will get an error if we try to run the JAVA
could you tell us a little more info about how you run the tests?
example errors: