I require to test a functionality of an input form, where i have to validate that pressing tab key works through right input fields. I used selenium's action as well as Keys.tab
Actions new tab = new Actions(driver);
newtab.SendKeys(Keys.Tab).Build().Perform();
but due to google chrome version 53.0.2785.116 , its not supporting tab key press and so i want to simulate tab key press through javascript. All the answers only follow to "what to do after" the event is called. Could anyone give me any insight in this?
EDIT: please note that i need to run this scripts in selenium web driver test. So answers relevant to same would be very helpful. I did find questions and few confusing answers like Question A Question B
I also tried the following solutionLink here but its not working. Does "keyboardEvent" not work anymore? could some one give me a workaround?