Danp2 Posted August 28, 2019 Author Share Posted August 28, 2019 @rlvitorino Have you tried without the leading space / dash? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
CYCho Posted August 28, 2019 Share Posted August 28, 2019 (edited) @rlvitorino Starting from ChromeDriver version 76, disable-infobars flag was officially deprecated. I solved the problem by changing the capabilities as follows: $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"unhandledPromptBehavior": "ignore", "goog:chromeOptions": {"w3c": true, "excludeSwitches": ["enable-automation"], "useAutomationExtension": false, "args": ["start-maximized"] }}}}' Reference : https://stackoverflow.com/questions/57298901/unable-to-hide-chrome-is-being-controlled-by-automated-software-infobar-within Edited August 28, 2019 by CYCho Decibel and Danp2 2 zPlayer - A Small Audio and Video Player   Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
raycred Posted August 31, 2019 Share Posted August 31, 2019 Is there any way to change the user agent using chromedriver? I wanna simulate that im running an mobile system. Link to comment Share on other sites More sharing options...
Danp2 Posted August 31, 2019 Author Share Posted August 31, 2019 You may want to look into this -- https://chromedriver.chromium.org/mobile-emulation Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Letraindusoir Posted September 3, 2019 Share Posted September 3, 2019 (edited) Func _jsEval($jsFile, $jsFun) Local $Ret = "" Local $jss = FileRead($jsFile) Local $mss = ObjCreate("MSScriptControl.ScriptControl") With $mss .language = "JavaScript" .addcode($jss) $Ret = .eval($jsFun) EndWith Return $Ret EndFunc As above, by introducing the javascript script file, That can execute the function of the script file . _ WD_ExecuteScript what to do if want to achieve this effect? For example, there is the following javascript file: <script> function switchTo(Page) { window.location.href="https://www.autoitscript.com/forum/topic/192730-webdriver-udf-help-support/page/" + Page + "/"; } </script> how do I introduce the script function and execute it? Edited September 3, 2019 by Letraindusoir Link to comment Share on other sites More sharing options...
Danp2 Posted September 3, 2019 Author Share Posted September 3, 2019 @Letraindusoir Have you taken a look at the _WD_jQuerify function in wd_helper.au3? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Letraindusoir Posted September 3, 2019 Share Posted September 3, 2019 46 minutes ago, Danp2 said: @Letraindusoir Have you taken a look at the _WD_jQuerify function in wd_helper.au3? Thank you Danp2! because there are no relevant examples, I did not see it very clearly. Is it used to introduce https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js files? What if I want to introduce a local js file and execute the functions in it properly? Link to comment Share on other sites More sharing options...
Danp2 Posted September 3, 2019 Author Share Posted September 3, 2019 35 minutes ago, Letraindusoir said: What if I want to introduce a local js file and execute the functions in it properly? I can't imagine that it would be too difficult to write a generic function that accepts an additional parameter to indicate the script that needs to be injected. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
CYCho Posted September 4, 2019 Share Posted September 4, 2019 (edited) Has anyone come up with proper wordings of $sDesiredCapabilities to disable "save password" bubble? I tried "prefs": ["credentials_enable_service": false], but chromedriver would not start with this option included. Solved - prefs option takes a dictionary type, so curly braces should be used to enclose the parameters: "prefs": {"credentials_enable_service": false} Edited September 23, 2019 by CYCho zPlayer - A Small Audio and Video Player   Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
Letraindusoir Posted September 4, 2019 Share Posted September 4, 2019 16 hours ago, Danp2 said: I can't imagine that it would be too difficult to write a generic function that accepts an additional parameter to indicate the script that needs to be injected. If it is not possible, the mixed use of "MSScriptControl.ScriptControl" estimates can also achieve the goal.  Link to comment Share on other sites More sharing options...
rlvitorino Posted September 5, 2019 Share Posted September 5, 2019 (edited) Everything you need to use WebDriver new version (Not Virus - Code Only and ChromeDriver) Â Edited September 5, 2019 by rlvitorino Link to comment Share on other sites More sharing options...
Danp2 Posted September 5, 2019 Author Share Posted September 5, 2019 @rlvitorino Sorry, but I don't see the value in this archive. All of these files are already available either on this forum or Github. Plus the Chrome driver will be outdated once an update is released. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
rlvitorino Posted September 5, 2019 Share Posted September 5, 2019 @Danp2 Ok, I'll delete,But the version I posted I know is running and has everything you need to run chromedriver. Link to comment Share on other sites More sharing options...
ronaldinho424 Posted September 6, 2019 Share Posted September 6, 2019 chromedriver how do add extensions. Link to comment Share on other sites More sharing options...
DStraathof Posted September 6, 2019 Share Posted September 6, 2019 Hi, I'm in desperate need of help for handling Windows Authentication in Chome using chromedriver (version 76 should have the issues fixed:Â ChromeDriver 76.0.3809.12 Supports Chrome version 76 Finished implementation of Actions API ) Has anyone got this working already with the new version? Any help will be appreciated. Link to comment Share on other sites More sharing options...
Danp2 Posted September 6, 2019 Author Share Posted September 6, 2019 Hi @DStraathof, There's a short example in wd_demo.au3 that shows how to use _WD_Action. If you need further assistance, I suggest that you write a short script that demonstrates the issue you are attempting to resolve. Dan Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
DStraathof Posted September 6, 2019 Share Posted September 6, 2019 Hi @Danp2, Not sure how I should use this example for the Windows authentication. I can't use 'elements', as this is a pop-up window, not being 'elemented' through HTML. It's the browsers-own credentials window. Hope you can still hand me a clue in the right direction. Thanks. Â Link to comment Share on other sites More sharing options...
Danp2 Posted September 6, 2019 Author Share Posted September 6, 2019 @DStraathof You will likely need to use standard Autoit commands to interact with this dialog. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
DStraathof Posted September 6, 2019 Share Posted September 6, 2019 @Danp2, thanks, I'll go from there, then. Link to comment Share on other sites More sharing options...
Letraindusoir Posted September 7, 2019 Share Posted September 7, 2019 In the process of using webdriver to manipulate the web page, two small problems are found: 1, when the page or browser in operation is closed for some reason, Â Â the code is still executing and does not automatically terminate with the loss of focus or target. 2. When the code execution is terminated for unexpected reasons, Â Â the error warning pop-up window appears when the browser is opened again (warning closed improperly). Â Â How do I automatically close this pop-up window? Link to comment Share on other sites More sharing options...
Recommended Posts