From 8d120fdbdd639c06e1664c77dee95b84ed3f750c Mon Sep 17 00:00:00 2001 From: ili101 Date: Tue, 13 Oct 2020 01:03:22 +0300 Subject: [PATCH] ConvertTo-Selenium send Enter --- Public/ConvertTo-Selenium.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/ConvertTo-Selenium.ps1 b/Public/ConvertTo-Selenium.ps1 index 95d49bd..3a3680a 100644 --- a/Public/ConvertTo-Selenium.ps1 +++ b/Public/ConvertTo-Selenium.ps1 @@ -89,7 +89,7 @@ function ConvertTo-Selenium { } { $_.command -eq 'close' } { { Stop-SeDriver } ; Break } { $_.command -in $ActionMap.Keys } { - $Action = $ActionMap[$_.command] | Get-Replace -From '$Keys' -To $_.value -QuotesTo -By $_.value + $Action = $ActionMap[$_.command] | Get-Replace -From '$Keys' -To ($_.value.Replace('${KEY_ENTER}', '{{Enter}}')) -QuotesTo -By $_.value { Get-SeElement -By $By | _Action_ } | Get-Replace -From '_Action_' -To $Action -By $_.target Break }