並び順

ブックマーク数

期間指定

  • から
  • まで

241 - 280 件 / 356件

新着順 人気順

Capybaraの検索結果241 - 280 件 / 356件

  • 備忘:クリーンエネルギー関連ETFまとめ|Capybara_Stock

    こんにちは、投資カピバラ(@Capybara_Stock)と申します。 Twitterでも投稿させていただきましたが、最近話題のクリーンエネルギー関連ETFについて「どれを選べばいいかわからない!💦」という声が多かったため、わかりやすいフローチャートを作成させていただきました。 本記事は全編無料でお読みいただけます。 もし本記事に価値を感じてくださった方がおられましたら 投げ銭をいただけますと大変嬉しいです。 最終更新:2021/1/9 16:30時点 証券会社情報を追加しました。 構成銘柄の比率などは日々変動しますので、投資を検討される際は必ずご自身で一次情報をご確認ください。 基本情報データはこちら。 データ取得には以下のサイトを使用しています。ETF同士の比較もできますのでご自身でも色々触って見てください! 所感・ETFの選び方について 既に個別株でTSLA,NIO等を持っている場

      備忘:クリーンエネルギー関連ETFまとめ|Capybara_Stock
    • take a glance at capybara2.0

      take a glance at capybara 2.0 2012-07-18 @okitan

        take a glance at capybara2.0
      • Rspec Capybaraで実際テストを書いて困ったシチュエーションの解消法 - Qiita

        オレがRailsで困ったことをググるとだいたい先に解決してくれているでお馴染みの@jnchitoさんの大変参考にしているCapybaraの記事 使えるRSpec入門・その4「どんなブラウザ操作も自由自在!逆引きCapybara大辞典」 これには載っていないが、実際のテストを書く上で遭遇してどうやってspecファイルを書いたらいいものかこまった事象を幾つか解決したので共有したいと思う テキストエリアに文字を入力したいけど、idがなくてfill_inが出来ない時 発生したシチュエーション テキストエリアに文字を入力する際にはfill_inを使い以下のように指定するが、fill_inを使うにはIDを指定する必要がある。 fill_in "id名", with: "入力値" # こう書くことが出来ない # fill_in ".cssClassName", with: "入力値"

          Rspec Capybaraで実際テストを書いて困ったシチュエーションの解消法 - Qiita
        • capybara + poltergeist か capybara + capybara-webkit でテストが通らない問題にぶつかった - @banyan's blog

          はじめに この情報は 2012-10-24 のものです。これ以降ではこの回避方法より正式に upgrade するだけで問題が解決する可能性がありますのでご確認ください。 現状日本語の情報がなかったので書きました。また正式な対応があり次第 update する予定です。何かありましたら @banyan まで教えて頂けるとありがたいです。 現象 poltergeist を使っている場合 js => true にしていると1つ目のテストは通るが js => true にしている2つ目のテストは落ちる 正確にいうと奇数のテストは通るが、偶数のテストは落ちる エラー内容は以下のような感じ Failure/Error: visit "/" Capybara::Poltergeist::DeadClient: The PhantomJS client died while processing {"nam

          • Capybara - Venombytes

            Two steps for faster browser specs March 11, 2013Posted by Tom Meier Keeping specs fast is a never ending battle for the average Rails developer. There are 2 quick lines of javascript that can make excellent and stable improvements to spec speed performance. Most people are aware of JQuery giving the option to disable animations (see – fx.off), we can disable this in test mode making all browser b

            • Capybara で XPath を用いて n 番目の要素を見つけられない

              Pagination のテストのために、最初は以下のようなコードを書いていたのですが、一つのページ内に複数のPagination を表示するページなので、一番上のブロックのみを確認することにしました。 find("//*[@class='pagination']//a[text()='2']").click expect(page.status_code).to eq(200) これに、以下のように *[@class='pagination'] の末尾に [1] を追加したのですが Capybara::ElementNotFound になってしまいます。 find("//*[@class='pagination'][1]//a[text()='2']").click expect(page.status_code).to eq(200) Test 環境ではなく Development 環境

                Capybara で XPath を用いて n 番目の要素を見つけられない
              • Use headless chromium with capybara and selenium webdriver - today!

                ≡ UPDATE: we have a new version of this post out that resolves some of the gotchas below. Here's a Rubyist's magic incantation to run headless chromium with selenium-webdriver and capybara: (it will be similar in other languages) require 'selenium-webdriver' Capybara.register_driver :headless_chromium do |app| caps = Selenium::WebDriver::Remote::Capabilities.chrome( "chromeOptions" => { 'binary' =

                  Use headless chromium with capybara and selenium webdriver - today!
                • SitePrismを使ってSelenium+Capybaraのテストをぺージオブジェクトパターンで書く

                  ウェブサイトのテストプログラムは、Page Object Modelで書くのが良いとされている。 SitePrismとCapybaraを使うことで、画面をコード化する部分と画面を操作する部分を綺麗に分けてプログラムコードにすることができる。その結果、変化に強いテストプログラムを作ることが可能になる。 ぺージオブジェクトパターンでないテストプログラムSeleniumを使ってWebサイトのテストコードを書くのテスト対象は、ページ数が少なく、かつ、シンプルなページのため、Page Object Modelにする良さがわかりにくい。そこで、複数のページ遷移を確認するテストを用意した。Yahoo! JAPANから三重県津市の天気のページへ移動できるかというテストだ。 #! ruby # -*- mode:ruby; coding:utf-8 -*- require 'capybara/rspec'

                    SitePrismを使ってSelenium+Capybaraのテストをぺージオブジェクトパターンで書く
                  • Capybara Cheatsheet - Thoughtbot VideoTutorials

                    Navigation > > visit visit visit navigates to a particular path. Pass a string or use one of Rails’ path helpers. visit '/blog' visit blogs_path > > click_on click_on click_on will click an anchor tag, button, or input with type submit. Pass a string containing the anchor text. click_on 'Sign in' click_on 'Submit' Page Interaction and Scoping > > has_css? has_css? has_css? returns a boolean value

                    • 不安定テストを生み出すCapybaraを調教する

                      不安定テストを生み出すCapybaraを調教する 2020/06/12 @銀座Rails #22 Masatoshi Iwasaki

                        不安定テストを生み出すCapybaraを調教する
                      • Use Chrome with Cucumber & Capybara | Collective Idea

                        Photo by Tambako the Jaguar, used under Creative Commons https://flic.kr/p/dJD2dV We frequently swap out Firefox for Chrome in our selenium (@javascript) cucumber tests. It is actually very easy, but not widely known. Update: I got some questions about why we’d use Chrome. Speed hasn’t been the issue (use capybara-webkit for that) but we have found some things that work better in Chrome vs Firefox

                          Use Chrome with Cucumber & Capybara | Collective Idea
                        • RSpec/Capybara: Spork でテストを高速化する | DriftwoodJP

                          group :development, :test do gem 'sqlite3', '~> 1.3.5' gem 'rspec-rails', '~> 2.11.0' gem 'guard-rspec' gem 'guard-spork' gem 'childprocess' gem 'spork' end % bundle install % bundle exec spork --bootstrap Using RSpec Bootstrapping /Users/****/projects/sample_app/spec/spec_helper.rb. Done. Edit /Users/****/projects/sample_app/spec/spec_helper.rb now with your favorite text editor and follow the in

                            RSpec/Capybara: Spork でテストを高速化する | DriftwoodJP
                          • Testing Hover Events with Capybara

                            Recently, I needed to write an integration test that involved hovering on elements. It was a bit painful to figure out, but the solution is simple. There are three things you need to know: You need to use capybara-webkit as you javascript driver You have to trigger the 'mouseover' event This solution isn't well documented When I started trying to figure out how to hover on elements in my tests, I

                            • Agile League | Rails 3.2 Custom Error Pages, the exceptions_app, and Testing with Capybara

                              Rails 3.2 Custom Error Pages, the exceptions_app, and Testing with Capybara Rails 3.2 Custom Error Pages, the exceptions_app, and Testing with Capybara There is a lot of information out there about custom error pages in Rails 3.2 and how to use the built-in routing and the exceptions_app setting to get the basics working. Unfortunately, everything I found was missing a piece or two, so here’s my a

                              • Stubbing OAuth with Capybara

                                OAuth is great! OAuth is a great tool that allows users to login to your site with another site's credentials. If you have a Facebook, Twitter, Google, Github, Foursquare, etc account and the application supports OAuth, you have one less password and account to maintain. I use Intridea's OmniAuth every chance I can. It's a great project, easy to use, and supports tons of sites. But... One downside

                                • Struggling Towards Reliable Capybara Javascript Testing

                                  You may have reached this blog post because you’re having terribly frustrating problems with Capybara Javascript-driver feature tests that are unreliable in intermittent and hard to reproduce ways. You may think this is a rare problem, since Capybara/JS is such a popular tool suite, and you didn’t find too much on it on Google, and what you did find mostly suggested you’d only have problems like t

                                    Struggling Towards Reliable Capybara Javascript Testing
                                  • capybaraを使ってWebページをスクレイピングする(テストじゃなくて) | Oh My Enter!

                                    capybaraはWebアプリケーションのテスト用のライブラリとして有名ですが、テスト目的でなく、単にスクレイピング用のツールとしても使えます。この記事ではcapybara+selenium+chromeヘッドレスを使用してWebページをスクレイピングするサンプルを紹介します。 動作環境 Mac OS High Sierra 10.13 ruby 2.5 capybaraのセットアップ まずはcapybaraのセットアップからです。selenium-webdriver経由でヘッドレスchromeを操れるように設定します。最初に必要なライブラリをhomebrewでインストールしておきます。 📄Gemfile $ brew install chromedriver 次に必要なgemをインストールするため、Gemfileを作ります。 source "https://rubygems.org"

                                    • 全くもって身勝手な希望的観測入りまくりのブラジルW杯の優勝予想 - グリーン カピバラ Green Capybara

                                      こう見えても、(見えてない人がほとんどですが)学生時代はサッカー部に所属しておりました。 キャプテン翼世代の少し前?もしくは、バリバリ翼世代かもしれませんがよくわかりません。 ポジションは左の攻め!!(体型はフッキ、キックはロベルト・カルロスを想像してもらえれば、間違いだとわかります?!) ロベルト・カルロス 伝説のフリーキック 対フランス - YouTube 当時は左ウイングと呼ばれておりました。(ほとんど攻めしかしない) 役割としては、外から中に切り込んで、エグッってセンターリングを上げたり、ラストパスを送ったりするポジション。 もちろん自分でシュートも打つし、逆サイドからのセンターリングに合わせることもあります。 そして、自分はコーナーキックが得意技でもありました。 そんなサッカー経歴ですが、好きなサッカー選手と言えば ミッシェル・プラティニ(フランス) ミシェル・プラティニ - W

                                        全くもって身勝手な希望的観測入りまくりのブラジルW杯の優勝予想 - グリーン カピバラ Green Capybara
                                      • GitHub - jcoglan/terminus: Capybara driver written mostly in client-side JavaScript for cross-browser automation

                                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                          GitHub - jcoglan/terminus: Capybara driver written mostly in client-side JavaScript for cross-browser automation
                                        • Capybara + Poltergeist を使ってテストするための環境を Vagrant + Chef で構築 - present

                                          プライベートで開発に関わっている Rails アプリが完成に近づいてきたので、 Capybara と RSpec を使ってインテグレーションテストを書くことにした。 JavaScript で動きをつけたページもきちんとテストしたいので、 JavaScript ドライバに Poltergeist を選択。 以下、作業メモ。 Chef で Phantomjs をインストール まずは、Poltergeist が依存している、ヘッドレスブラウザの Phantomjs のインストールが必要。 Phantomjs はコミュニティ Cookbook を使ってインストールする。 Berkfile に cookbook "phantomjs" の1行を追加し、 berks vendor cookbooks でインストール。既に cookbooks フォルダが存在する場合は、先に削除しておくこと。 開発環境は

                                            Capybara + Poltergeist を使ってテストするための環境を Vagrant + Chef で構築 - present
                                          • Create new page · thoughtbot/capybara-webkit Wiki

                                            Attach files by dragging & dropping, selecting or pasting them. Uploading your files… We don’t support that file type. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM. Attaching documents requires write permission to this repository. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM. We don’t support that file type. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM.

                                              Create new page · thoughtbot/capybara-webkit Wiki
                                            • [cucumber][capybara][ruby] cucumber と capybara - HsbtDiary(2011-04-14)

                                              ■ [cucumber][capybara][ruby] cucumber と capybara 今のプロジェクトでは cucumber を使ったりしているので、cucumber-rails についてだいぶ一生懸命調べてみた。もちろん webrat ではなく capybara を使う前提。 @javascript について cucumber で @javascript タグを付けると Capybara.javascript_driver に設定した値がそのシナリオに限って Capybara.current_driver と設定されて動く。つーか、Capybara.javascript_driver はここと capybara/rspec の :js => true でしか意味が無いものだった。な、なんだってー。 Capybara.javascript_driver は特に変更しない限り :

                                                [cucumber][capybara][ruby] cucumber と capybara - HsbtDiary(2011-04-14)
                                              • Cucumber + CapyBara + Poltergeist: Rockstar BDD Combo

                                                BDD Tools It’s an awesome idea to use BDD tools to automate your acceptance criteria and the tools like Cucumber can help to accomplish this task. The process of automating acceptance criteria using BDD tools can be defined in three layers BDD Tools: We can use BDD tools like Cucumber, SpecFlow or Behat to write an acceptance criteria in the human readable language a.k.s Domain Specific Language (

                                                  Cucumber + CapyBara + Poltergeist: Rockstar BDD Combo
                                                • GitHub - mururu/capybara-user_agent: DSL for handling UserAgent on Capybara

                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                    GitHub - mururu/capybara-user_agent: DSL for handling UserAgent on Capybara
                                                  • Cucumber: Switching from Webrat to Capybara - cakebaker

                                                    My current testing tool of choice is Cucumber. Cucumber itself integrates well with other tools. One of those tools is Webrat, which allows you to access your application without a browser and to perform actions like clicking on a link or filling out forms. It works fine with Rails 2.3.x, but not with Rails 3 (at least I was not able to make it work, and on RailsPlugins.org the current version of

                                                    • Capybara-Webkit+Cucumber+Sinon.JSでJavaScriptのテストはここまで変わる

                                                      Capybara-Webkit+Cucumber+Sinon.JSでJavaScriptのテストはここまで変わる:フレームワークで実践! JavaScriptテスト入門(5)(2/3 ページ) Capybara+Cucumberでテスト内容を記述する ここまででCucumberで特定のURLを開きスクリーンショットを保存するテストを記述し、実行できました。 ただし、これだけではWebブラウザのスクリーンショットが取得できただけであり、JavaScriptのテストの内容になっていないので、まずはテスト対象となるプロダクションコードを用意してテストのコードを書いていきます。 プロダクションコードを用意する ここからは以下のHTML/JavaScriptに対するテストを書いていきます。 このHTML/JavaScriptは「ユーザーが入力したユーザー名の利用可否をボタンを押したタイミングで取得し

                                                        Capybara-Webkit+Cucumber+Sinon.JSでJavaScriptのテストはここまで変わる
                                                      • Class: Capybara::Session — Documentation for jnicklas/capybara (master)

                                                        Inherits: Object Object Capybara::Session show all Includes: Minitest::Expectations, SessionMatchers Defined in: lib/capybara/session.rb, lib/capybara/minitest/spec.rb The Session class represents a single user's interaction with the system. The Session can use any of the underlying drivers. A session can be initialized manually like this: session = Capybara::Session.new(:culerity, MyRackApp) The

                                                        • Selenium(Capybara)でChromeを使う - Qiita

                                                          selenium-webdriverでテストする場合に、Chromeをブラウザとして使う。 まず、chromedriverをダウンロード(最新バージョンの自分のプラットフォームのもの)、インストール $ sudo mv ~/Downloads/chromedriver /usr/bin/ Capybara.register_driver :selenium do |app| # http://code.google.com/p/chromedriver/downloads/list # sudo mv ~/Downloads/chromedriver /usr/bin/ Capybara::Selenium::Driver.new(app, :browser => :chrome) end

                                                            Selenium(Capybara)でChromeを使う - Qiita
                                                          • Capybara System Corp. カピバラシステム株式会社

                                                            カピバラシステム株式会社のウェブサイトTokyo Tyrantのベンチマーク 2009.2.22 Author: yamakita 自社サービスで Tokyo Tyrant を導入するに辺り、MySQL、memcached との速度比較を行ってみました。実験に使用したサーバスペックは下記の通りです。 OS: CentOS 4.6 CPU: Xeon 2.5GHz RAM: 4GB FS: EXT3 (journal) DB: MySQL 4.1(ICC でコンパイル) Client: PHP 5.2.6 + PDO TT database: tcb ※memcached、TT への接続インタフェースには、弊社が独自開発しているフレームワークのキャッシュラッパーを利用 MySQL で使用したテーブル構成は次の通りです。 CREATE TABLE hash( name VARCHAR(

                                                            • How I test Rails apps with Minitest, Capybara, and Guard

                                                              How I test Rails apps with Minitest, Capybara, and Guard I recently made the switch from RSpec to Minitest. I like small, simple tools which I can have a complete understanding of easily. I’d rather read code than a DSL; I don’t require having my tests read like English. So Minitest is perfect for me. Making Minitest output nicerOne thing I miss from RSpec is the nice output. There’s a gem that re

                                                              • 最小限rspec-capybara-mechanizeの準備

                                                                ※ capybara は 2.0 で request spec ではなく feature spec で動くようにするなど API 変更が入っています。下のエントリは capybara 1.x 時代のものなので、gem のバージョンも 1.x になるように制限してあります。 PHP も end-to-end は RSpec で書こうと思っているという話は先日書きましたが、以前は capybara-mechanize を単独で動かしただけで rake で回せる環境になってなかったので、それを最小限の構成で準備してみました。 minimal rspec-capybara-mechanize env — Gist を clone して bundle install すればだいたいすぐ使えます。中身はこんな感じ。短い。ステキ。 は Capybara のドキュメント見ると Capybara::DSL

                                                                • GitHub - masaki/Brownie: Browser integration framework inspired by Capybara

                                                                  use Test::More; use Brownie::Session; # external server my $session = Brownie::Session->new( driver => 'Mechanize', app_host => 'http://app.example.com:5000', ); # PSGI app my $session = Brownie::Session->new( driver => 'Mechanize', app => sub { ...(PSGI app)... }, ); # PSGI file my $session = Brownie::Session->new( driver => 'Mechanize', app => 'app.psgi', ); $session->visit('/'); is $session->ti

                                                                    GitHub - masaki/Brownie: Browser integration framework inspired by Capybara
                                                                  • How can I simulate the browser back button in Capybara?

                                                                    We have a issue on our e-commerce site where users occasionally hit "checkout" twice and have their card charged twice. It's a common enough bug and easy to fix, but I'd like to test the solution in our capybara setup. Once I've called click_button('checkout'), is it possible for me to pretend I'm a user hitting the browsers back button and then call click_button('checkout') a second time?

                                                                      How can I simulate the browser back button in Capybara?
                                                                    • カピバラ温泉 - Capybara Onsen

                                                                      可愛い動物を紹介する番組 The Cute Show。今回は、世界最大のげっ歯類カピバラが可愛く温泉に入る、長崎バイオパークの『カピバラ温泉』をご紹介。 日本最大のカピバラ保有数を誇るバイオパークは、動物たちと直接コミュニケーションが取れる世界的にも珍しい動物園。副園長 伊藤雅男のインタビューとともに、憶病で知られるカピバラが人間に懐いている、非常に愛らしく珍しい姿をお届けする。 Adorable capybara taking baths! We headed to Nagasaki Bio Park to meet a herd of capybara who love to take a dip in the park's hot spring. Nagasaki Bio Park allows visitors to get friendly and intimate wi

                                                                        カピバラ温泉 - Capybara Onsen
                                                                      • Docker環境にCapybaraを導入する

                                                                        services: ... chrome: image: seleniarm/standalone-chromium ports: - "4444:4444" # ref: https://github.com/seleniumhq-community/docker-seleniarm#--shm-size2g shm_size: 2gb 私はM1 macユーザーなので、Seleniumが配布しているイメージの中でも、seleniarm/standalone-chromiumを用いた。ARMでない方はselenium/standalone-chromeなど、環境に合わせて選んでください。 ちなみに、4444ポートをバインドすることで、http://localhost:4444でSeleniumのダッシュボードをみることができるようになる。 3. Capybaraの設定 spec/rails

                                                                          Docker環境にCapybaraを導入する
                                                                        • GitHub - motemen/Wight: Communicate with PhantomJS in Perl (Capybara+Poltergeist to Perl)

                                                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                            GitHub - motemen/Wight: Communicate with PhantomJS in Perl (Capybara+Poltergeist to Perl)
                                                                          • take a glance at capybara2.0

                                                                            take a glance at capybara 2.0 2012-07-18 @okitan

                                                                              take a glance at capybara2.0
                                                                            • capybara で複数マッチする要素の最初のフォーム要素にアクションする - Qiita

                                                                              fill_inメソッド によって、フォーム要素のname, もしくは id, もしくはラベルに、「タイトル」 とあるテキストフィールドを埋めることが出来ます。 問題 フィールドが1つならよいのですが、例えば1対Nの関連だったりして、同じ名前の複数のインプットが有る場合、以下のようなエラーとなります。 Capybara::Ambiguous: Ambiguous match, found 2 elements matching field "タグ"

                                                                                capybara で複数マッチする要素の最初のフォーム要素にアクションする - Qiita
                                                                              • Configuring acceptance tests with capybara, webkit and selenium - Alexander Shvets's Web Page

                                                                                Configuring Acceptance Tests with Capybara, Webkit and Selenium Introduction We all know about importance of being armed with tests for your project. Usually project could have unit, integration and acceptance tests. Unit tests help us to test small piece of functionality in isolation (within single class) and try to answer this question: Do our objects do the right thing, are they convenient to w

                                                                                • Capybara のアクションにCSSセレクタを使う - Qiita

                                                                                  背景・事情 Capybaraでユーザの動作をシミュレートする場合、Capybara::Node::Actionsモジュールのメソッドが便利ですよね。 例えば、入力欄に文字を入力する#fill_in、ラジオボタンによる選択肢を選ぶ#choose、プルダウンメニューによる選択肢を選ぶ#select、チェックボックスのチェックを入れる#check、リンクをクリックする#click_linkなどのメソッドがあります。 これらのメソッドを使ってユーザのアクションをシミュレートしていくわけですが、そのアクションの対象となる要素を指定する方法として、メソッドの引数にlocatorというものを渡します。このlocatorはメソッドによって異なりますが、例えば「name属性の値・id属性の値・対応するlabel要素のテキストのいずれか」といった具合になっています。 しかし、ここはlocatorじゃなくCSS

                                                                                    Capybara のアクションにCSSセレクタを使う - Qiita