Skip to content

Commit

Permalink
all_Automation_Git_Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmolKadam-Tekdi committed Jul 15, 2024
1 parent 768b85c commit 49be92a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions allAutomation/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion allAutomation/my_project/tests/BrowserManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from selenium.webdriver.chrome.options import Options as ChromeOptions
from webdriver_manager.chrome import ChromeDriverManager


@pytest.fixture(scope="module")
def setup():
# Initialize ChromeOptions
Expand Down Expand Up @@ -33,9 +34,15 @@ def setup():
# Teardown - Close the browser
driver.quit()


def test_open_website(setup):
driver = setup # Using the WebDriver instance from setup fixture

# Open a website
driver.get('https://d114esnbvw5tst.cloudfront.net/')
assert "Title of the website" in driver.title # Adjust this assertion as needed

# Ensure the page has fully loaded
driver.implicitly_wait(10)

# Print the title for debugging purposes
print("Page title is:", driver.title)

0 comments on commit 49be92a

Please sign in to comment.