Closed GoogleCodeExporter closed 8 years ago
Does `Call Selenium Api type scLocator=/....` work out-of-the-box otherwise?
If it does, then it should be pretty trivial to support scLocators also
directly. If this location strategy requires something else, then we either
need to bundle that something with SeleniumLibrary somehow or you can use Add
Location Strategy keyword yourself:
http://robotframework-seleniumlibrary.googlecode.com/hg/doc/SeleniumLibrary.html
?r=2.6#Add%20Location%20Strategy
Original comment by pekka.klarck
on 1 Apr 2011 at 8:50
One need to add user-extension.js which comes with SmartGWT 2.4 to get the
support first
Original comment by gynaec...@gmail.com
on 1 Apr 2011 at 9:26
First of all, have you tested can you enable scLocators using the previously
mentioned `Add Location Strategy` keyword?
Adding full and automatic support for scLocators to the library would require
bundling the user-extension.js required by them into the library. A problem
with this is that we have already bundled user-extensions.js required by
FlexTesting. Selenium doesn't, AFAIK, support more than one user-extension.js
so we needed to combine these to files into. That's probably doable but
updating them when there are changes would get problematic.
Notice also that we haven't bundled user-extension.js required by
jQueryElementSelectors. People using them have been fine with including it
themselves and using `Add Location Strategy` to register jQuery locators. If we
decided to add full support for scLocators we should probably add similar
support also for jQuery locators. This would naturally require merging three
different user-extension.js files into one.
Personally I'm not sure how to handle this. I like the idea of bundling
everything we easily can with the library, but due to Selenium's limitation of
supporting only one user-extension.js that can get messy. Perhaps this
discussion should be moved to robotframework-users.
Original comment by pekka.klarck
on 2 May 2011 at 1:36
Hi there,
Thank you for your reply and clarification!
`Add Location Strategy` works perfectly fine for me. I understand that adding
everything to user-extensions and what is more important maintaining it might
be a pain. I would say it is something like a nice to have feature for me,
because all apps I am dealing with currently is build with SmartGWT.
Thank you once again for the hint.
Vladimir
Original comment by gynaec...@gmail.com
on 12 May 2011 at 3:13
I think that this is not something we want to include in the core.
Original comment by janne.t....@gmail.com
on 15 Dec 2011 at 6:30
Original issue reported on code.google.com by
gynaec...@gmail.com
on 1 Apr 2011 at 4:13