Skip to content

Commit 1d7ede4

Browse files
committed
Update SearchTabsLocators
1 parent 2d31794 commit 1d7ede4

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

locators/locators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class SearchTabsLocators:
128128
hotels_tab = (By.XPATH, "//a[@data-name='hotels']")
129129
flights_tab = (By.XPATH, "//a[@data-name='flights']")
130130
tours_tab = (By.XPATH, "//a[@data-name='tours']")
131-
transfer_tab = (By.XPATH, "//a[@data-name='transfer']")
131+
transfer_tab = (By.XPATH, "//a[@data-name='cars']")
132132
visa_tab = (By.XPATH, "//a[@data-name='visa']")
133133

134134

tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import pytest
33
from allure_commons.types import AttachmentType
44

5-
65
from utils.driver_factory import DriverFactory
76

87

@@ -15,4 +14,4 @@ def setup(request):
1514
yield
1615
if request.session.testsfailed != before_failed:
1716
allure.attach(driver.get_screenshot_as_png(), name="Test failed", attachment_type=AttachmentType.PNG)
18-
driver.quit()
17+
driver.quit()

utils/read_xlsx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class XlsxReader:
1010
@staticmethod
1111
def get_xlsx_hotels_data():
12-
wb = xlrd.open_workbook(f"../utils/search_hotels_input_data.xlsx")
12+
wb = xlrd.open_workbook(f"./utils/search_hotels_input_data.xlsx")
1313
sheet = wb.sheet_by_index(0)
1414
data = []
1515

@@ -24,7 +24,7 @@ def get_xlsx_hotels_data():
2424

2525
@staticmethod
2626
def get_xlsx_flights_data():
27-
wb = xlrd.open_workbook(f"../utils/search_flights_input_data.xlsx")
27+
wb = xlrd.open_workbook(f"./utils/search_flights_input_data.xlsx")
2828
sheet = wb.sheet_by_index(0)
2929
data = []
3030

@@ -46,7 +46,7 @@ def get_xlsx_flights_data():
4646

4747
@staticmethod
4848
def get_xlsx_tours_data():
49-
wb = xlrd.open_workbook(f"../utils/search_tours_input_data.xlsx")
49+
wb = xlrd.open_workbook(f"./utils/search_tours_input_data.xlsx")
5050
sheet = wb.sheet_by_index(0)
5151
data = []
5252

@@ -62,7 +62,7 @@ def get_xlsx_tours_data():
6262

6363
@staticmethod
6464
def get_xlsx_transfers_data():
65-
wb = xlrd.open_workbook(f"../utils/search_transfers_input_data.xlsx")
65+
wb = xlrd.open_workbook(f"./utils/search_transfers_input_data.xlsx")
6666
sheet = wb.sheet_by_index(0)
6767
data = []
6868

0 commit comments

Comments
 (0)