Selenium Insight

Selenium Insight

Share

The idea behind the creation of this page is to provide a platform to those who are either new to Test Automation or have some professional or expertise level of Corporate experience in Test Automation. SeleniumInsight - A platform for a fresh blood either in IT sector or in Test Automation which will guide them to make them aware about the Scope, Importance and Utilization of Selenium as a Web-Au

04/04/2017

#8.8.1 Actions Class: Generic APIs cont...

21. release() – this API is used to release the already PRESSED Left Mouse button at the current location

Method Signature: public Actions release() {…}
Method Call: actions.release().perform();

22. release(WebElement webElement) – this API is used to release the already PRESSED Left Mouse button at the middle of the referenced WebElememt. This is equivalent to: actions.moveToElement(webElement).release().build().perform();

Method Signature: public Actions release(WebElement webElement) {…}
Method Call: actions.release(webElement).perform();

23. sendKeys(CharSequence value) – this API is used to send keys (e.g. text to a textbox) to the current active WebElement.

Method Signature: public Actions sendKeys(Char Sequencevalue) {…}
Method Call: actions.sendKeys().perform();

24. sendKeys(WebElement webElement, CharSequence value) - this API is used to send keys (e.g. text to a textbox) to the referenced WebElement. This call is equivalent to: actions.click(webElement).sendKeys().build().perform():

Method Signature: public Actions sendKeys(WebElement webElement, CharSequence value) {…}
Method Call: actions.sendKeys(webElement, ).perform();

26/08/2016

#8.8.1 Actions Class: Generic APIs cont...

6. contextClick() – this API is used to perform a CONTEXT-CLICK at the current MOUSE location

Method Signature: public Actions contextClick(){…}
Method Call: actions.contextClick().perform();

7. contextClick(WebElement webElement) – this API is used to perform a CONTEXT-CLICK on the middle of the referenced WebElement

Method Signature:public Actions contextClick(WebElement wB){…}
Method Call: actions.contextClick(wB).perform();
Note: contextClick(…) API can be used when we need to perform a RIGHT-CLICK operation on any WebElement

8. doubleClick() – this API is used to perform a DOUBLE-CLICK operation at the current MOUSE location

Method Signature: public Actions doubleClick(){…}
Method Call: actions.doubleClick().perform();

9. doubleClick(WebElement webElement) – this API is used to perform DOUBLE-CLICK operation at the middle of the referenced WebElement

Method Signature:public Actions doubleClick(WebElement wB){…}
Method Call: actions.doubleClick(webElement).perform();

10. dragAndDrop(WebElement source, WebElement target) – this API is used to DRAG the SOURCE WebElement and DROP it at the TARGET location.

Method Signature: public Actions dragAndDrop(WebElement source, WebElement target(){…}
Method Call: actions.dragAndDrop(source,target).perform();

11. dragAndDropBy(WebElement source, int xOffset, int yoffSet) –this API is used to pick the SOURCE WebElement and release it to the mentioned x-y offset/coordinates.

Method Signature: public Actions dragAndDrop(WebElement webElement, int xOffset, int yOffset){…}
Method Call: actions.dragAndDrop(webElement, 10,10).perform();

Want your school to be the top-listed School/college in Bangalore?
Click here to claim your Sponsored Listing.

Category

Telephone

Address


Bangalore
562107