Hi @Plankton
This error is possible because i use a firefox portable ?
I must edit the line:
cmd = "{env:ProgramFiles}\Mozilla Firefox\firefox.exe"
with
$cmd = “D:\Programmi Installati\Firefox Portable Test 4\FirefoxPortable.exe”
Because my firefox is not installed on windows i use portable version but is the same of firefox installed.
I have windows 7
This is the powershell version
Name Value
CLRVersion 2.0.50727.8762
BuildVersion 6.1.7601.17514
PSVersion 2.0
WSManStackVersion 2.0
PSCompatibleVersions {1.0, 2.0}
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.1
The first macro run well but at the second reopen the browser and notify that firefox is alrealy opened and do not continue, same with a batch file.
In powershell code of Techsupport i see difference respect the code of powershell found on github can be this the reason ?
The powershell code show taskkill command and this command is used when is necessary to close the browser like my case
{
$status_text = "Macro did not complete within the time given:" + $timeout_seconds
$status_int = -2
#Cleanup => Kill Chrome instance
#taskkill /F /IM chrome.exe /T
}
I think that this script can work only with taskkill active and browser closed otherwise can not work, this cose can run one macro, close browser and run another macro losing the previous work the powershell code tell this.
Thanks for support