Professional Documents
Culture Documents
Selenium Cheat Sheet-1
Selenium Cheat Sheet-1
Selenium Cheat Sheet-1
CSS Selector - Tag and ID, Tag and Class, Tag Get Page Source Command To Command Refresh Command
and Attribute, Tag ID Class and Attribute , Inner Back Command Forward Command
Close Command
Text
Quit Command
DOM - GetElementById, Switch Commands
Refresh Command
GetElementByName,dom:name,dom:index
driver.switchTo.window("WindowName")
XPATH
testNG Annotations driver.switchTo.frame("FrameName")
Syntax: Syntax:
WebElement java.util.List<WebElement
findElement(By > findElements(By by)
by)
Exception Exception:emptyListofWeb
:NoSuchElementE ElementObject
xception