|
|
|
Java |
C# |
Python |
Handling Windows
|
getWindowHandle() |
CurrentWindowHandle |
current_window_handle |
getWindowHandles() |
WindowHandles.ToList() |
window_handles[index] |
switchTo().window() |
SwitchTo().Window()
|
switch_to.window() |
|
|
|
Java |
C# |
Python |
Handling Alert
|
switchTo().alert().accept() |
SwitchTo().Alert().Accept()
|
Alert(driver).accept() |
switchTo().alert().dismiss() |
SwitchTo().Alert().Dismiss()
|
Alert(driver).dismiss() |
switchTo().alert().sendkeys() |
SwitchTo().Alert().SendKeys()
|
Alert(driver). send_keys() |
switchTo().alert().getText()
|
SwitchTo().Alert().Text
|
Alert(driver).text |
|
|
|
Java |
C# |
Python |
Handling Drop Down
|
Select s = new Select(WebElement) |
SelectElement s = new
SelectElement(IWebElement)
|
s = Select(element) |
selectByVisibleText(" ") |
SelectByText(" ") |
select_by_visible_text(" ") |
selectByValue() |
SelectByValue() |
select_by_value(" ") |
selectByIndex() |
SelectByIndex() |
select_by_index() |
getOptions() |
Options |
options |
deselectAll() |
DeselectAll() |
deselect_all() |
deselectByVisibleText() |
DeselectByText() |
deselect_by_visible_text (" ") |
deselectByValue() |
DeselectByValue() |
deselect_by_value(" ") |
deselectByIndex() |
DeselectByIndex() |
deselect_by_index() |
|
|
|
Java |
C# |
Python |
Mouse Actions
|
Actions action_obj = new Actions(driver); |
Actions action_obj = new Actions(driver); |
action_obj = ActionChains(driver) |
moveToElement(WebElement) |
MoveToElement(IWebElement)
|
move_to_element (element) |
doubleClick(WebElement) |
DoubleClick(IWebElement) |
double_click(element) |
contextClick() |
ContextClick() |
context_click() |
clickAndHold(WebElement) |
ClickAndHold(IWebElement)
|
click_and_hold(element) |
dragAndDrop(SourceWebElement, DestinationWebElement) |
DragAndDrop(SourceIWebElement,
DestinationIWebElement)
|
drag_and_drop (source_element, desnation_element) |
build() |
Build() |
|
perform() |
Perform() |
perform() |
|
|
|
Java |
C# |
Python |
Keybord Actions
|
keyDown(Keys.SHIFT) |
KeyDown(Keys.Shift) |
key_down(Keys.SHIFT) |
keyUp(Keys.UP) |
KeyUp(Keys.ArrowUp)
|
key_up (keys.ARROW_UP) |
sendKeys(Keys.LEFT) |
SendKeys(Keys.ArrowLeft)
|
send_keys (Keys.ARROW_LEFT) |
|
|
|
Java |
C# |
Python |
Boolean Value Return
|
isMultiple() |
IsMultiple |
is_multiple() |
isDisplayed() |
Displayed |
is_displayed() |
isEnabled() |
Enabled |
is_enabled() |
isSelected() |
Selected |
is_selected() |
No comments:
Post a Comment