-
Notifications
You must be signed in to change notification settings - Fork 61
sendKeys not working for key strokes (special keys) #125
Comments
I am having the exact same problem, with TAB. I have tried: \t None of these worked |
One of the problems I see is in class com.xebia.incubator.xebium.fastseleniumemulation.Type. It is missing a bunch (like tab, backspace etc):
|
Consider maybe adding a pull request for an enum? |
I patched the code above to support TAB and it works:
In your cell, use \08 and it will send a TAB. You must do the same for Backspace and all the other missing special characters. |
The 08 above is preceded by 2 backslashes in the table cell. Somehow one slash was eaten by the formatting here. Just one backslash will not work. |
In the fork I made, I solved this in a slightly different way now. I populate the special keys in the alias map. So now I have to precede its symbolic name with % in any table cell. In other words: %$KEY_TAB instead of $KEY_TAB when you use sendKeys. The fix was simple: add a method, initSpecialKeysMapping, and make the constructor call it. Here:
Anyway, this is available in my fork. |
Hi,
I have been trying to send KEY_BACKSPACE using xebium and am running into some issues with that:
The code given by selenium IDE is :
sendKeys //input[@id=blahblah'] ${KEY_BACKSPACE}which works.
The code given by the xebium formatter is:
| do | sendKeys | on | !-//input[@id='blahblah']-! | with | $KEY_BACKSPACE |
which doesn't seem to be working. I also tried entering $KEY_BACKSPACE between !- -! to avoid formatting by fitnesse and that didn't help either.
p.s. Using firefox driver
Thanks!
The text was updated successfully, but these errors were encountered: