You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first selenium library had the Add Location Strategy keyword. It essentially allowed for instances like this which is exactly what I happen to need at the moment.
Is there a particular reason why it isn't present? I found the java implementation of this keyword.
We were actually having a discussion within #333 about allowing user specified locator strategies. Just curious what type of element are you trying to locate that is already satisfied by the current strategies?
I want to locate using ExtJs' component query (see the this link above. What I have in mind is basically a javascript locator. Already working on a PR.
It's pretty much exactly what's implemented in the Java version I linked to.
Looking at that example what I see is this is a javascript locator. Just wandering if there is other locator type that we can implement with a very similar keyword/argument syntax that is not javascript based. The reason I ask is to see if we need to add an argument that states which method the locator code implements. Something like
Well, I suppose that's entirely possible. You could just provide it with a python function to run. It wouldn't be all doable from within RF, but I feel like this is somewhat of a special case anyway so I think that'd be acceptable.
Edit: After thinking about it a bit I've got a pretty good idea of how we can implement general, reusable solution. I'll get back to you when I have a basic implementation done.
Activity
emanlove commentedon Feb 25, 2015
We were actually having a discussion within #333 about allowing user specified locator strategies. Just curious what type of element are you trying to locate that is already satisfied by the current strategies?
just-be-dev commentedon Feb 25, 2015
I want to locate using ExtJs' component query (see the this link above. What I have in mind is basically a javascript locator. Already working on a PR.
It's pretty much exactly what's implemented in the Java version I linked to.
emanlove commentedon Feb 25, 2015
Looking at that example what I see is this is a javascript locator. Just wandering if there is other locator type that we can implement with a very similar keyword/argument syntax that is not javascript based. The reason I ask is to see if we need to add an argument that states which method the locator code implements. Something like
Better to add it now then trying to patch in later.
just-be-dev commentedon Feb 25, 2015
Well, I suppose that's entirely possible. You could just provide it with a python function to run. It wouldn't be all doable from within RF, but I feel like this is somewhat of a special case anyway so I think that'd be acceptable.
Edit: After thinking about it a bit I've got a pretty good idea of how we can implement general, reusable solution. I'll get back to you when I have a basic implementation done.
just-be-dev commentedon Apr 27, 2015
See #365 for progress on this issue.