From ecbe74ac6c93103d15581f0c184e8f8a74b6d027 Mon Sep 17 00:00:00 2001 From: Ando Date: Wed, 19 Feb 2025 13:30:28 +0300 Subject: [PATCH 1/2] docs: update sample code use safari and warn about in dev process --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4d759e4..3a06ac3 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ A easy way to implement and write Selenium with TypeScript using Deno 🦕 +> Note: This project is under development and is not yet ready for production use. Please use it with caution and report any issues or bugs you encounter. + ## Features - Easy handling on driver side web browser to isolate each test ✅. @@ -43,12 +45,14 @@ deno install --allow-scripts In the test file, define a sample test like this: -With this test, we only test this sample code inside a Chrome, Firefox but create a test for another web browser like Edge, Safari 🚀 +This sample test will open the browser and check the title of the page, if the title is not equal to "Drowser" the test will fail. + +`safari` is the default browser, but you can change it to `chrome` or `firefox`. ```ts import { driver } from "https://deno.land/x/drowser@v0.1.6/mod.ts"; -driver({ browser: "chrome" }) +driver({ browser: "safari" }) .then(({ service }) => { service.cases = [ { From c6c5ef24448d3bcb537bde4597c626a4c54fada2 Mon Sep 17 00:00:00 2001 From: Ando Date: Wed, 19 Feb 2025 13:36:50 +0300 Subject: [PATCH 2/2] docs: update warning --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a06ac3..7d6ed92 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ A easy way to implement and write Selenium with TypeScript using Deno 🦕 -> Note: This project is under development and is not yet ready for production use. Please use it with caution and report any issues or bugs you encounter. +> [!WARNING] +> Note: 🚧 This project is under development and is not yet ready for production use. Please use it with cautio and report any issues or bugs you encounter. ## Features