chrome-web-driver

Wait for a particular URL in selenium

大城市里の小女人 提交于 2019-12-11 00:38:43
问题 I have the requirement of waiting for a particular URL in website automation using Selenium in Chrome browser. The user will be doing online payment on our website. Fro our website user is redirected to the payment gateway. When the user completes the payment, the gateway will redirect to our website. I want to get notified redirection from gateway to our site. I got an example which waits for “Particular Id” in the web page, here is vb.net code driver.Url = "http://gmail.com" Dim wait As New

Python/ Selenium is not sending tilde character (~) to the input field

。_饼干妹妹 提交于 2019-12-08 09:45:23
问题 I'm trying to use Python/ Selenium/ Webdriver to automatically fill an input field in my Chrome webpage. However, I am not able to use "send_keys" to fill out the tilde character. Here is what I've tried so far: import os import sys from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select browser = webdriver.Chrome(executable_path=r"chromedriver.exe") browser.get("https://mywebpageaddress") browser.find_element_by_id(

c# selenium chrome-webdrive clicking button using class and title

喜你入骨 提交于 2019-12-08 04:07:19
问题 i just want to click button in my page. The html code lookls like : <tr ng-repeat="row in rowCollection" ng-class="{ "error-row": row.errorMessage }" ng-style="vm.getColor(row)" class="ng-scope" style="background: rgb(255, 242, 255) none repeat scroll 0% 0%;"> <td class="ng-binding">Wylaczenie nadan RDF</td><td class="ng-binding">WAITING_FOR_NOTIFICATION</td> <td> <a href="" ng-click="vm.showProcessDiagram(row.executor)" class="ng-binding">rfsSendingExecutor</a> </td> <td class="ng-binding"

Java Selenium WebDriver Can't find form field

独自空忆成欢 提交于 2019-12-07 21:58:20
问题 I'm testing a registration page and I've tried name, xpath, id, class and nothing seems to work. here is my selenium code driver.findElement(By.id("pushMenu")).click(); Thread.sleep(2000); driver.findElement(By.linkText("Register")).click(); Thread.sleep(2000); WebElement l = driver.findElement(By.name("name")); and here is the form tag I'm trying to access <input type="text" name="name" placeholder=""> explicit wait attempt code: WebDriverWait wait = new WebDriverWait(driver, 10); WebElement

Java Selenium WebDriver Can't find form field

送分小仙女□ 提交于 2019-12-06 08:21:52
I'm testing a registration page and I've tried name, xpath, id, class and nothing seems to work. here is my selenium code driver.findElement(By.id("pushMenu")).click(); Thread.sleep(2000); driver.findElement(By.linkText("Register")).click(); Thread.sleep(2000); WebElement l = driver.findElement(By.name("name")); and here is the form tag I'm trying to access <input type="text" name="name" placeholder=""> explicit wait attempt code: WebDriverWait wait = new WebDriverWait(driver, 10); WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.name("name"))); driver.findElement(By

WebDriverIO Selenium pass command line arguments into Chrome from config.js file

可紊 提交于 2019-12-03 14:28:33
I need chrome to run with disable-web-security flag for my UI tests. How can I inject any commands using wdio.config file ( http://webdriver.io/ ). capabilities: [{ browserName: 'chrome' }] You can set any chrome flags within the desired capabilities using chromeOptions capabilities: [{ browserName: 'chrome', chromeOptions: { args: ['disable-web-security'] } }] Check out the chromedriver docs for more information on the chromeOptions object. This ended up being the correct syntax, thanks Christian! capabilities: [{ browserName: 'chrome', "chromeOptions": { args: ['--disable-web-security'] } }]

selenium.common.exceptions.WebDriverException: Message: chrome not reachable error while using find_element_by_id Selenium with ChromeDriver

梦想的初衷 提交于 2019-12-02 03:06:22
问题 Here is the html code: < input class="form-control input-lg input auto-complete" id="ymMsgInput" type="text" placeholder="Type your message ..." autocomplete="off" > Code: i = s.find_element_by_id("ymMsgInput"); Python - Selenium Chrome webdriver error: Traceback (most recent call last): File "<pyshell#19>", line 1, in <module> i = s.find_element_by_id("ymMsgInput"); File "C:\Users\vishn\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line

selenium.common.exceptions.WebDriverException: Message: chrome not reachable error while using find_element_by_id Selenium with ChromeDriver

爷,独闯天下 提交于 2019-11-29 16:01:15
Here is the html code: < input class="form-control input-lg input auto-complete" id="ymMsgInput" type="text" placeholder="Type your message ..." autocomplete="off" > Code: i = s.find_element_by_id("ymMsgInput"); Python - Selenium Chrome webdriver error: Traceback (most recent call last): File "<pyshell#19>", line 1, in <module> i = s.find_element_by_id("ymMsgInput"); File "C:\Users\vishn\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 351, in find_element_by_id return self.find_element(by=By.ID, value=id_) File "C:\Users\vishn\AppData

Is there any way to optimize / speed up the sending of data to a UI with Protractor?

為{幸葍}努か 提交于 2019-11-29 01:38:14
I have code similar to this: ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' + modifier); page.sendKeys(this.modalExamAudienceId, 'Test exam audience ' + modifier); page.sendKeys(this.modalExamPublishedId, '2014-06-1' + modifier); page.sendKeys(this.modalExamPriceId, '100' + modifier); page.sendKeys(this.modalExamDurationId, '6' + modifier); }; Here's the page.sendKeys

ChromeDriver error “unknown error: cannot get automation extension”

六月ゝ 毕业季﹏ 提交于 2019-11-28 11:53:21
Since the 7th of February all my tests are failing with the same error; the log entry reads: RESPONSE MaximizeWindow unknown error: cannot get automation extension from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html (Session info: chrome=57.0.2987.21) I'm not sure if this is caused by a Chrome update or something else - the message is vague enough as it is. EDIT : I am using C#, and the latest Chromedriver. You need the latest version of chromedriver.exe. https://sites.google.com/a/chromium.org/chromedriver/downloads