diff --git a/src/main/java/org/cloud/sonic/driver/poco/service/impl/PocoClientImpl.java b/src/main/java/org/cloud/sonic/driver/poco/service/impl/PocoClientImpl.java index c79bbf6..437066f 100644 --- a/src/main/java/org/cloud/sonic/driver/poco/service/impl/PocoClientImpl.java +++ b/src/main/java/org/cloud/sonic/driver/poco/service/impl/PocoClientImpl.java @@ -165,7 +165,7 @@ public List findElements(String selector, String expression) throws private String parseAttr(String express) { String result = "["; - String attrExpression = express.substring(express.indexOf("(") + 1, express.indexOf(")")); + String attrExpression = express.substring(express.indexOf("(") + 1, express.lastIndexOf(")")); if (attrExpression.startsWith("\"") && attrExpression.endsWith("\"")) { attrExpression = "name=" + attrExpression.replace("\"", ""); }