Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Building a Series of Multiple Actions

Category: Selenium WebDriver
Actions builder = new Actions(driver);
Action seriesOfActions = builder
	.moveToElement(txtUsername)
	.click()
	.keyDown(txtUsername, Keys.SHIFT)
	.sendKeys(txtUsername, ""hello"")
	.keyUp(txtUsername, Keys.SHIFT)
	.doubleClick(txtUsername)
	.contextClick()
	.build();
	
seriesOfActions.perform() ;

Leave a Reply

Your email address will not be published. Required fields are marked *