test(KeyEvents): workaround a bug in chrome driver
closes #2253 see https://code.google.com/p/chromedriver/issues/detail?id=553
This commit is contained in:
		
							parent
							
								
									c60091b949
								
							
						
					
					
						commit
						3d6c44e2a7
					
				| @ -25,8 +25,10 @@ describe('key_events', function () { | |||||||
|     firstArea.sendKeys(' '); |     firstArea.sendKeys(' '); | ||||||
|     expect(firstArea.getText()).toBe('space'); |     expect(firstArea.getText()).toBe('space'); | ||||||
| 
 | 
 | ||||||
|     firstArea.sendKeys('a'); |     // It would not work with a letter which position depends on the keyboard layout (ie AZERTY vs | ||||||
|     expect(firstArea.getText()).toBe('a'); |     // QWERTY), see https://code.google.com/p/chromedriver/issues/detail?id=553 | ||||||
|  |     firstArea.sendKeys('u'); | ||||||
|  |     expect(firstArea.getText()).toBe('u'); | ||||||
| 
 | 
 | ||||||
|     firstArea.sendKeys(protractor.Key.CONTROL, 'b'); |     firstArea.sendKeys(protractor.Key.CONTROL, 'b'); | ||||||
|     expect(firstArea.getText()).toBe('control.b'); |     expect(firstArea.getText()).toBe('control.b'); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user