package merchantapp_locator;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;

import merchantapp_config.DbConnection;

public class MerchantLoginLocator extends DbConnection{
	 public MerchantLoginLocator() throws Exception {
		super();
		// TODO Auto-generated constructor stub
	}
	 DbConnection dbconnection = new DbConnection();
	 
	 protected String dbotp = dbconnection.pullOtp();
	 
	 WebDriver driver;

	@FindBy(how = How.XPATH, using = "//*[@id=\"app\"]/div/div/div[2]/div")
	@CacheLookup
	WebElement startbutton;
	
	@FindBy(how = How.ID, using = "phone")
	@CacheLookup
	WebElement phonenumber;
	
	@FindBy(how = How.XPATH, using = "//*[@id=\"app\"]/div/div/div/section/div/div/div[2]/form/div[3]/button[1]")
	@CacheLookup
	WebElement getotp;
	
	@FindBy(how = How.ID, using = "otp")
	@CacheLookup
	WebElement otppass;
	
	@FindBy(how = How.XPATH, using = "//*[@id=\"app\"]/div/div/div/section/div/div/div[2]/form/div[3]/button[1]")
	@CacheLookup
	WebElement logininapp;
	
	@FindBy(how = How.XPATH, using ="//*[@id=\"___reactour\"]/div[2]/button")
	@CacheLookup
	WebElement fakeclick;
	
	@FindBy(how = How.XPATH, using ="//*[@id=\"app\"]/div/div[1]/div[2]/div/button[3]")
	@CacheLookup
	WebElement addapplicationbutton;
	
	public WebElement startButton() {

		return startbutton;

	}
	
	public WebElement phoneNumber()
	{
		return phonenumber;
	}
	
	public WebElement getOtp()
	{
		return getotp;
	}
	
	public WebElement otpPass()
	{
		return otppass;
	}
	
	public WebElement loginApp()
	{
		return logininapp;
	}
	
	public WebElement fakeClick()
	{
		return fakeclick;
	}
	
	public WebElement addApplicationbutton()
	{
		return addapplicationbutton;
	}
	
}
