2016-04-05 26 views
0

çalıştırırken hata oluştu Aşağıdaki komutu kullanarak selenyum testi çalıştırmayı denedim.Selenium Test işlemini komut satırında

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'u açar ve aşağıdaki pencereyi gösterir. Pencerede herhangi bir düğmeye tıkladığımda hiçbir şey olmuyor. Neyin yanlış olabilir? Ben konsolda şu mesajları gördü:

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

Düzenleme:

kodunda hiçbir şey çok loginc yoktur. Bu

<?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

Hiç bu işe koştun mu? Ayrıca, veri dosyalarınız olmadan yeniden oluşturamayız. –

+0

Selenium IDE'yi kullanarak senaryoyu oluşturdum. Selenium IDE'yi kullanarak senaryoyu çalıştırabildim. Komut satırı ile sorunları yaşıyorum. – abhinav

cevap

0

Bileşenleri nesne kullanımdan kaldırıldı varsayılan Selenyum IDE kodu vardır. Yakında çıkarılacak. Bir pop-up penceresi açmak için

window.open(); 

ancak tarayıcınızın ayarlarından "engellenmiş" dır: Eğer çalışırsanız kaynaklanabilir Can. Varsayılan firefox profilinize erişilip girilmediğini merak ediyorum (?) Firefox profilinizde pop-up'lara izin vermeyi deneyebilirsiniz.

+0

Pop-up'lara izin verdim ve denedim, Bu hatayı çözmedi. – abhinav

İlgili konular