Closed CMatias closed 8 years ago
I've been able to solve my problem. Please close this :)
@CMatias Thanks. It would also help others if you are able to post how you fixed this.
@axemclion I was expecting the logging on the console to give some information about the object being selected besides the logging of the element value. When I couldn't navigate in my app I thought I was just doing something wrong. Eventually I tried again and was able to do it.
In my specific case I was trying to select an element of an Ionic application with a specific attribute:
<a icon-on="ion-ios-chatboxes" icon-off="ion-ios-chatboxes-outline">Chats</a>
Eventually after browsing the web driver api (maybe this could be linked somewhere in the wiki? 😄 ) I got around to doing just:
actions: [
function (browser) {
return browser.elementByCssSelectorOrNull("a[icon-on='ion-ios-chatboxes']");
.then(function (el) {
return el.tap();
});
]
The only relevant thing besides the selector was using tap
instead of click
.
Hey, I'm running browser-perf to test an Ionic application with my Android phone. Here's the file I'm running:
I'm selecting all elements and printing the first one and I'm getting something like this:
Is this expected behaviour? I tried a number of different selectors for my application and nothing ever hits.
Any help would be appreciated.