![]() ![]() Spaces are always trouble makers in paths. Options.add_argument(“user-data-dir=C:/Users/username/AppData/Local/Microsoft/Edge/User_Data”) Options.add_argument(“user-data-dir=C:/Users/username/AppData/Local/Microsoft/Edge/UserData”) User_Data or UserData then try again without the space: The other thing you should note is the escaping of a space in the path if this doesn’t work can you make a copy of the “User Data” directory to something with out a space i.e. Something most people don’t know is that you can use unix style paths in windows, this avoids the whole having to escape path separators issue. Options.add_argument(“user-data-dir=C:/Users/username/AppData/Local/Microsoft/Edge/User\ Data”) Options.add_argument(“user-data-dir=C:\\Users\\username\\AppData\\Local\\Microsoft\\Edge\\User Data”) but anything Microsoft can do to boost its presence in this space will help Microsoft on this front. Unable to parse option: “add_argument(user-data-dir=C:\Users\nahmed\AppData\Local\Microsoft\Edge\User Data)”Įdge browser driver - Version: 90.0.818.51: Įdge Browser version - Version 90.0.818.51 (Official build) (64-bit) The new Chromium-based version of Microsofts Edge browser is finally available. ![]() **new user here - not allowing me to post more than 2 links With speed, performance, best in class compatibility for websites and extensions, and built-in privacy and security features, it's the only browser you'll ever need. It is compatible with all supported versions of Windows, and macOS. Open Browser edge options=add_argument(user-data-dir=C:\Users\username\AppData\Local\Microsoft\Edge\User Data) The new Microsoft Edge is based on Chromium and was released on January 15, 2020. ** Following is the code am using in robot *** InputElement = driver.find_element(By.XPATH,’/html/body/app/main/login/div/form/div/button’) InputElement = driver.find_element(By.XPATH, ‘/html/body/app/main/login/div/form/div/div/input’) Options.add_argument(“user-data-dir=C:\Users\username\AppData\Local\Microsoft\Edge\User Data”) I wanted to avoid the login prompt and right away go to chrome with one of the existing profile.įollowing python code works without issues opening edge browser but am unable to use the argument user-data-dir in SeleniumLibrary robot frameworkįrom lenium_tools import Edge, EdgeOptionsįrom import By Launch Microsoft Edge (Chromium) Specifies comma-separated list of extension ids or hosts to grant access to CRX file system APIs. It does not pick up the existing browser profile. The new Microsoft Edge is based on Chromium and was released on January 15, 2020. Hi, How can we use “user-data-dir” argument when using edge browser in robot framework - SeleniumLibrary?įollowing is the issue am facing - when ever I open the edge browser using selenium, then Edge browser requires me to login. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |