3

I am trying to type '£' on input field. It doesn't work. It throws an error 'missing command parameters'

I have tried sendKeys('£') and sendKeys('\u00A3'). Neither works. However for other chars like ™ work fine with sendKeys and also with unicode

describe("Google search", function () {
    beforeEach(function () {
        browser.ignoreSynchronization = true;
        browser.get("https://google.com");

        browser.wait(EC.presenceOf(element(by.name("q"))), 5000);
    });

    it("should enter unicode characters", function () {
        element(by.name("q")).sendKeys('\u00A3');
        browser.sleep(10000);
    });
});
Webinator
  • 71
  • 4

0 Answers0