Global Side Menu Width
Placeholder

אייפון – Safari

 

 

אוטומציה באייפון בדפדפן Safari נראית בדיוק אותו דבר..,

סימון:

pytestmark = [pytest.mark.iphone_safari, pytest.mark.appium, pytest.mark.apple, pytest.mark.smoke]

הגדרה של הפונקציה הראשית:

def test_iphone_safari_core_actions(iphone_safari, by):
    """Teach common Appium actions for a website opened in iPhone Safari."""
    # Open the demo website in iPhone Safari.
    iphone_safari.get(settings.ios_base_url)

    # Start an Allure step for the first mobile web tap.
    with allure_step("Tap a web button and wait for status text"):
        # Safari web automation also uses CSS selectors for website elements.
        clickable(iphone_safari, (by.CSS_SELECTOR, "[data-testid='hero-cta']")).click()
        # Wait until the status text proves the tap worked.
        text_present(iphone_safari, (by.CSS_SELECTOR, "[data-testid='practice-status']"), "Practice started")

כפי שניתן לראות, הכול זהה ל-Chrome במחשב ובאנדרואיד(רק ההגדרות מותאמות לאייפון).