Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Unable to insert 100 000 characters of the test data to a text field #2520

@koshkarov

Description

@koshkarov

Hi. For the testing purpose I need to insert 100 000 characters to the input field. The problem is that sendKeys() cannot handle such amount of data and the browser freezes. It starts input data to a text field and then after some time stops respond and the test fails because of timeout.

I tried different ways to solve this problem, like divide the file on the few pieces but it can't handle even 30 000 characters.

Manually I'm just copy-pasting the data from the text editor to that field and it works fine.

Does somebody have the solution how to insert into the text field 100 000 of characters?
Thank you!

Code:
var fs = require('fs');
var path = require('path');
var filePath = path.join(__dirname, 'datafile.json');
var data=require(filePath)
browser.findElement(By.tagName("textarea")).sendKeys(data.cbb);
browser.sleep(5000);
browser.findElement(By.name("Submit")).click();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions