Jump to content

Recommended Posts

Posted

Hello All,

I use "_WD_UpdateDriver('firefox')" to update or install gekodriver.exe. It's working fine for me on my business' intranet whith a special VPN, but not working on the business cloud !!??

There is a special port that I need to Open or an IP address that I need to allow???

Thanks a lot.

Posted

Hi... my crystal ball is currently out of commission, so you will need to provide more details than "not working".  😏Also, I don't know what you mean by "business cloud". Are you behind a firewall or proxy?

What do you get for console output when you run the following?

#include "wd_core.au3"
#include "wd_helper.au3"

$_WD_Debug = $_WD_DEBUG_Full
_WD_UpdateDriver('firefox')

This is what I see --

    _WD_GetBrowserPath ==> Success [0 / 2] : Parameters:    Browser=firefox
    _WD_GetBrowserVersion ==> Success [0 / 2] : Parameters:    Browser=firefox
    _WD_GetWebDriverVersion ==> Success [0 / 0] : Parameters:    Dir=c:\Users\danpo\OneDrive\Documents\GitHub\WD Test\    EXE=geckodriver.exe
    __WD_GetLatestWebdriverInfo ==> Success [0 / 0]
    _WD_DownloadFile ==> Success [0 / 0] : Parameters:    URL=https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-win64.zip    Dest=C:\Users\danpo\AppData\Local\Temp\webdriver_snrfuls.zip    Options=Default
    __WD_UpdateExtractor ==> Success [0 / 0]
    _WD_UpdateDriver ==> Success [0 / 0] : DriverCurrent = 0.32.1 : DriverLatest = 0.33.0

There aren't any special ports required. Internally, the InetRead function is used to download the webdriver.

Posted (edited)
  Quote

don't work on "intranet"

Expand  

What this mean ?

Do you have internet there ?

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Thanks for your reply,

Yes I think there is no internet on this cloud
With full Debug we can see:

_WD_GetBrowserPath ==> Success [0 / 1] : Parameters:    Browser=firefox
_WD_GetBrowserVersion ==> Success [0 / 1] : Parameters:    Browser=firefox
_WD_GetWebDriverVersion ==> Not found [13 / 0] : Parameters:    Dir=D:\TEST_pour_AutoSeria_Acces_a_Update_Webdriver\Auto_Seria_AU3\    EXE=geckodriver.exe
__WD_GetLatestWebdriverInfo ==> General Error [1 / 2]
_WD_UpdateDriver ==> General Error [1 / 2] : DriverCurrent = 0 : DriverLatest =


I think I need to put "gekodriver.exe" in my work dir with the same version of firefox and i don't do anythink more !

Posted

@Danp2 I think we need to do some features for such cases.
I have this problem too in one project which is on my TODO list.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

 

  1. use program on PC station with INTRANET env
  2. Get browser version store to INI
  3. use program on PC station with INTERNET env
  4. Get stored value from INI
  5. Get desired driver
  6. use program on PC station with INTRANET env
  7. check if BROWSER and DRIVER versions fits toogether

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
sorry to interrupt you !!! 😀

I installed "edge" 116.0.1938.81 win32 and the same version of edgedriver.exe win32

The server is an Windows server 2019

   I have the "black Windows" WebDriver opened and Edge window opened but:


_WD_CapabilitiesAdd ==> Success [0] : Successfully added capability
_WD_CapabilitiesDump: JSON structure starts below: 1310
{
    "capabilities":{
        "alwaysMatch":{
            "ms:edgeOptions":{
                "excludeSwitches":[
                    "enable-automation"
                ]
            }
        }
    }
}
_WD_CapabilitiesDump: JSON structure ends above.
_WD_GetFreePort ==> Success [0 / 9515] : Parameters:   MinPort=9515   MaxPort=Default
_WD_IsLatestRelease ==> General Error [1]
_WD_Startup: OS:    WIN_2019 X64 17763 
_WD_Startup: AutoIt:    3.3.16.1
_WD_Startup: Webdriver UDF: 1.0.3 (Update status unknown [1])
_WD_Startup: WinHTTP:   1.6.4.2
_WD_Startup: Driver:    msedgedriver.exe (32 Bit)
_WD_Startup: Params:    --verbose --log-path="D:\TEST_pour_AutoSeria_Acces_a_Update_Webdriver\Auto_Seria_AU3\msedge.log"
_WD_Startup: Port:  9515
_WD_Startup: Command:   "msedgedriver.exe" --verbose --log-path="D:\TEST_pour_AutoSeria_Acces_a_Update_Webdriver\Auto_Seria_AU3\msedge.log" 
_WD_Startup ==> Success [0]

Issue is >>>  _WD_IsLatestRelease ==> General Error [1]

 

It is the first time I put an Autoit Script with Webdriver on a Window Server (2019)!!!

If you are an idea !!

 

 

Posted
  On 10/20/2023 at 1:45 PM, tac7 said:
_WD_Startup: Webdriver UDF: 1.0.3 (Update status unknown [1])
Expand  

https://github.com/Danp2/au3WebDriver/releases/tag/1.2.0

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/20/2023 at 11:40 AM, Danp2 said:

Note that I did say realistic. 😉Maybe something like this already exists for Selenium?  IMO, that is outside the scope of this set of UDFs.

Expand  

but why ?
I think It is easy to provide support for this.
I think I be able to propose PR in comming days.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 10/20/2023 at 1:45 PM, tac7 said:

I have the "black Windows" WebDriver opened and Edge window opened but:

Expand  

ok

  On 10/20/2023 at 1:45 PM, tac7 said:

Issue is >>> _WD_IsLatestRelease ==> General Error [1]

Expand  

exactly as @Danp2 said here:

  On 10/20/2023 at 2:24 PM, Danp2 said:

As far as why _WD_IsLatestRelease returns an error, I can only assume that it is the same issue we discussed above where you don't have internet access.

Expand  

so @tac7 is there any other problem ?
Does your browser automation start properly or not ?
 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Yes it semms to be executed correctly

image.png.786c86b9f4332698b243226934fbb636.png

In the Black windows on the Remote Machine the only difference with local is:

DevTools remote debugging is disallowed by the system admin.
[2448:9468:1020/174205.039:ERROR:edge_auth_errors.cc(487)] EDGE_IDENTITY: Get Default OS Account failed: Error: Primary Error: kImplicitSignInFailure, Secondary Error: kAccountProviderFetchError, Platform error: 0, Error string:

[2448:9468:1020/174205.860:ERROR:fallback_task_provider.cc(124)] Every renderer should have at least one task provided by a primary task provider. If a "Renderer" fallback task is shown, it is a bug. If you have repro steps, please file a new bug and tag it as a dependency of crbug.com/739782.

In the Black Local Windows I have:

DevTools listening on ws://127.0.0.1:58431/devtools/browser/5c76a0e3-48fe-4120-a7e1-612443aede25
[22208:22816:1020/174403.475:ERROR:device_event_log_impl.cc(222)] [17:44:03.463] USB: usb_service_win.cc:415 Could not read device interface GUIDs: Le fichier spÚcifiÚ est introuvable. (0x2)

 

All my Debug on the Remote :

_WD_Option ==> Success [0] : Parameters:   Option=Driver   Value=msedgedriver.exe
_WD_Option ==> Success [0] : Parameters:   Option=Port   Value=9515
_WD_Option ==> Success [0] : Parameters:   Option=DriverParams   Value=--verbose --log-path="D:\TEST_pour_AutoSeria_Acces_a_Update_Webdriver\Auto_Seria_AU3\msedge.log"
_WD_CapabilitiesStartup: #148 : > {"capabilities":"{}"} > IsObj = 1
_WD_CapabilitiesAdd: #177 :      $key = alwaysMatch     $value1 = msedge     $value2 = 
_WD_CapabilitiesAdd: #205 :  $_WD_NOTATION__MATCHTYPE = [capabilities][alwaysMatch] $_WD_NOTATION__SPECIFICVENDOR = ["ms:edgeOptions"]
_WD_CapabilitiesAdd ==> Success [0] : Successfully used [alwaysMatch]  with specified browser: msedge
_WD_CapabilitiesAdd: #177 :      $key = excludeSwitches     $value1 = enable-automation     $value2 = 
_WD_CapabilitiesAdd: #239 #275 :      $key = excludeSwitches     $value1 = enable-automation     $value2 =     $s_Notation = [capabilities][alwaysMatch]["ms:edgeOptions"]["excludeSwitches"][0]   <<<<  enable-automation
_WD_CapabilitiesAdd ==> Success [0] : Successfully added capability
_WD_CapabilitiesDump: JSON structure starts below: 1310
{
    "capabilities":{
        "alwaysMatch":{
            "ms:edgeOptions":{
                "excludeSwitches":[
                    "enable-automation"
                ]
            }
        }
    }
}
_WD_CapabilitiesDump: JSON structure ends above.
_WD_GetFreePort ==> Success [0 / 9515] : Parameters:   MinPort=9515   MaxPort=Default
_WD_IsLatestRelease ==> General Error [1]
_WD_Startup: OS:    WIN_2019 X64 17763 
_WD_Startup: AutoIt:    3.3.16.1
_WD_Startup: Webdriver UDF: 1.2.0 (Update status unknown [1])
_WD_Startup: WinHTTP:   1.6.4.2
_WD_Startup: Driver:    msedgedriver.exe (32 Bit)
_WD_Startup: Params:    --verbose --log-path="D:\TEST_pour_AutoSeria_Acces_a_Update_Webdriver\Auto_Seria_AU3\msedge.log"
_WD_Startup: Port:  9515
_WD_Startup: Command:   "msedgedriver.exe" --verbose --log-path="D:\TEST_pour_AutoSeria_Acces_a_Update_Webdriver\Auto_Seria_AU3\msedge.log" 
_WD_Startup ==> Success [0]

 

If this can help you !!

Posted (edited)
  On 10/20/2023 at 3:47 PM, tac7 said:

In the Black windows on the Remote Machine the only difference with local is:

DevTools remote debugging is disallowed by the system admin.
Expand  

As you said before, it is

  On 10/20/2023 at 1:45 PM, tac7 said:

an Autoit Script with Webdriver on a Window Server (2019)!!!

Expand  

do you have admin rights ?
If not, what did you expect ?

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

It seems I don't have all Rights in "Programm Files (X86)"

But I can't install Edge in Other folder....

I will check "how to" monday..

 

Thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...