Skip to content

Commit

Permalink
fixing run script for command
Browse files Browse the repository at this point in the history
  • Loading branch information
Shriyansh Agnihotri committed Feb 4, 2025
1 parent 4b45c16 commit eab9b56
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
LLM_MODEL_NAME=PUT YOUR MODEL NAME HERE, for example: gpt-4o, gpt-4o
LLM_MODEL_API_KEY=PUT YOUR MODEL API KEY HERE
# LLM_MODEL_BASE_URL=IF YOU ARE USING OpenAI, remove this line, otherwise add the base URL, for example: https://api.groq.com/openai/v1

# If you want to use json file for config (see sample agents_llm_config.json and the Readme)
# AGENTS_LLM_CONFIG_FILE=agents_llm_config.json
# AGENTS_LLM_CONFIG_FILE_REF_KEY=The key for the config stanza to use from the file
# PROJECT_SOURCE_ROOT=folder where to save data.

# optional
# CDP_ENDPOINT_URL=ws://localhost:9222/devtools/browser/b12de40a-fc1c-4ebb-81d9-046e901f376d
Expand Down
2 changes: 1 addition & 1 deletion tests/test_features/productSearch/productSearch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Feature: Check search and filtering on the Wrangler website
Given a user is on the URL as https://wrangler.in
When the user clicks on Search icon
And on the search bar, the user enters text as "Rainbow jacket"
And the user selects "Turtle neck" as the filter
And the user filters "Turtle neck"
Then only one product should be displayed as the result
6 changes: 4 additions & 2 deletions testzeus_hercules/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def process_test_directory(test_dir: str) -> None:
await sequential_process()


async def main() -> None:
async def a_main() -> None:
"""
Main function that checks for bulk execution flag and runs tests accordingly
"""
Expand Down Expand Up @@ -251,6 +251,8 @@ def is_width_gt_120() -> bool:
logger.info("Single test execution mode")
await sequential_process()

def main() -> None:
asyncio.run(a_main())

if __name__ == "__main__": # pragma: no cover
asyncio.run(main())
main()
2 changes: 1 addition & 1 deletion testzeus_hercules/core/tools/get_input_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@tool(
agent_names=["browser_nav_agent"],
description="""DOM Type dict Retrieval Tool, giving all input elements on page.
description="""DOM Type dict Retrieval Tool, giving only html input types elements on page.
Notes: [Elements ordered as displayed, Consider ordinal/numbered item positions]""",
name="get_input_fields",
)
Expand Down
2 changes: 1 addition & 1 deletion testzeus_hercules/core/tools/get_interactive_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@tool(
agent_names=["browser_nav_agent"],
description="""DOM Type dict Retrieval Tool, giving all interactive elements on page.
Notes: [Elements ordered as displayed, Consider ordinal/numbered item positions]""",
Notes: [Elements ordered as displayed, Consider ordinal/numbered item positions, List ordinal represent z-index on page]""",
name="get_interactive_elements",
)
async def get_interactive_elements() -> Annotated[str, "DOM type dict giving all interactive elements on page"]:
Expand Down

0 comments on commit eab9b56

Please sign in to comment.