This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from pages.smartwait import * | |
@pytest.mark.usefixtures("driver") | |
def test_blog_navigation(driver): | |
smartwait = SmartWait(driver) | |
smartwait.click_blog_link() | |
smartwait.click_first_post() | |
assert "amet volutpat" in driver.title, "Expected 'amet volutpat' in title" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
option_smartwait = { | |
"platform": "macOS Sonoma", | |
"version": "latest", | |
"name": "Selenium Pytest", | |
"Build": "Python Wait Selenium Build", | |
"smartWait": 10, # It accepts integer values as second | |
"video": True, | |
"visual": False, | |
"network": True, | |
"console": True, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from pages.fluent_wait import * | |
from selenium.webdriver.support.wait import WebDriverWait | |
@pytest.mark.usefixtures("driver") | |
def test_fluent_wait(driver): | |
fluent_wait = FluentWait(driver) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from pages.explicit_wait import * | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
@pytest.mark.usefixtures("driver") | |
def test_explicit_wait_email_input(driver): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from pages.implicit_wait import * | |
@pytest.mark.usefixtures("driver") | |
def test_implicit_wait(driver): | |
implicit_wait = ImplicitWait(driver) | |
implicit_wait.click_my_account() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from selenium.webdriver.common.by import By | |
from pages.sleep_wait import * | |
import time | |
@pytest.mark.usefixtures("driver") | |
def test_sleep_wait(driver): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudGrid; | |
import java.util.List; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebElement; | |
import org.testng.annotations.Test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudGrid; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebElement; | |
import org.testng.annotations.Test; | |
public class TestFindFirstElementByTagName extends BaseTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudGrid; | |
import java.net.*; | |
import java.util.HashMap; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import org.openqa.selenium.chrome.ChromeOptions; | |
import org.testng.annotations.*; |