@@ -72,7 +72,7 @@ LocalComponents.Page {
7272 id: accessPointComponent
7373 ListItem {
7474 id: accessPoint
75− objectName: "accessPoint"
75+ objectName: getObjectName()
7676 highlightColor: backgroundColor
7777 enabled: menuData && menuData.sensitive || false
7878 divider.colorFrom: dividerColor
@@ -93,6 +93,10 @@ LocalComponents.Page {
9393 readonly property int signalStrength: strengthAction.valid ? strengthAction.state : 0
9494 property int menuIndex: -1
9595
96+ function getObjectName() {
97+ "accessPoint_" + apName.text.toLowerCase().replace(/\s+/g, '_')
98+ }
99+
96100 function loadAttributes() {
97101 if (!unityMenuModel || menuIndex == -1) return;
98102 unityMenuModel.loadExtendedAttributes(menuIndex, {'x-canonical-wifi-ap-is-adhoc': 'bool',
@@ -166,6 +170,7 @@ LocalComponents.Page {
166170
167171 ListView {
168172 id: listview
173+ objectName: "accessPointsListView"
169174 anchors.left: parent.left
170175 anchors.right: parent.right
171176 clip: true