📌  相关文章
📜  如何在量角器中使用退格 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:47.282000             🧑  作者: Mango

代码示例2
describe('backspace', function() {
    it('types some stuff and backspaces one character', function() {
        element(by.model('invoice.customerName')).sendKeys('Ali Khoda');

        element(by.model('invoice.customerName')).sendKeys(protractor.Key.BACK_SPACE);

        expect(element(by.model('invoice.customerName')).getText()).toBe('Ali Khod');

    });
});