This shows you the differences between two versions of the page.
gui_html_adaptor [2024/12/09 10:47] montse [Functions] |
gui_html_adaptor [2024/12/09 10:49] (current) montse [Functions] |
||
---|---|---|---|
Line 205: | Line 205: | ||
* **waitForElement(Element, TimeInSeconds):** waits for the element to appear. Until it’s available in the HTML code, even if it is not visible. By default webdriver will wait 30 seconds (We can decrease or increase this time in the code). Visibility means that the element is not only displayed but also has a height and width that is greater than 0. | * **waitForElement(Element, TimeInSeconds):** waits for the element to appear. Until it’s available in the HTML code, even if it is not visible. By default webdriver will wait 30 seconds (We can decrease or increase this time in the code). Visibility means that the element is not only displayed but also has a height and width that is greater than 0. | ||
- | * **waitForElementTime():** Tthis function waits for the element until it “appears”, that is until the HTML code is available even though the element is not visible yet (the visibility of the element mean that it is not shown but it already has height and weight higher than 0) . The webdriver waits for 30 seconds by default and returns the time with a double. The input parameter TimeInSeconds is to change the default time, and the Element parameter is to indicate which element we want to use. | + | * **waitForElementTime():** this function waits for the element until it “appears”, that is until the HTML code is available even though the element is not visible yet (the visibility of the element mean that it is not shown but it already has height and weight higher than 0) . The webdriver waits for 30 seconds by default and returns the time with a double. The input parameter TimeInSeconds is to change the default time, and the Element parameter is to indicate which element we want to use. |