2016-04-05 10 views
0

次のコマンドを使用してセレンテストを実行しようとしました。コマンドラインでSelenium Test caseを実行する際のエラー

java -jar selenium-server-standalone-2.53.0.jar -htmlSuite "*firefox" "http://google.com" "/Users/abhee/Downloads/TestGoogle.html" "/Users/abhee/Downloads/results.html" 

firefoxを開き、次のウィンドウを表示します。ウィンドウ内のいずれかのボタンをクリックしても何も起こりません。何が間違っていますか?

The Components object is deprecated. It will soon be removed. atoms.js:5462:6 
unreachable code after return statement htmlutils.js:6182:0 
The character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. When viewed in a differently-configured browser, this page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file. Blank.html:100:0 
Error: Permission denied to access property "frames" 
selenium-remoterunner.js:538:21 
Error: Permission denied to access property "frames" 
selenium-remoterunner.js:538:21 
The Components object is deprecated. It will soon be removed. atoms.js:5462:6 
unreachable code after return statement htmlutils.js:6182:0 
Error: Permission denied to access property "frames" 

enter image description here

編集:

何もずっとlogincはコードであり、私は、コンソールに次のメッセージを見ました。これは、コンポーネントオブジェクトは廃止され、デフォルトのSelenium IDEのコードに

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head profile="http://selenium-ide.openqa.org/profiles/test-case"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<link rel="selenium.base" href="https://www.google.com/" /> 
<title>New Test</title> 
</head> 
<body> 
<table cellpadding="1" cellspacing="1" border="1"> 
<thead> 
<tr><td rowspan="1" colspan="3">New Test</td></tr> 
</thead><tbody> 

</tbody></table> 
</body> 
</html> 
+0

これまで実行したことがありますか?また、データファイルがなければ再作成できません。 –

+0

Selenium IDEを使用してスクリプトを作成しました。私はSelenium IDEを使ってスクリプトを実行することができました。私はコマンドラインで問題に直面しています。 – abhinav

答えて

0

を持っています。それはすぐに削除されます。は、あなたがしようとした場合に発生することができます:ポップアップウィンドウを開くために

window.open(); 

それはブラウザの設定で「ブロック」されます。あなたのデフォルトのFirefoxプロファイルにアクセスしているのだろうか?(?)あなたのFirefoxプロファイルにポップアップを許可することができます。

+0

ポップアップを許可して試しましたが、そのエラーは解決されませんでした。 – abhinav

関連する問題