Skip to content

Commit

Permalink
QA-7156 updated locators, steps for export odata
Browse files Browse the repository at this point in the history
  • Loading branch information
kbo001 committed Oct 16, 2024
1 parent 4442844 commit b82ff5f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions HQSmokeTests/testPages/data/export_data_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ def __init__(self, driver):
"//*[contains(@data-bind,'hasEmailedExport')][.//span[text()='" + UserData.odata_feed_form + "']]//following-sibling::div/*[contains(@data-bind,'click: copyLinkRequested')]//i")
self.copy_odata_link_form = (
By.XPATH,
"//div[./span[text()='" + UserData.odata_feed_form + "']]/following::div[@class='input-group']/input")
"//*[contains(@data-bind,'hasEmailedExport')][.//span[text()='" + UserData.odata_feed_form + "']]/following-sibling::div[@class='input-group']/input[contains(@data-bind,'showLink')]")
self.copy_odata_link_btn_case = (
By.XPATH, "//*[contains(@data-bind,'hasEmailedExport')][.//span[text()='" + UserData.odata_feed_case + "']]//following-sibling::div/*[contains(@data-bind,'click: copyLinkRequested')]//i")
self.copy_odata_link_case = (
By.XPATH,
"//div[./span[text()='" + UserData.odata_feed_case + "']]/following::div[@class='input-group']/input")
"//*[contains(@data-bind,'hasEmailedExport')][.//span[text()='" + UserData.odata_feed_case + "']]/following-sibling::div[@class='input-group']/input[contains(@data-bind,'showLink')]")

self.edit_button_case = (By.XPATH,
"(//span[contains(text(), 'Copy & Edit Feed')])")
Expand Down Expand Up @@ -464,7 +464,8 @@ def power_bi_tableau_integration_form(self, username, password):
self.wait_and_sleep_to_click(self.add_export_conf)
print("Odata form Feed added!!")
self.wait_for_element(self.export_name, 200)
self.wait_to_clear_and_send_keys(self.export_name, UserData.odata_feed_form)
self.clear(self.export_name)
self.send_keys(self.export_name, UserData.odata_feed_form+Keys.TAB)
time.sleep(5)
# saving export
self.scroll_to_bottom()
Expand Down

0 comments on commit b82ff5f

Please sign in to comment.