selenium-chromedriver

Remote debugging Internjs that runs on selenium chromedriver

血红的双手。 提交于 2019-12-04 07:44:39
I try to remotely debug tests run by Internjs. Basically it is a Chrome that is run by Selenium and Chromedriver. I set up Chromedriver debuggerAddress option as debuggerAddress: '127.0.0.1:8765' Now when I run tests Selenium waits some time and than fails with message: FATAL ERROR UnknownError: [POST http://localhost:4444/wd/hub/session / {"desiredCapabilities":{"browserName":"chrome","name":"tests/intern_local","idle-timeout":60,"selenium-version":"2.44.0","chromeOptions":{"debuggerAddress":"127.0.0.1:8765"}}}] unknown error: cannot connect to chrome at 127.0.0.1:8765 from chrome not

Error while opening link using python and selenium

你。 提交于 2019-12-04 07:09:22
问题 Trying to open google in browser using python and selenium, gave me following errors:(Image of errors) DevTools listening on ws://127.0.0.1:57033/devtools/browser/45f6818b-0d1e-4b81-9 637-861b579c7470 [0901/085753.496:ERROR:gl_surface_egl.cc(863)] eglInitialize D3D9 failed with er ror EGL_NOT_INITIALIZED [0901/085753.496:ERROR:gl_initializer_win.cc(232)] GLSurfaceEGL::InitializeOneOf f failed. [0901/085753.502:ERROR:viz_main_impl.cc(201)] Exiting GPU process due to errors during

Scraping HTML with selenium while clicking options [closed]

给你一囗甜甜゛ 提交于 2019-12-04 06:48:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have got a script which I use to scrape off data from the websites using selenium. Sub Body_Building() Dim driver As New WebDriver, post As Object With driver .Start "chrome", "http://www.bodybuildingwarehouse.co.uk" .Get "/optimum-nutrition?limit=all" End With On Error Resume Next For Each post In driver

Many process of Google Chrome (32 bit)

不想你离开。 提交于 2019-12-04 06:44:33
问题 When 2 tests are running in Chrome, i have observed that too many Google Chrome(32 Bit) processes are running in Task manager, Is this a correct behavior of Chome Driver 回答1: When multiple automated tests are getting executed through Google Chrome you must have observed that there are potentially dozens of Google Chrome processes running which can be observed through Windows Task Manager's Processes tab. Snapshot: As per the article SOLVED: Why Google Chrome Has So Many Processes for a better

WebDriverIO: Starting Chrome with browser sessions & cookies

只谈情不闲聊 提交于 2019-12-04 06:43:39
问题 Is it possible to run a WebdriverIO test case with Google Chrome, without creating a "private Chrome window" ( no cache or cookies ). I want to start the Chrome browser I want to use the cookies and cache from Chrome, not a completely default state Scenario: I am logging into our back-end on Chrome, which sets a token that I use on my localhost. When I run a test through Webdriverio, it doesn't have the token and I have to go through the login process once more. So, in the terminal, if I run

Selecting Element followed by text with Selenium WebDriver

删除回忆录丶 提交于 2019-12-04 06:36:22
I am using Selenium WebDriver and the Python bindings to automate some monotonous WordPress tasks, and it has been pretty straightforward up until this point. I am trying to select a checkbox, but the only way that I can identify it is by the text following it. Here is the relevant portion of HTML: <li id="product_cat-52"> <label class="selectit"> <input value="52" type="checkbox" name="tax_input[product_cat][]" id="in-product_cat-52"> polishpottery </label> </li> The only information that I have in my script to identify this checkbox is the string "polishpottery". Is there any way to select

Running a test case on a webpage that is already open

旧城冷巷雨未停 提交于 2019-12-04 06:32:35
问题 I want to run my test cases via protractor, but due to some limitation I want protractor to start on a page that is already open, meaning I don't want driver to start by loading chrome and going to the url defined in test case. Is there any way if I can use the url that is already opened on screen and then process further with what is defined in the test case such as clicking on elements or sending keys etc. Regards Syed Zaidy 回答1: This feature is not implemented in selenium. It was requested

Relaxing Chrome's CSP while running tests (webdriver) (Content-Security-policy)

本秂侑毒 提交于 2019-12-04 05:23:45
问题 I'm trying to relax Chrome's CSP while running a test using proctractor (webdriver, chromedriver). So the solution can be either a flag like "--disable-csp" which dose not exist according to my search results. a setting for webdriver/protractor to do so. I could not find any solution but to setup a proxy that filters the header. any ideas? 回答1: currently there are no native option but you can disable CSP using extension. Step: Download extension Disable Content-Security-Policy Save it as .zip

Python Selenium ChromeDriver error message: EGL_NOT_INITIALIZED [closed]

三世轮回 提交于 2019-12-04 04:59:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . I'm running ChromeDriver 2.34.522940 and Selenium 3.8.0 on Windows 7 and Python 3.6. I'm trying this code: def foo(url, login, password): from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome() driver.get(url) And it gave the error message: DevTools listening

Manipulate xpath using variables

让人想犯罪 __ 提交于 2019-12-04 04:58:27
问题 So I have the code where the user inputs a color variable and the string for it is called color. Example link - https://www.supremenewyork.com/shop/jackets/k56l3oteu/hjylineo1 . So next I try to find it on the website using driver.find_element_by_xpath("//a[@data-style-name='{}'".format(color.get())) The syntax is wrong and I am not sure how to find it correctly using the variable that users entered before. Also the question, when one of those colors was located how to choose that color as