zerostep-ai / zerostep

Supercharge your Playwright tests with AI
MIT License
197 stars 17 forks source link

ai function does not recognize target field specified in prompt #38

Open SharieDong93 opened 8 months ago

SharieDong93 commented 8 months ago

There are two purchase order type fields display on the website and I am targeting the first one with title "Customer Purchase Order Type". Please see the attached file for more details. I have tried prompt "await ai(Input ${poType} into field with title "Customer Purchase Order Type",aiArgs) " or "await ai(Input ${poType} into "Customer Purchase Order Type" field,aiArgs)", What I found is sometimes it locates the first one however sometimes it locates the second field even with different title.

Could you please guide me how to change my prompt to make it more accurate ?

Description on Purchase Order type fields .pdf

SharieDong93 commented 8 months ago

Another issue I found is regarding to "tabs" on SAP create sales order - Items data page . Please see the "Conditions tab element" screenshot attached. image Conditions

The prompt I was trying to use is as below await ai(Click on tab with text "Conditions",aiArgs) or await ai(Click on "Conditions" tab,aiArgs)

For some reason, it either clicks on the tab "Account Assignment" besides "Conditions" tab or it doesn't recognize the "Conditions" tab at all. I have tested other tabs randomly by similar prompt , yes some are working fine.

Could you also please take a look ? Please feel free let me know if more details is needed. Thanks and Best regards