Interface HasDriver

All Known Implementing Classes:
AccordionElement, AccordionPanelElement, AnchorElement, AppLayoutElement, AvatarElement, AvatarGroupElement, BigDecimalFieldElement, BoardElement, ButtonElement, ChartElement, CheckboxElement, CheckboxGroupElement, ComboBoxElement, ConfirmDialogElement, ContextMenuElement, CookieConsentElement, CrudElement, CustomFieldElement, DatePickerElement, DatePickerElement.MonthCalendarElement, DatePickerElement.OverlayContentElement, DatePickerElement.WeekdayElement, DateTimePickerElement, DescriptionListElement, DetailsElement, DialogElement, DivElement, DrawerToggleElement, EmailFieldElement, EmphasisElement, FormLayoutElement, GridElement, GridProElement, GridTHTDElement, GridTHTDElement, GridTRElement, GridTRElement, H1Element, H2Element, H3Element, H4Element, H5Element, H6Element, HorizontalLayoutElement, HrElement, IconElement, ImageElement, InputTextElement, IntegerFieldElement, LabelElement, ListBoxElement, ListItemElement, LoginFormElement, LoginOverlayElement, MenuBarElement, MessageElement, MessageInputElement, MessageListElement, MultiSelectComboBoxElement, NativeButtonElement, NativeDetailsElement, NativeLabelElement, NotificationElement, NumberFieldElement, OrderedListElement, ParagraphElement, ParallelTest, PasswordFieldElement, PreElement, ProgressBarElement, RadioButtonElement, RadioButtonGroupElement, RangeInputElement, RichTextEditorElement, RowElement, ScrollerElement, SelectElement, SelectElement, SelectElement.ItemElement, SideNavElement, SideNavItemElement, SpanElement, SplitLayoutElement, TabElement, TabsElement, TabSheetElement, TestBenchCommandExecutor, TestBenchElement, TestBenchTestCase, TextAreaElement, TextFieldElement, TimePickerElement, TimePickerElement.TimePickerComboBoxElement, TimePickerElement.TimePickerOverlayElement, TreeGridElement, UnorderedListElement, UploadElement, VerticalLayoutElement, VirtualListElement

public interface HasDriver
An interface for classes that can provide an instance of a WebDriver
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openqa.selenium.WebDriver
    Return the WebDriver instance associated with the implementing class instance.
  • Method Details

    • getDriver

      org.openqa.selenium.WebDriver getDriver()
      Return the WebDriver instance associated with the implementing class instance. This can be simply the class itself re-cast as a WebDriver, or a reference to some WebDriver obtainable by any other means.
      Returns:
      the contained WebDriver instance