Ich habe versucht, einen Selentest mit dem folgenden Befehl auszuführen.Fehler beim Ausführen des Selenium-Testfalls über die Befehlszeile
java -jar selenium-server-standalone-2.53.0.jar -htmlSuite "*firefox" "http://google.com" "/Users/abhee/Downloads/TestGoogle.html" "/Users/abhee/Downloads/results.html"
Es öffnet Firefox und zeigt das folgende Fenster. Nichts passiert, wenn ich auf eine Schaltfläche im Fenster klicke. Was kann falsch sein? Ich folgende Meldungen in der Konsole gesehen:
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"
Edit:
Es gibt nichts viel loginc im Code ist. Es verfügt über Standard-Selenium IDE Code
<?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>
Hatten Sie schon einmal das Laufen? Außerdem können wir ohne Ihre Datendateien nicht neu erstellen. –
Ich habe das Skript mit Selenium IDE erstellt. Ich konnte das Skript mit Selenium IDE ausführen. Ich habe Probleme mit der Befehlszeile. – abhinav