What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-02 04:32:08
what is hook class
HOOKS Cucumber supports hooks, which are blocks of code that run before or after each scenario. You can define them anywhere in your project or step definition layers, using the methods @Before and @After. Cucumber Hooks allows us to better manage the... Add solution -
Javascript 2021-10-23 20:10:13
how to handle ajax calls in selenium
AJAX is allowing the Web page to retrieve small amounts of data from the server without reloading the entire page. It is used for creating fast and dynamic web pages. There are several Wait methods I use to handle AJAX calls. I add these pieces of code to... Add solution -
Other 2021-10-18 14:01:12
selenium challanges
1----Sync issue Sync issue or I would say timeout issue is one of the most challenging tasks in any test automation tool. If we do not handle sync issue then most of the script will fail. In one of the test survey, it as found that 80% of scripts fail due... Add solution -
Other 2021-10-18 06:47:09
handling synchronization
- Synchronization is making sure our driver and browser are on the same page. - Since selenium browser driver is a lot faster compared to the browsers , we use different types of waits to make sure selenium is synchronized with browsers. There ar... Add solution -
Other 2021-10-17 01:34:12
where do you use polymorphism in framework
Method overloading is providing two separate methods in a class with the same name but different arguments, while the method return type may or may not be different, which allows us to reuse the same method name. In my framework== I use implicit wait i... Add solution -
Other 2021-10-15 23:23:03
Implicit Wait vs Explicit Wait?
Implicit wait is a wait which waits for a specified time while locating an element before throwing “NoSuchElementException”. As by default selenium tries to find elements immediately without any wait. So, it is good to use implicit wait. T... Add solution -
Other 2021-10-07 08:17:04
What happens if you mix implicit wait and explicit wait in a Selenium
Mixing both of them can cause unpredictable wait times. Implicit wait is defined only once in the code. It will remain same throughout the driver object instance. Explicit wait is defined whenever it is necessary in the code. This wait will call at the... Add solution -
Other 2021-10-03 09:19:05
implicit wait vs explicit wait
1- Implicit Wait Everytime we are trying to locate a webelement is triggered. By default wait time is 0 second. If we set the time to 10 seconds, and our driver not able to find element, it will count for given time. If element findst the webelement it d... Add solution -
Other 2021-10-02 10:20:02
how to handle sync
- Synchronization is making sure our driver and browser are on the same page. - Since selenium browser driver is a lot faster compared to the browsers , we use different types of waits to make sure selenium is synchronized with browsers. There ar... Add solution -
Other 2021-09-24 15:59:02
implicit wait
1- Implicit Wait Everytime we are trying to locate a webelement is triggered. By default wait time is 0 second. If we set the time to 10 seconds, and our driver not able to find element, it will count for given time. If element findst the webelement it d... Add solution
Best helpers
Ranking is empty