Vitaliy4us Posted April 4, 2020 Posted April 4, 2020 Is it possible to create WebDriver object in Autoit script in the same way as the object for WinHttp? E.g. I can use: Local $oHTTP = ObjCreate('WinHttp.WinHttpRequest.5.1') to get WinHttp object. Is it possible to do the same with WebDriver? Something like this: Local $oDriver = ObjCreate('ChromeDriver')
Moderators JLogan3o13 Posted April 4, 2020 Moderators Posted April 4, 2020 @Vitaliy4us a quick search of the forum would have brought you to this: https://www.autoitscript.com/forum/topic/191990-webdriver-udf-w3c-compliant-version-02192020/ "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Vitaliy4us Posted April 4, 2020 Author Posted April 4, 2020 31 minutes ago, JLogan3o13 said: @Vitaliy4us a quick search of the forum would have brought you to this: https://www.autoitscript.com/forum/topic/191990-webdriver-udf-w3c-compliant-version-02192020/ I saw this one million times. But there is no an answer to my question. I don't want UDF I asked about WebDriver object
Danp2 Posted April 4, 2020 Posted April 4, 2020 31 minutes ago, Vitaliy4us said: I don't want UDF I asked about WebDriver object I'm not aware that such an object exists. Latest Webdriver UDF Release Webdriver Wiki FAQs
Moderators JLogan3o13 Posted April 4, 2020 Moderators Posted April 4, 2020 39 minutes ago, Vitaliy4us said: I saw this one million times. But there is no an answer to my question. I don't want UDF I asked about WebDriver object My mistake, as there isn't an object per se, I thought it clear that if you want to use WebDriver, that is your best option. I probably should have spelled it out a bit more. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Vitaliy4us Posted April 4, 2020 Author Posted April 4, 2020 44 minutes ago, JLogan3o13 said: My mistake, as there isn't an object per se, I thought it clear that if you want to use WebDriver, that is your best option. I probably should have spelled it out a bit more. I just found an example for Java and hoped that it would be great to be use something like this in Autoit script public class GettingStarted { @Test public void testGoogleSearch() throws InterruptedException { // Optional. If not specified, WebDriver searches the PATH for chromedriver. System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://www.google.com/"); Thread.sleep(5000); // Let the user actually see something! WebElement searchBox = driver.findElement(By.name("q")); searchBox.sendKeys("ChromeDriver"); searchBox.submit(); Thread.sleep(5000); // Let the user actually see something! driver.quit(); } } Thank you for your reply.
Vitaliy4us Posted April 4, 2020 Author Posted April 4, 2020 1 hour ago, Vitaliy4us said: I saw this one million times. But there is no an answer to my question. I don't want UDF I asked about WebDriver object Nice to meet you Danp2. It's an honor for me to get a reply from the author of the great UDF. You are doing the great job. And thank you for this.
Danp2 Posted April 4, 2020 Posted April 4, 2020 37 minutes ago, Vitaliy4us said: I just found an example for Java and hoped that it would be great to be use something like this in Autoit script I believe that this is using Selenium to launch the webdriver (ChromeDriver in this case). While this may be possible to do with Autoit, I'm not sure what the advantages / disadvantages would be over the native UDF. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now