Run selenium webdriver via powershell on ubuntu? - powershell

Made a Powershell script, which is using Selenium webdriver, and it's currently running from an Windows machine.
I'm now looking to change from running the script on Windows, to instead be using a Ubuntu distro.
As I'm now (on Windows) using .NET dll's in the code to get Selenium started I need to find alternative language for this on Ubuntu. That's also compatible with Powershell.
Wondering if there's any such alternative for Powershell?

Related

How To Get Windows Run Time Environment with Code Server

Clearly, you can run Code Server on a Linux host, or with WSL on a Windows host. Either will provide a Linux run-time environment for your code. I have 2 projects with 3rd party Windows binary dependencies which will not run on Linux. So, is there a way to get a Windows run-time using Code Server?

is it possible to host windows powershell on a .netcore app

i was wondering if it is possible to host Windows PowerShell on a .NetCore application assuming that i'm gonna use it on Windows OS, but couldn't find an answer for that.
anyone knows if there's a way to do that?
No it is not possible.
Windows PowerShell only runs on Windows, PowerShell Core runs on Windows, Mac OS and Linux.
You'll find more information about that in this article: https://www.ghacks.net/2018/01/12/powershell-vs-powershell-core-what-you-need-to-know/

PowerGUI script editor does not recognize the updated powershell version?

I have ARS Shell 1.7.0 installed as part of ARS 6.9 & my MS (windows) powershell version is 4 (obtained by $PSVersionTable.PSVersion, screenshot below)
however when I do the same within the PowerGUI I get version as 2? This has started after i upgraded by shell version to 1.7 from 1.6.9 (PowerGUI worked fine with 1.6.9). I have no clue why is this happening & due to this I'm unable to use any quest cmdlets within the PowerGUI editor which make debugging my scripts an impossible task!
Screenshot from PowerGUI :
I get below error when i try to load ActiveRolesManagementShell from PowerGUI:
UPDATE: tried running Powershell (x86) but still the result is same, can anyone please let me know where in the world is PowerGUI picking up version 2 ?
Updated the PowerGUI Script editor to version to 3.8 & it resolved the issue. PowerGUI now recognizes v4
People using ver 3.2 should make a note of it.
I think the issue might be due to a change in ARS 1.7.0 that is forcing the PS2 engine to be required, per this:
Windows PowerShell 4.0 and Windows PowerShell 3.0 are designed to be
backwards compatible with Windows PowerShell 2.0. Cmdlets, providers,
snap-ins, modules, and scripts written for Windows PowerShell 2.0 run
unchanged in Windows PowerShell 4.0 and Windows PowerShell 3.0.
However, due to a change in the runtime activation policy in Microsoft
.NET Framework 4, Windows PowerShell host programs that were written
for Windows PowerShell 2.0 and compiled with Common Language Runtime
(CLR) 2.0 cannot run without modification in Windows PowerShell 3.0 or
Windows PowerShell 4.0, which are compiled with CLR 4.0. The Windows
PowerShell 2.0 Engine is intended to be used only when an existing
script or host program cannot run because it is incompatible with
Windows PowerShell 4.0, Windows PowerShell 3.0, or Microsoft .NET
Framework 4. Such cases are expected to be rare.
Many programs that require the Windows PowerShell 2.0 Engine start it
automatically. These instructions are included for the rare situations
in which you need to start the engine manually.
https://msdn.microsoft.com/en-us/powershell/scripting/setup/starting-the-windows-powershell-2.0-engine

Powershell MQ Snap-in MO74 doesn't work correctly

I have downloaded and installed MO74: WebSphere MQ - Windows PowerShell Library on a Windows Server 2012 with IBM WebSphere MQ Explorer Version: 7.5.0.2
The original website is website http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24017698&loc=en_US&cs=utf-8&lang=en
I have both tried to install for powershell 64bit and for powershell 32bit.
For 64bit I can add the plugin (Add-PSSnapin IBM.Powershell.WebsPhereMQ) without errors.
Afterwards the commands (for instance a simple Get-WMQQueue) gives no errors but no results as well.
For 32bit I can't even load the plugin.
The error is:
Add-PSSnapin : The Windows PowerShell snap-in 'IBM.Powershell.WebsPhereMQ' is not installed on this computer.
Anyone has this working with Windows Server 2012 and have a clue what can be wrong?
Installed MO74 on Windows Server 2012. System already had MQ8.0 installed on it. The Get-WMQQueue cmdlet works for me.
Got to know from the MO74 developers that MO74 can be used with 32 bit PowerShell only. Support for 64 bit PowerShell is not available yet.

MatrikonOPC Simulation Server on Windows 8.1

Is it possible to run MatrikonOPC Simulation Server on Windows 8.1.
I am trying using this tutorial (http://home.hit.no/~hansha/documents/software/documents/MatrikonOPC%20Server%20for%20Simulation%20User%20Manual.pdf) to run it and so far there is no success at all.