Jump to content

Recommended Posts

Posted

Hello all!  :bye:

The website I manipulate no longer supports IE. We've already lost a lot of functionality and I've been making workarounds, but this can't last much longer. I need to convert all the scripts to Chrome.

I looked into the Webdriver Udf but can't understand exactly what I'm supposed to do. JSON? What? Chrome Webdriver? What what?

Can someone break it down for me??? Like, "first download this .au3 file and put it in your 'include' folder, then change all IE functions to Chrome functions. The functions can conveniently be found here." (This is an optimistic idea of how easy this will be)

Please please and thank you!

Posted

It's really not that difficult to get started --

  • Download the Webdriver UDF from Github.
  • Download the JSON and WinHTTP UDFs if you don't already have them
  • Download the ChromeDriver from here
  • Modify wd_demo.au3 to use Chrome instead of Firefox (see line near top defining the constant $_TestType)
  • Adjust the demo code to execute by setting the appropriate entries in $aDemoSuite to True / False
  • Run wd_demo.au3

Once you've got a better understanding of the demo code, you can start converting your existing script.

Posted
  • Download the Webdriver UDF from Github. DONE
  • Download the JSON and WinHTTP UDFs if you don't already have them DONE
  • Download the ChromeDriver from here DONE
  • Modify wd_demo.au3 to use Chrome instead of Firefox (see line near top defining the constant $_TestType) DONE
  • Adjust the demo code to execute by setting the appropriate entries in $aDemoSuite to True / False

I dont understand...

Local $aDemoSuite[][2] = [["DemoTimeouts", False], _
                        ["DemoNavigation", False], _
                        ["DemoElements", True], _
                        ["DemoScript", False], _
                        ["DemoCookies", False], _
                        ["DemoAlerts", False], _
                        ["DemoFrames", False], _
                        ["DemoActions", False], _
                        ["DemoWindows", False]]
  • Run wd_demo.au3

I'm missing the WinHttp.au3 file. Where can I get that?

Posted
42 minutes ago, XinYoung said:

I dont understand...

Local $aDemoSuite[][2] = [["DemoTimeouts", False], _
                        ["DemoNavigation", False], _
                        ["DemoElements", True], _
                        ["DemoScript", False], _
                        ["DemoCookies", False], _
                        ["DemoAlerts", False], _
                        ["DemoFrames", False], _
                        ["DemoActions", False], _
                        ["DemoWindows", False]]

These are separate "demo" routines, which you can turn on/off by changing the 2nd entry to True/False. In the posted example, only the DemoElements routine will execute when you run wd_demo. Change all of the values to True if you want the entire demo to run.

44 minutes ago, XinYoung said:

I'm missing the WinHttp.au3 file. Where can I get that?

This is the main file from the WinHTTP UDF. You indicated that you have already downloaded it. What did you do with the file you downloaded?

Posted

OK, I got the WinHttp.au3 file

Now I'm getting warning: $SB_UTF8: possibly used before declaration.  from line 233 in the wd_core file...

Posted
17 minutes ago, XinYoung said:

Where can I download it??

You can't download it.  Man you got to take control of the situation they have put you in.  If they can decide that IE is not the right browser, it is not rightful that they do not allow you to download the right version of the tool they ask you to use. 

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...