How to use getOriginal method of org.openqa.selenium.support.decorators.Interface Decorated class

Best Selenium code snippet using org.openqa.selenium.support.decorators.Interface Decorated.getOriginal

Run Selenium automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

copy
1// Licensed to the Software Freedom Conservancy (SFC) under one
2// or more contributor license agreements.  See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership.  The SFC licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License.  You may obtain a copy of the License at
8//
9//   http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied.  See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
18package org.openqa.selenium.support.decorators;
19
20import java.lang.reflect.InvocationTargetException;
21import java.lang.reflect.Method;
22
23public interface Decorated<T> {
24
25  T getOriginal();
26  WebDriverDecorator getDecorator();
27
28  void beforeCall(Method method, Object[] args);
29
30  Object call(Method method, Object[] args) throws Throwable;
31
32  void afterCall(Method method, Object result, Object[] args);
33
34  Object onError(Method method, InvocationTargetException e, Object[] args) throws Throwable;
35
36}
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

Most used method in Interface-Decorated

Trigger getOriginal code on LambdaTest Cloud Grid

Execute automation tests with getOriginal on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie