id | title | hide_title | sidebar_label | description | keywords | url | site_name | slug | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kane-ai-command-guide |
KaneAI - Command Guide |
false |
Command Types |
Master KaneAI commands to automate web actions like navigation, clicking, typing, and more. Create dynamic, readable test cases with ease |
|
LambdaTest |
kane-ai-command-guide/ |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "KaneAI Command Guide", "item": "https://www.lambdatest.com/support/docs/kane-ai-command-guide" }] }) }} ></script>KaneAI offers a range of commands to perform various actions on web pages. These commands, called prompts, guide KaneAI in executing specific tasks during your test cases. By using prompts along with descriptive instructions, you can create clear, human-readable test cases.
This document provides an overview of the different prompts available in KaneAI, allowing you to write test cases in plain English with ease.
go to https://www.lambdatest.com
open https://www.lambdatest.com
wait for 5 seconds
click on login button
enter "random@gmail.com"
type "random@gmail.com"
send keys "random@gmail.com"
clear email input field
clear the password field
select 21st september date
hover on shop by category option
search for iphone
refresh the page
go back
navigate back
go forward
navigate forward
open new lambdatest tab
switch to 2nd tab
switch to lambdatest tab
close lambdatest tab
close 2nd tab
scroll once
scroll by 100px
scroll to the bottom
scroll to the top
scroll 3 times
scroll by 20 percent
assert if red button text is "subscribe"
assert if KaneAI is present on the "viewport"
query the current url
query the time mentioned in the poster
if pop up is present in the viewport then click on it
if price of the product is less than 200 then click on add to cart else select second product
- Use clear and specific commands to ensure accurate execution.
- Combine different command types to create comprehensive test scenarios.
- Utilize conditional statements for more dynamic and robust testing.
- Always include appropriate wait times to account for page load and element visibility.
- Use assertions to verify the expected state of the page or elements.