automation

Using Python To Interact with Webpages [closed]

蹲街弑〆低调 提交于 2020-01-07 07:47:19
问题 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 4 years ago . In my current job we have a web based Business intelligence tool where every morning i have to create data extracts from the system and paste them into a PowerPoint presentation. I wish to automate this as its repetitive and time consuming (we have also had several redundancies and i have been allocated the

Using Python To Interact with Webpages [closed]

百般思念 提交于 2020-01-07 07:47:10
问题 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 4 years ago . In my current job we have a web based Business intelligence tool where every morning i have to create data extracts from the system and paste them into a PowerPoint presentation. I wish to automate this as its repetitive and time consuming (we have also had several redundancies and i have been allocated the

how to get a sub parent web element component between many div in selenium xpath?

随声附和 提交于 2020-01-07 05:42:13
问题 I want to get the sub parent element <div class="post"/> given the text of a post in this case given the text "post2" that is the second div in the code there are many posts in a page. I tried to use an xpath like this that I did thinking that is possible find between in the sub-parents web elements: "//div[@id='content']//span[contains(text(), 'post2')]/.//*[@class='post']" <div id="content"> <div class="post"> <div class="right"> <div class="content"> <div class="post-content"> <span> post1

can we change the css , html values using splinter , beautiful soup or selenium?

99封情书 提交于 2020-01-07 04:55:47
问题 can i change the value of any html , css thing using splinter or selenium like we can do with inspect element : `<form action="/action_page.php" oninput="x.value=parseInt(a.value)+parseInt(b.value)"> 0 <input type="range" id="a" name="a" value="50"> 100 + <input type="number" id="b" name="b" value="50"> = <output name="x" for="a b"></output> <br><br> <input type="submit"> </form>` can i select <input type="range" id="a" name="a" value="50"> and can change the value="30" by using splinter or

VBA If then statement + left

爱⌒轻易说出口 提交于 2020-01-07 03:44:26
问题 I'm very new to using VBA, and I am trying to create a code with these rules (Please see image for context): If Column B cell has the text "GBP", then go across to the Adjacent cell in Column C. If the first 2 letters of the C cell begins with RB, then post the text "Royal Bank of Scotland" in an adjacent Cell D, if the first 2 letters are HC, then post the text "Corporate" in an adjacent Cell D instead. If Column B cell has the text "USD", then go across to the Adjacent cell in Column C. If

How do I run a set of Terminal commands from a spreadsheet?

China☆狼群 提交于 2020-01-07 03:12:29
问题 I have to run a set of Entrez Direct commands to run in Terminal based on queries/search phrases in a column in a spreadsheet. How can I automatically run a terminal command repeatedly based off of a spreadsheet? i.e., I have this command: esearch -db pubmed -query "<query>" | efetch -format docsum | xtract -pattern DocumentSummary -element PubDate | cut -c 1-4 | sort-uniq-count > <directory>/<name>.xls And a spreadsheet that contains values for <query> in a column, and I can also put in

Using BATCH to clean up file names to name full path

狂风中的少年 提交于 2020-01-07 01:22:42
问题 All the information is located in a text file. I would like to go from this: /var/www/xxx/video_folder_1: New folder New folder - Copy New folder - Copy (10) New folder - Copy (10) - Copy New folder - Copy (10) - Copy - Copy New folder - Copy (11) /var/www/xxx/video_folder_2: cideo.mp4 sadasd To this: /var/www/xxx/video_folder_1/New folder /var/www/xxx/video_folder_1/New folder - Copy /var/www/xxx/video_folder_1/New folder - Copy (10) /var/www/xxx/video_folder_1/New folder - Copy (10) - Copy

Selenium : wait until attribute value changed

与世无争的帅哥 提交于 2020-01-06 10:21:59
问题 I have image in webpage whose src is changed after some time there can be two possible value after src is changed(time can vary) img_src_success or img_src_failed I have added below code to wait until src is changed but its not working and giving error. WebDriverWait wait = new WebDriverWait(driver, 120); wait.until(ExpectedConditions.attributeToBe(image_src, "src",img_src_success ); where image_src = WebElement src = attribute img_src_success = String value "/src/image/success.png" img_src

Inconsistently getting error (Watir::Wait::TimeoutError)

◇◆丶佛笑我妖孽 提交于 2020-01-06 08:25:10
问题 I am new to cucumber,while running script at times I am getting error (Watir::Wait::TimeoutError) I am not finding any particular pattern to it. Any help will be dearly appreciated. Many thanks 回答1: First, ensure you're requiring the proper library for watir-webdriver/wait. require "watir-webdriver/wait" Watir has a few methods of declaring wait times on objects, for example (via Watir Webdriver/Waiting): Explicit waits There are four built in methods that you can use to make your waiting

PowerShell: CLI or GUI - which do you need or prefer? [closed]

别等时光非礼了梦想. 提交于 2020-01-06 07:55:54
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . PowerShell v1.0 is obviously a console based administrative shell. It doesn't really require a GUI interface. If one is required, like