Last active
November 5, 2018 21:34
-
-
Save executeautomation/d46988bdd3e238a3e0a5763e36afd7ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AmazonHomePage | |
{ | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement element1; | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement element2; | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement element3; | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement element4; | |
//This will give you objects of Product Div | |
public int AmazonProductDivHomePage { get; set; } | |
//This will give you object of Cart Div | |
public int AmazonCartDivHomePage { get; set; } | |
public AmazonCartDivHomePage NavigateCartPage() | |
{ | |
return new AmazonCartDivHomePage(); | |
} | |
} | |
public class AmazonProductDivHomePage | |
{ | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement DivElement1; | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement DivElement2; | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement DivElement3; | |
} | |
public class AmazonCartDivHomePage | |
{ | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement DivElement1; | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement DivElement2; | |
[FindBy(How = How.Id, Using="HomeDiv")] | |
public IWebElement DivElement3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example for linkedIn