Skip to content

Commit e668a7a

Browse files
authored
Merge pull request LambdaTest#1009 from Aman1905/stage
updated kane ai
2 parents d285110 + b32b1bc commit e668a7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/kane-ai-javascript-execution.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ This can be very useful for:
5151
- **Seamless Execution:** Test JavaScript code directly without any setup.
5252

5353
## How to Execute Custom JavaScript Tests
54-
### Step 1: Open the Test Input Field
55-
In KaneAI’s test editor, navigate to the input field where you typically write your test scenarios in plain English.
54+
### Step 1: Click on the "Write a Step" Field
55+
In KaneAI’s test editor, navigate to the "Write a Step" field where you typically write your test scenarios in plain English.
5656

5757
### Step 2: Trigger JavaScript Mode
58-
To switch to JavaScript execution mode, type the forward slash `/`. You will see a JavaScript Pop-up Option appear. Click on the JavaScript option to switch the input mode to custom JavaScript.
58+
To switch to JavaScript execution mode, type the forward slash `/` or click on the `+` icon. You will see a JavaScript Pop-up Option appear. Click on the JavaScript option to switch the input mode to custom JavaScript.
5959

6060
### Step 3: Write or Paste Your JavaScript Code
61-
Now, you can write or paste your custom JavaScript code snippet directly into the input field. A sample JavaScript code:
61+
Now, you can write or paste your custom JavaScript code snippet directly into the text field. A sample JavaScript code:
6262

6363
```javascript
6464
function simulateTyping(element, text) {
@@ -91,7 +91,7 @@ simulateTyping(inputElement3, '[email protected]');
9191
return {"First name": "Aman", "Last name": "Chopra", "email": "[email protected]"};
9292
```
9393

94-
The provided code snippet simulates typing into input fields programmatically by dispatching key-related events such as keydown, input, keyup, and change. It mimics real user interaction by typing each character into the field and updating its value accordingly. The example provided fills in the first name, last name, and email fields with specific values and returns them in an object format.
94+
The provided code snippet simulates typing into text fields programmatically by dispatching key-related events such as keydown, input, keyup, and change. It mimics real user interaction by typing each character into the field and updating its value accordingly. The example provided fills in the first name, last name, and email fields with specific values and returns them in an object format.
9595

9696
### Step 4: Execute the Test
9797
Once your code is ready, simply press Enter. KaneAI will run your custom JavaScript snippet in the current testing environment.

0 commit comments

Comments
 (0)