The automation framework I work with runs over multiple web applications, and some of them have keyboard shortcuts like AltGr + 2 or shift + S.
The problem we face is that to do something as simple as:
element.send_keys('T')
or element.send_keys('!')
the shift + t or shift + 1 shortcuts get triggered. On the contrary, when something like element.send_keys('t')
runs, it inputs a t as expected.
Are there any bright minds that can help me overcome this problem?
NOTE that I only saw this behavior when running my tests using PhantomJS head-less browser driver. Gecko (Firefox), Chrome, IE, Edge...they all work fine.