This answer gives an example on how to wait in Java selenium webdriver, but where do you get those classes and packages such as IWait, IWebDriver, and OpenQA.Selenium.Support.UI.WebDriverWait ?
            Asked
            
        
        
            Active
            
        
            Viewed 316 times
        
    0
            
            
         
    
    
        Kingamere
        
- 9,496
- 23
- 71
- 110
1 Answers
1
            
            
        C#:
- IWait:- IWaitis one of the interfaces within- OpenQA.Selenium.Support.UI Namespace
- IWebDriver:- IWebDriveris the interface which defines the interface through which the user controls the browser.
- OpenQA.Selenium.Support.UI.WebDriverWait:- OpenQA.Selenium.Support.UI.WebDriverWaitis the namespace which contains the following:- DefaultWait<T>Class
- ExpectedConditionsClass
- LoadableComponent<T>Class
- LoadableComponentExceptionClass
- PopupWindowFinderClass
- SelectElementClass
- SlowLoadableComponent<T>Class
- SystemClockDefaultWait<T>Class
- UnexpectedTagNameExceptionClass
- WebDriverWaitClass
- IClockInterface
- ILoadableComponentInterface
- IWait<T>Interface
 
Java
- Wait<F>:- Wait<F>is the generic interface for waiting until a condition is true or not null. The condition may take a single argument of type.
- WebDriver:- WebDriveris the main interface to use for testing, which represents an idealised web browser.
- org.openqa.selenium.support.ui:- org.openqa.selenium.support.uicontains the- Interface Wait<F>.
 
    
    
        undetected Selenium
        
- 183,867
- 41
- 278
- 352
- 
                    So I can't use it in a Java program since it's C#? – Kingamere Feb 18 '19 at 14:42
- 
                    @Kingamere Yes, _Java_ and _C#_ are completely two different _Language Binding Art_ to work with _Selenium_. – undetected Selenium Feb 18 '19 at 14:45
- 
                    Then how come that answer that I linked to is giving C# code when the question asks for Java code? – Kingamere Feb 18 '19 at 15:52
- 
                    It also gives Ruby and Python code, people like to drop in additional information that's not always asked for. – Ardesco Mar 04 '19 at 09:30