File tree Expand file tree Collapse file tree 3 files changed +7
-19
lines changed
Expand file tree Collapse file tree 3 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 88 test :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v3
11+ - uses : actions/checkout@v4
1212 name : Check out repository
1313 - name : Set up Python
1414 uses : actions/setup-python@v4
@@ -18,10 +18,11 @@ jobs:
1818 run : |
1919 python -m pip install --upgrade pip
2020 pip install -r requirements.txt
21- pip install pytest-cov # Agregado para coverage
21+ pip install pytest-cov # Para coverage
22+ pip install webdriver-manager # Para ambos browsers (Firefox + Edge)
2223 - name : Install GeckoDriver
2324 run : |
24- python -m pip install webdriver-manager
25+ python -m pip install webdriver-manager # Ya cubierto arriba, pero legacy
2526 - name : Install Allure
2627 run : |
2728 wget https://github.com/allure-framework/allure2/releases/download/2.25.0/allure-2.25.0.zip
5758 env :
5859 PYTHONPATH : .
5960 run : |
60- pytest test/ --cov=pages --cov-report=xml:coverage.xml --cov-report=html:htmlcov
61+ pytest test/ --cov=pages --cov-report=xml:coverage.xml --cov-report=html:htmlcov -v
6162 - name : Upload Coverage HTML report
6263 uses : actions/upload-artifact@v4
6364 with :
Original file line number Diff line number Diff line change @@ -76,6 +76,4 @@ Questions? Open an issue.
7676![ html report.png] ( docs/html%20report.png )
7777![ Screenshot 2025-09-29 145456.png] ( docs/Screenshot%202025-09-29%20145456.png )
7878Built by Jerry Finol | Last Updated: September 29, 2025
79- [ Coverage] ( https://codecov.io/gh/jerryfinol17/Automated-testing-project/branch/main/graph/badge.svg )
80-
8179
Original file line number Diff line number Diff line change 66from selenium .webdriver .firefox .options import Options as FirefoxOptions
77from selenium .webdriver .edge .options import Options as EdgeOptions
88from webdriver_manager .firefox import GeckoDriverManager
9+ from webdriver_manager .microsoft import EdgeChromiumDriverManager
910import allure
1011
1112
@@ -49,9 +50,7 @@ def browser_driver(request):
4950 options = firefox_options
5051 )
5152
52-
5353 elif browser_name == "edge" :
54-
5554 edge_options = EdgeOptions ()
5655
5756 edge_options .add_argument ("--disable-notifications" )
@@ -80,19 +79,9 @@ def browser_driver(request):
8079
8180 edge_options .add_experimental_option ("excludeSwitches" , ["enable-automation" ])
8281
83- # Ruta completa al .exe – ajusta si tu versión es diferente
84-
85- driver_path = r"C:\Users\dhamyan\PycharmProjects\drivers\edgedriver_win64\msedgedriver.exe"
86-
87- if not os .path .exists (driver_path ):
88- raise FileNotFoundError (f"msedgedriver.exe no encontrado en { driver_path } . Verifica la extracción del ZIP." )
89-
9082 driver = webdriver .Edge (
91-
92- service = EdgeService (executable_path = driver_path ),
93-
83+ service = EdgeService (EdgeChromiumDriverManager ().install ()),
9484 options = edge_options
95-
9685 )
9786
9887 def fin ():
You can’t perform that action at this time.
0 commit comments