Hello,
I use custom in my selenium tests. I was surprised that whereas it is
permitted to use whatever (javascript permitted) character with whatever
case in custom function names ([A-Z].+ in selenium-browserbot.js, line
376), selenium runner only permits you to use [a-z] low cases.
I don't understand this limitations, making test less readable.
For example for function
PageBot.prototype.locateElementByAgoraPictoEltListe
I would like to use
AgoraPictoEltListe=.....
but I must use
agorapictoeltliste=....
instead
would it be possible to modify
selenium-browserbot.js
with this patch
Index: selenium-browserbot.js
===================================================================
RCS file:
/home/cvs/82TZ50J807_tsteditique/ressources/selenium_lot1/selenium-browserbot.js,v
retrieving revision 1.2
diff -u -r1.2 selenium-browserbot.js
--- selenium-browserbot.js 26 Jul 2005 17:06:34 -0000 1.2
+++ selenium-browserbot.js 22 Aug 2005 11:19:59 -0000
@@ -436,9 +436,9 @@
var locatorString = locator;
// If there is a locator prefix, use the specified strategy
- var result = locator.match(/^([a-z]+)=(.+)/);
+ var result = locator.match(/^([^=]+)=(.+)/);
if (result) {
- locatorType = result[1];
+ locatorType = result[1].toLowerCase();
locatorString = result[2];
}
Ce message est protégé par les règles relatives au secret des correspondances.
Il est donc établi à destination exclusive de son destinataire. Celui-ci peut
donc contenir des informations confidentielles. La divulgation de ces
informations est à ce titre rigoureusement interdite. Si vous avez reçu ce
message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail
figure ci-dessus et de détruire le message ainsi que toute pièce jointe.
This message is protected by the secrecy of correspondence rules. Therefore,
this message is intended solely for the attention of the addressee. This
message may contain privileged or confidential information, as such the
disclosure of these informations is strictly forbidden. If, by mistake, you
have received this message, please return this message to the addressser whose
e-mail address is written above and destroy this message and all files attached.
_______________________________________________
Selenium-devel mailing list
Selenium-devel@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel