-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #608 from antip00/master
Adding steps and test for #604
- Loading branch information
Showing
16 changed files
with
878 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
from testflows.core import * | ||
from selenium.webdriver.remote.webdriver import WebDriver | ||
from selenium.webdriver.common.by import By as SelectBy | ||
|
||
|
||
class Locators: | ||
# Locators for panel page | ||
|
||
@property | ||
def query_options_dropdown(self): | ||
driver: WebDriver = current().context.driver | ||
return driver.find_element(SelectBy.XPATH, f'//div[@aria-label="Expand query row" or @aria-label="Collapse query row"]') | ||
|
||
@property | ||
def max_data_points_textfield(self): | ||
driver: WebDriver = current().context.driver | ||
return driver.find_element(SelectBy.XPATH, | ||
f'//*[@class="gf-form" and .//text()="Max data points"]/label[@class="gf-form-label width-6""]') | ||
|
||
@property | ||
def interval_field(self): | ||
driver: WebDriver = current().context.driver | ||
return driver.find_element(SelectBy.XPATH, | ||
f'//*[@class="gf-form" and .//text()="Interval"]/div[@data-testid="input-wrapper"]') | ||
|
||
@property | ||
def min_interval_textfield(self): | ||
driver: WebDriver = current().context.driver | ||
return driver.find_element(SelectBy.XPATH, f'//*[@class="gf-form" and .//text()="Min interval"]/div[@data-testid="input-wrapper"]') | ||
|
||
@property | ||
def relative_time_textfield(self): | ||
driver: WebDriver = current().context.driver | ||
return driver.find_element(SelectBy.XPATH, | ||
f'//*[@class="gf-form" and .//text()="Relative time"]/div[@data-testid="input-wrapper"]') | ||
|
||
@property | ||
def time_shift_textfield(self): | ||
driver: WebDriver = current().context.driver | ||
return driver.find_element(SelectBy.XPATH, | ||
f'//*[@class="gf-form" and .//text()="Time shift"]/div[@data-testid="input-wrapper"]') | ||
|
||
@property | ||
def hide_time_info_toggle(self): | ||
driver: WebDriver = current().context.driver | ||
return driver.find_element(SelectBy.XPATH, | ||
f'//*[@class="gf-form-inline align-items-center" and .//text()="Hide time info"]/input') | ||
|
||
|
||
locators = Locators() |
Oops, something went wrong.