You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/helpers/AI.md
+33-1
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ AI Helper for CodeceptJS.
16
16
This helper class provides integration with the AI GPT-3.5 or 4 language model for generating responses to questions or prompts within the context of web pages. It allows you to interact with the GPT-3.5 model to obtain intelligent responses based on HTML fragments or general prompts.
17
17
This helper should be enabled with any web helpers like Playwright or Puppeteer or WebDrvier to ensure the HTML context is available.
18
18
19
+
Use it only in development mode. It is recommended to run it only inside pause() mode.
20
+
19
21
## Configuration
20
22
21
23
This helper should be configured in codecept.json or codecept.conf.js
@@ -26,9 +28,37 @@ This helper should be configured in codecept.json or codecept.conf.js
26
28
27
29
-`config`
28
30
31
+
### askForPageObject
32
+
33
+
Generates PageObject for current page using AI.
34
+
35
+
It saves the PageObject to the output directory. You can review the page object and adjust it as needed and move to pages directory.
0 commit comments