public class FileInput extends TypifiedElement
Constructor and Description |
---|
FileInput(org.openqa.selenium.WebElement wrappedElement)
Specifies wrapped
WebElement . |
Modifier and Type | Method and Description |
---|---|
void |
setFileToUpload(String fileName)
Sets a file to be uploaded.
|
void |
submit()
Submits selected file by simply submitting the whole form, which contains this file input.
|
clear, click, exists, findElement, findElements, getAttribute, getCssValue, getLocation, getName, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, isDisplayed, isEnabled, isSelected, sendKeys, setName, toString
public FileInput(org.openqa.selenium.WebElement wrappedElement)
WebElement
.wrappedElement
- WebElement
to wrap.public void setFileToUpload(String fileName)
fileName
- Name of a file or a resource to be uploaded.public void submit()
submit
in interface org.openqa.selenium.WebElement
submit
in class TypifiedElement
Copyright © 2019 Yandex. All rights reserved.