Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CRIO_BYTES
SELENIUM
me_log4j
Commits
3b4474b4
Commit
3b4474b4
authored
2 years ago
by
Simran Kumari
Browse files
Options
Download
Email Patches
Plain Diff
Update src/test/java/Log4j/Login.java
parent
751ec318
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/test/java/Log4j/Login.java
src/test/java/Log4j/Login.java
+7
-7
No files found.
src/test/java/Log4j/Login.java
View file @
3b4474b4
...
...
@@ -30,12 +30,12 @@ public class Login {
*/
@BeforeSuite
(
alwaysRun
=
true
)
public
WebDriver
startBrowser
()
throws
MalformedURLException
{
//TODO: call the configure method of BasicConfigurator class
//TODO
1
: call the configure method of BasicConfigurator class
//TODO2: Define log4j properties file location
//TODO: write log for driver object creation
//TODO
1
: write log for driver object creation
// Code to Launch Browser using Zalenium in Crio workspace
...
...
@@ -57,7 +57,7 @@ public class Login {
* use this method to open the url of an application
*/
public
void
openURL
(
String
browserURL
)
{
// TODO: Write log for opening given url
// TODO
1
: Write log for opening given url
// open the URL
driver
.
get
(
browserURL
);
...
...
@@ -69,7 +69,7 @@ public class Login {
*/
public
void
clickOnLogin
()
{
WebElement
btnLogin
=
driver
.
findElement
(
By
.
xpath
(
"//button[text()='Login']"
));
// TODO: Log clicking on Login button web element.
// TODO
1
: Log clicking on Login button web element.
// Click on Login button
btnLogin
.
click
();
...
...
@@ -81,7 +81,7 @@ public class Login {
public
void
enterUserName
()
{
WebElement
userName
=
driver
.
findElement
(
By
.
id
(
"username"
));
// TODO:Log user name and the userName text box web element
// TODO
1
:Log user name and the userName text box web element
// Enter userName
userName
.
sendKeys
(
"abc"
);
...
...
@@ -92,7 +92,7 @@ public class Login {
*/
public
void
enterPassword
()
{
WebElement
password
=
driver
.
findElement
(
By
.
id
(
"password"
));
// TODO: Log password and the password text box web element
// TODO
1
: Log password and the password text box web element
// Enter password
password
.
sendKeys
(
"abc123"
);
...
...
@@ -104,7 +104,7 @@ public class Login {
*/
public
void
clickOnLoginButton
()
{
WebElement
loginButton
=
driver
.
findElement
(
By
.
xpath
(
"//button[text()='Login to QKart']"
));
// TODO: Log clicking on LOGIN TO QKART and it's web element
// TODO
1
: Log clicking on LOGIN TO QKART and it's web element
// Click on "LOGIN TO QKART" button
loginButton
.
click
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment