-
Notifications
You must be signed in to change notification settings - Fork 103
ConvertTo-Selenium #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConvertTo-Selenium #175
Conversation
I like that :)
As for your second point, personally I like the idea of getting it as a ScriptBlock. |
@ili101 I'll be publishing V4.0 (pre-release) on the gallery tonight. If you are finished by now, let me know and I'll merge your PR. Otherwise, no worries, I'll just release an update whenever it is ready. The plan is to leave the version as a pre-release for about a month before getting the official release out for real. |
I didn't have the chance to work on it but it will be nice to have it in so we can get some feedback. |
I moved the files and converted to ScriptBlock so now you can do Import-Module .\Selenium.psd1
$PsCode = ConvertTo-Selenium -Path .\Examples\Example.side
# Run directly:
. $PsCode
# Send to clipboard:
$PsCode | Set-Clipboard |
Add Get-SeElement -By Id -value "firstname" | Invoke-SeKeys -Keys "${KEY_ENTER}" In C# it's converted to: driver.FindElement(By.Id("firstname")).SendKeys(Keys.Enter); Not sure if you want to add this to |
@ili101 Ah, I was merging around the same time you published your comment so I missed it. Instead, it is cooked in Invoke-SeKeys so if the keys start with a modifier key, it will do a key down on all the modifier keys, then send the remaining and perform a key up. So Invoke-SeKeys is the way to go. |
I discovered an major spelling error, wherefore I get "Cmdlet is not recognized"-Error:
Version: 4.0.0-preview3 from PS-Gallery |
feature request #84
Convert Selenium IDE .side recording file to PowerShell commands.
I implemented this basic commends:
If a command is missing it will be added as a comment.
output example: