Commit cb22b3e8 authored by holivier's avatar holivier

clickPortletSubmenu: change cssSelector after change in vueLink

parent 29e18067
......@@ -827,9 +827,9 @@ public class OfbizSWdHelper {
boolean found = false;
do {
if (driver.findElements(By.cssSelector("div#vue-portlet_" + portletName + "-00001 header.screenlet-title-bar button span#mdi-dots-vertical")).size() > 0) {
menuItems = driver.findElements(By.cssSelector("div.v-menu__content div.v-list div#vue-link a span"));
menuItems = driver.findElements(By.cssSelector("div.v-menu__content div.v-list div#vue-link > span"));
} else {
menuItems = driver.findElements(By.cssSelector("div#vue-portlet_" + portletName + "-00001 header.screenlet-title-bar button#_link span"));
menuItems = driver.findElements(By.cssSelector("div#vue-portlet_" + portletName + "-00001 header.screenlet-title-bar button > span"));
}
for (WebElement menuItem : menuItems) {
// double test lowerCase and UpperCase because depending on theme
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment