What is setScriptTimeout() command in Selenium Webdriver?

0 votes
What is setScriptTimeout() command in Selenium Webdriver?
Jul 4 in Selenium by Larry
71 views

1 answer to this question.

0 votes

Hey Larry, as per the official definition: 

setScriptTimeout() sets the amount of time to wait for an asynchronous script to finish execution before throwing an error. If the timeout is negative, then the script will be allowed to run indefinitely.

This is mainly used with asynchronous scripts and can be written this way:

driver.manage().timeouts().setScriptTimeout(1, TimeUnit.SECONDS);

answered Jul 5 by Abha
• 27,180 points

Related Questions In Selenium

0 votes
1 answer

What is Page Object Model in Selenium WebDriver?

If you want to learn about Selenium ...READ MORE

answered Jun 14, 2018 in Selenium by Meci Matt
• 9,420 points
155 views
0 votes
1 answer

What is the difference between findElement and findElements in Selenium Webdriver?

Hi Nilaabh, Selenium Webdriver uses findElement and ...READ MORE

answered May 8 in Selenium by Anvi
• 13,960 points
545 views
+1 vote
1 answer

What is the working of JSON in Selenium Webdriver Architecture?

JSON stands for JavaScript Object Notation. It is used ...READ MORE

answered May 8 in Selenium by Frankie
• 9,810 points
142 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
915 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,102 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
833 views
0 votes
1 answer
0 votes
1 answer

What is Webdriver Wait in Selenium Webdriver?

Hey Muskan, WebDriverWait is applied on a certain element ...READ MORE

answered May 28 in Selenium by Abha
• 27,180 points
24 views