問題タブ [protractor]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
selenium - うなり声で分度器とチームシティ
Grunt を使用して Teamcity で分度器のテストを実行しようとしています。
ランナーの設定方法がわかりません。コマンド ライン ランナーを使用してみましたが、成功しませんでした。
Grunt で分度器を呼び出すことはできますが、問題は「webdriver-manager start」にあります。
Selenium サーバーを起動できますが、サーバーが終了しないため、ビルドはそのままで、TC は分度器テストをいつ開始するかわかりません...
Teamcity で分度器テストをセットアップするための最良のアプローチは何ですか? エージェントで Selenium を常に実行するのは一般的ですか?
前もって感謝します
protractor - 分度器はcli.jsファイルを見つけることができません
分度器とデフォルトのレポをWebドライバーとともにインストールしました。分度器を実行するたびに、このエラーが発生します
これを修正する方法がわからない...手がかりはありますか?
javascript - AngularJS をテストするために分度器に Cookie を追加する
Protractor for Angularjs で非常に単純な Cookie の追加と取得のテストを行うのに問題があります。これはテストブロックです:
このテストは失敗し、データが null であると表示されます。印刷getCookies()
すると、すべての Cookie が印刷されますが、テスト Cookie はそこにありません。これについての助けを本当に感謝します!ありがとう!
javascript - 分度器の引用符の問題
分度器内の引用符で発生している問題について質問があります。
これが私のコードです:
これは問題なく動作しますが、今度は RegEXP("16.5") で "status": "ok" が文字列内にあるかどうかを確認します。
私が欲しいのは: RegEXP(" "status": "ok" ") ですが、もちろんこれは機能せず、 browser.executeScript からの一重引用符のために一重引用符を使用できません。
誰かが私がまだそれを機能させる方法を知っていますか?
angularjs - How can I grab all the content/text on a page inside a protractor test?
I want to set a variable based on whether some text is present on the current page or not.
And then run a protractor
test that depends on that variable. I can't do $(':contains')
because there's $ != jQuery
in this context and i can't see a simple way to do it with getText()
which returns a promise. Is there a matcher like expect.toContain
? and a way to run some code after that matcher is run? Or is there some other strategy i can use.