Fix typo in selenium test

For selenium v3 the proper syntax is

link = browser.find_element_by_link_text(link_name)

not

 link = browser.find_element_by_text_link(link_name)

Change-Id: I9f6062bae5caaa840208e90e8f29b63bf52d113b
This commit is contained in:
Ritchie, Frank (fr801x) 2023-08-25 14:32:00 -04:00
parent e325bd6bcb
commit d097c3bf24
3 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v1.0.0 appVersion: v1.0.0
description: OpenStack-Helm Nagios description: OpenStack-Helm Nagios
name: nagios name: nagios
version: 0.1.9 version: 0.1.10
home: https://www.nagios.org home: https://www.nagios.org
sources: sources:
- https://opendev.org/openstack/openstack-helm-addons - https://opendev.org/openstack/openstack-helm-addons

View File

@ -56,7 +56,7 @@ def click_link_by_name(link_name):
{{- if .Values.selenium_v4 }} {{- if .Values.selenium_v4 }}
link = browser.find_element(By.LINK_TEXT, link_name) link = browser.find_element(By.LINK_TEXT, link_name)
{{- else }} {{- else }}
link = browser.find_element_by_text_link(link_name) link = browser.find_element_by_link_text(link_name)
{{- end }} {{- end }}
link.click() link.click()
except NoSuchElementException: except NoSuchElementException:

View File

@ -10,4 +10,5 @@ nagios:
- 0.1.7 Upgrade osh-selenium image to latest-ubuntu_focal - 0.1.7 Upgrade osh-selenium image to latest-ubuntu_focal
- 0.1.8 Use helm toolkit for readiness probes - 0.1.8 Use helm toolkit for readiness probes
- 0.1.9 Make using selenium v4 syntax optional - 0.1.9 Make using selenium v4 syntax optional
- 0.1.10 Correct selenium v3 syntax
... ...