Skip to content

Commit a466066

Browse files
author
ashwin-ts69
committed
added files
0 parents  commit a466066

File tree

5 files changed

+121
-0
lines changed

5 files changed

+121
-0
lines changed

Diff for: A.class

2.37 KB
Binary file not shown.

Diff for: CaseScript.java

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import org.openqa.selenium.WebDriver;
2+
import org.openqa.selenium.*;
3+
import org.openqa.selenium.chrome.ChromeDriver;
4+
import org.openqa.selenium.By;
5+
import org.openqa.selenium.WebElement;
6+
import org.openqa.selenium.support.ui.Select;
7+
import java.util.concurrent.TimeUnit;
8+
import org.openqa.selenium.support.ui.ExpectedConditions;
9+
import org.openqa.selenium.support.ui.WebDriverWait;
10+
11+
class A{
12+
public static void main(String ar[]){
13+
System.setProperty("webdriver.chrome.driver","C:\\Chrome Driver\\chromedriver-win64\\chromedriver.exe");
14+
WebDriver driver = new ChromeDriver();
15+
driver.navigate().to("C:\\Users\\ashwin-ts69\\Documents\\Selinium\\Driver Project\\Project 3\\Registration.html");
16+
driver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);
17+
18+
// WebDriverWait wait = new WebDriverWait(driver, 20);
19+
// WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.name("submitform")));
20+
21+
22+
23+
24+
driver.manage().window().maximize();
25+
26+
27+
// driver.setTitle("title1");
28+
driver.findElement(By.name("username")).sendKeys("Ashwin");
29+
driver.findElement(By.xpath("//input[@id='dob']")).sendKeys("29/10/2000");
30+
31+
32+
WebElement dropelement=driver.findElement(By.tagName("select"));
33+
dropelement.findElement(By.xpath("//option[. ='America']")).click();
34+
35+
// WebElement dropdown = driver.findElement(By.id("selenium_commands"));
36+
// dropdown.findElement(By.xpath("//option[. = 'Browser Commands']")).click();
37+
// Select s=new Select(dropelement);
38+
// s.selectByValue("1");
39+
driver.findElement(By.xpath("//input[@id='email']")).sendKeys("[email protected]");
40+
driver.findElement(By.xpath("//input[@id='pass']")).sendKeys("ashwein@414");
41+
driver.findElement(By.name("submitform")).click();
42+
43+
// driver.navigate().to("C:\\Users\\ashwin-ts69\\Documents\\Selinium\\Driver Project\\Project 3\\index.html");
44+
driver.findElement(By.xpath("//input[@id='email-name']")).sendKeys("Ashwin");
45+
driver.findElement(By.xpath("//input[@id='email-pass']")).sendKeys("Ashwin789");
46+
driver.findElement(By.xpath("//input[@name='submittag']")).click();
47+
48+
49+
}
50+
}

Diff for: Registration.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<html>
2+
<head>
3+
<title>
4+
5+
</title>
6+
</head>
7+
8+
<body>
9+
<div class="div-a">
10+
<p>Sign UP</p>
11+
</div>
12+
13+
<form action="index.html">
14+
15+
<input id="name" name="username" placeholder="Name"><br>
16+
<input id="dob" name="dob" placeholder="DOB"><br>
17+
Country <select name="Country">
18+
<option>India</option>
19+
<option>America</option>
20+
</select>
21+
<input id="email" name="email" placeholder="Email Address"><br>
22+
<input id="pass" name="pass" placeholder="Password"><br>
23+
24+
<input type="submit" name="submitform">
25+
</form>
26+
27+
28+
</body>
29+
</html>

Diff for: index.html

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<html>
2+
<head>
3+
<title></title>
4+
<style>
5+
body{
6+
margin-left: 700px;
7+
top:30px;
8+
}
9+
input{
10+
margin-top: 6px;
11+
}
12+
</style>
13+
</head>
14+
<body>
15+
<div class="div-a">
16+
<p>E-Mail</p>
17+
</div>
18+
<form action="https://zoho.com">
19+
<input id="email-name" placeholder="Email Addess"> <br>
20+
<input id="email-pass" placeholder="Password"> <br>
21+
<input type="submit" name="submittag">
22+
</form>
23+
24+
<div class="reg">
25+
or <button><a href="/Registration">SignUp</a></button>
26+
</div>
27+
</body>
28+
</html>

Diff for: main.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html>
2+
<head>
3+
<title>
4+
5+
</title>
6+
</head>
7+
8+
9+
<body>
10+
<div class="div-a">
11+
<p>Welcome to ACraftsWorks</p>
12+
</div>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)