Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M me_cucumber
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CRIO_BYTES
  • SELENIUM
  • me_cucumber
  • Merge requests
  • !1

Merged
Created 2 years ago by Simran Kumari@simrankumari-crio-usersMaintainer

Revert "Update Solution/stepdefns/milestone3activity1.java,..."

  • Overview 0
  • Commits 1
  • Changes 2

This reverts commit 413944b0

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (base)

and
  • latest version
    55f2f2a7
    1 commit, 2 years ago

2 files
+ 8
- 14

    Preferences

    File browser
    Compare changes
src/test/ja‎va/Stepdefns‎
driverFac‎tory.java‎ +5 -5
milestone3ac‎tivity1.java‎ +3 -9
src/test/java/Stepdefns/DriverFactory.java → src/test/java/Stepdefns/driverFactory.java
+ 5
- 5
  • View file @ 55f2f2a7

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
import org.openqa.selenium.remote.RemoteWebDriver;
public class DriverFactory {
public class driverFactory {
// instance of singleton class
private static DriverFactory instanceOfSingletonBrowserClass=null;
private static driverFactory instanceOfSingletonBrowserClass=null;
private WebDriver driver;
// Constructor
private DriverFactory() throws MalformedURLException{
private driverFactory() throws MalformedURLException{
final DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setBrowserName(BrowserType.CHROME);
driver = new RemoteWebDriver(new URL("http://localhost:8082/wd/hub"), capabilities);
}
public static DriverFactory getInstanceOfSingletonBrowserClass() throws MalformedURLException{
public static driverFactory getInstanceOfSingletonBrowserClass() throws MalformedURLException{
if(instanceOfSingletonBrowserClass==null){
instanceOfSingletonBrowserClass = new DriverFactory();
instanceOfSingletonBrowserClass = new driverFactory();
}
return instanceOfSingletonBrowserClass;
}
Show 20 lines Show all unchanged lines
src/test/java/Stepdefns/milestone3activity1.java
+ 3
- 9
  • View file @ 55f2f2a7

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
// public class milestone3activity1 {
// WebDriver driver;
// String username;
// @Before
// public void setUp() throws MalformedURLException, InterruptedException {
// DriverFactory driverFac = DriverFactory.getInstanceOfSingletonBrowserClass();
// driverFactory driverFac = driverFactory.getInstanceOfSingletonBrowserClass();
// driver = driverFac.getDriver();
// Get time stamp for generating a unique username
// Timestamp timestamp = new Timestamp(System.currentTimeMillis());
// Concatenate the timestamp to string to form unique timestamp
// username = "testuser1" + "_" + String.valueOf(timestamp.getTime());
// }
// @Given("User is Registered")
Show 20 lines Show all unchanged lines Show 20 lines
// driver.get("https://crio-qkart-frontend-qa.vercel.app/register");
// driver.findElement(By.xpath("//*[@id=\"username\"]")).sendKeys(username);
// driver.findElement(By.xpath("//*[@id=\"username\"]")).sendKeys("testuser1");
// driver.findElement(By.xpath("//*[@id=\"password\"]")).sendKeys("testuser1@pass");
Show 20 lines Show all unchanged lines
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
1
1 participant
user avatar
Reference: crio_bytes/selenium/me_cucumber!1
Source branch: revert-413944b0

    0 pending comments

Menu

Projects Groups Snippets
Help

2019, Crio.Do, All Rights Reserved