automation

How to get data from Ajax request in Selenium?

半世苍凉 提交于 2019-12-14 02:28:38
问题 I have been trying to check the balances of Starbucks gift cards in my application, https://www.starbucks.com/card I was trying to catch the response made with ajax request, once check balance button is clicked automated, How can I get the ajax response in Selenium? using (var driver = new ChromeDriver()) { driver.Navigate().GoToUrl(@"https://www.starbucks.com/card"); driver.FindElement(By.Id("Card_Number")).SendKeys("7848549479363805"); driver.FindElement(By.Id("Card_Pin")).SendKeys(

How Selenium webdriver locate element with a http response full of javascript

大憨熊 提交于 2019-12-14 02:01:46
问题 I use selenium webdriver to speed up my testing. In my work our website will redirect to paypal for user to finish payment. However, I cannot make selenium webdriver to locate the email and password input field on paypal. The sample paypal URL : https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-07L974777B231831F#/checkout/login A demo of my code may like this: WebDriver m_driver = new FirefoxDriver(); String redirected_url = "https://www.sandbox.paypal.com/cgi-bin

Deleting Sharepoint Files using XMLHTTP

半世苍凉 提交于 2019-12-14 01:30:30
问题 Following on from this excellent piece of work, here: Batch copy files to SharePoint site I can now upload my zipped files to Sharepoint with a click of a button. My problem is now thus: How do I delete the files I upload using the same method? I've amended the code slightly to save different files to different SharePoint folders. Sample below: Public Sub CopyToSharePoint() Dim xmlhttp Dim sharepointUrl Dim sharepointFolder Dim sharepointFileName Dim LstrFileName, strFilePath, strMonthYear,

Integrate TeamCity Reports to Confluence

旧时模样 提交于 2019-12-14 00:42:00
问题 Is there a way (plugin) to integrate build-reports from teamcity to confluence 回答1: I'm not sure that this is what you're looking for but Etienne Studer has bloged about Confluence TeamCity Integration (it's pretty old but it's hard to be accurate without any informations on the versions you're using): TeamCity provides a widget that displays the status of a given build configuration in an arbitrary web page. With a little help by Kir from JetBrains, I was able to integrate the External

How to prove left-recursive grammar is not in LL(1) using parsing table

血红的双手。 提交于 2019-12-14 00:32:48
问题 I have a grammar and would like to prove that it is not in LL(1): S->SA|A A->a As it is a left-recursive grammarm, to find the first and follow sets I eliminated the left recursion and got: S->AS' S'->AS'|Empty A->a first of A={a} follow of S={$} first of s'={a,ε} follow of S'={$} first of S={a} follow of A={a,$} But when I filled in the parsing table, I did not get any cell with 2 entries. Then how is one to prove that the given grammar is not in LL(1)? 回答1: First of all you are finding

Can Bixby invoke an existing SmartThings automation?

て烟熏妆下的殇ゞ 提交于 2019-12-13 22:58:12
问题 Can't find any documentation on the Bixby verbal command to invoke an existing SmartThings automation I know how to speak a Bixby command to CREATE a SmartThings automation to run at a later time, but not to invoke one that is already created none I expect it should be able to do this. Also, is it possible for Bixby to create an automation that runs everyday, not just ONCE ...update... I found that this can be done by including the phrase "every day" in the command. e.g. :"Hi Bixby, turn off

go language Automation testing [closed]

一个人想着一个人 提交于 2019-12-13 22:49:59
问题 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 3 years ago . Please someone help me out on go language automation testing i have been working out manual coding for automation. Please help me any packages or framework available to run automation testing in go. 回答1: Go provides its own testing package you can view it here https://golang.org/pkg/testing/ You can write your

Does Selenium suports CRM applications

十年热恋 提交于 2019-12-13 22:33:18
问题 What are the best automation tools which support dynamic Full CRM dynamics application? does Selenium webdriver supports it ? 回答1: You can only test HTML based websites with Selenium. If the CRM application exposes an HTML based front end that is accessible via a web browser then you can use Selenium to test it, if not you can't. 回答2: You should check following toolkit from product team based on the Celenium - https://github.com/microsoft/easyrepro Here is short quote: The purpose of this

OS X Yosemite Javascript for Automation and iTunes

梦想的初衷 提交于 2019-12-13 21:30:34
问题 I'm trying to click on button "Free" to download application in iTunes. I'm using Javascript for Automation to open iTunes application page: itunes = Application('iTunes'); itunes.activate(); console.log( itunes.name() ); console.log( itunes.version() ); delay(1) appUrl = "itms://itunes.apple.com/us/app/ibooks/id364709193?mt=8"; win = itunes.openLocation(appUrl); The script opens iBook page. How to find and click button "Free"? How to list all elements on open page? Thank you for any help.

How to automate a grid belonging to ApexGrid in TestComplete?

坚强是说给别人听的谎言 提交于 2019-12-13 21:24:53
问题 I have a grid in my application and I spied using the TestComplete tool. It identifies its WndClass as "TG60.ApexGrid32.20". I am not able to get the number of cells or rows properly. Anyone has any experience with objects of this class? Does any other application support this class? Any help would be greatly appreciated! 回答1: I haven't used this grid but I guess it is a case of a virtual table . virtual tables are built in runtime so you can't access the data by cells because the cells don't