Nothing is getting printed in console on running the script. Browser is not launching
In console- Process finished with exit code (0) Script -
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
import pytest
import time
from webdriver_manager.firefox import GeckoDriverManager
from webdriver_manager.microsoft import EdgeChromiumDriverManager
def test_google():
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.implicitly_wait(5)
driver.get("https://www.google.com/")
assert driver.title == 'Sign in – Google accounts'
print(driver.title)
CodePudding user response:
I think you have created the method but didn't call the method that's why i think
CodePudding user response:
You need to call the function test_google().