package selclassjan22;
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
public class today {
public static void main(String[] args) throws InterruptedException {
[Link]().setup();
WebDriver driver = new ChromeDriver();
[Link]("[Link]
//WebElement search = [Link]([Link]("search_query_top"));
WebElement search =
[Link]([Link]("//*[@id=\"search_query_top\"]"));
[Link]("Shirt");
WebElement searchButton = [Link]([Link]("submit_search"));
[Link]();
WebElement image =
[Link]([Link]("//*[@id=\"center_column\"]/ul/li/div/div[1]/div/a[1]/
img"));
[Link]();
[Link]([Link](" //*[@id=\"quantity_wanted\"]")).clear();
[Link]([Link]("
//*[@id=\"quantity_wanted\"]")).sendKeys("5");
WebElement size = [Link]([Link]("//*[@id=\"group_1\"]"));
Select sizeupdate = new Select(size);
[Link]("M");
[Link]([Link](" //*[@id=\"color_14\"]")).click();
[Link]([Link]("
//*[@id=\"add_to_cart\"]/button/span")).click();
[Link](2000);
WebElement textdisplayed =
[Link]([Link]("//*[@id=\"layer_cart\"]/div[1]/div[1]/h2"));
String text= [Link]();
[Link](text);
//[Link](2000);
WebElement proceedButton =
[Link]([Link]("//*[@id=\"layer_cart\"]/div[1]/div[2]/div[4]/a/
span"));
[Link]();
WebElement element =
[Link]([Link]("//*[@id=\"header\"]/div[3]/div/div/div[3]/div/a\r\n"
+ ""));
Actions action = new Actions(driver);
[Link](element).perform();
List<WebElement> alltags = [Link]([Link]("a"));
[Link]([Link]());
for(int i=0; i<[Link]();i++)
{
[Link]([Link](i).getText());
}
//WebElement dropbox =
[Link]([Link]("//*[@id=\"selectProductSort\"]"));
//Select select = new Select(dropbox);
//[Link](5);