Selenium IDE gives different result when running the same code - selenium-ide

I am new to Selenium and was just playing with the IDE. I have a website that runs locally on my machine which has a IFrame and some popups. The following code runs very well when in medium speed mode or slow mode but fails when run in fast mode it gives an error (see line 15 below). Even though I tried to keep wait statements for things to sync.
Also notice that the same code is executed just fine in line 9 whether running slow or fast.
01 open /default.aspx
02 type id=loginContent_txtPassword xxxx
03 clickAndWait id=loginContent_btnSet
04 windowFocus
05 click //div[#id='lBar_leftItem_4']/a
06 waitForFrameToLoad aframe 30000
07 selectFrame aframe
08 click css=img[title="Properties"]
09 waitForPopUp doc 30000
10 selectWindow name=doc
11 close
12 selectWindow null
13 selectFrame aframe
14 click css=img[title="Properties"]
15 waitForPopUp doc 30000 ***[error] can't access dead object**
16 selectWindow name=doc
17 verifyText id=popupContent_lblOwner XYZ*
18 close

Tried many things... but finally putting a short pause (for a few seconds) before the statements that causes the issue solved the problem. Maybe the selenium requests are not synced and it sends some requests to the browser before it can handle it (just my guess!)

Related

WinDbg showing same lines multiple times

I'm having readability issues with WinDbg, it outputs same lines 2 or more times over and over again, spamming out the console.
Here is an example snapshot of WinDbg output:
Built by: 17134.1.amd64fre.rs4_release.180410-1804
Built by: 17134.1.amd64fre.rs4_release.180410-1804
Machine Name:Machine Name:
Kernel base = 0xfffff800`eb41e000 PsLoadedModuleList = 0xfffff800`eb7d81f0
Kernel base = 0xfffff800`eb41e000 PsLoadedModuleList = 0xfffff800`eb7d81f0
Debug session time: Tue Jul 31 03:55:51.667 2018 (UTC + 2:00)
Debug session time: Tue Jul 31 03:55:51.667 2018 (UTC + 2:00)
Loading Kernel Symbols
Loading Kernel Symbols
Loading User Symbols
Loading User Symbols
Loading unloaded module list
.Loading unloaded module list
as you can see, it duplicates lines, do you know what could be the issue and how to solve it?
This seems to happen when some extensions forget to unregister their output callbacks.
Restart WinDbg after every debugging session or try the new WinDbg Preview from Microsoft Store. It has a better usability anyway.

Fail2Ban not working on Ubuntu 16.04 (Date issues)

I have a problem with Fail2Ban
2018-02-23 18:23:48,727 fail2ban.datedetector [4859]: DEBUG Matched time template (?:DAY )?MON Day 24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2018-02-23 18:23:48,727 fail2ban.datedetector [4859]: DEBUG Got time 1519352628.000000 for "'Feb 23 10:23:48'" using template (?:DAY )?MON Day 24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2018-02-23 18:23:48,727 fail2ban.filter [4859]: DEBUG Processing line with time:1519352628.0 and ip:158.140.140.217
2018-02-23 18:23:48,727 fail2ban.filter [4859]: DEBUG Ignore line since time 1519352628.0 < 1519381428.727771 - 600
It says "ignoring Line" because the time skew is greater than the inspection period. However, this is not the case.
If indeed 1519352628.0 is derived from Feb 23, 10:23:48, then the other date: 1519381428.727771 must be wrong.
I have run tests for 'invalid user' hitting this repeatedly. But Fail2ban is always ignoring the line.
I am positive I am getting Filter Matches within 1 second.
This is Ubuntu 16.04 and Fail2ban 0.9.3
Thanks for any help you might have!
Looks like there is a time zone issue on your machine that might cause the confusion. Try to set the correct time zone and restart both rsyslogd and fail2ban.
Regarding your debug log:
1519352628.0 = Feb 23 02:23:48
-> timestamp parsed from line in log file with time Feb 23 10:23:48 - 08:00 time zone offset!
1519381428.727771 = Feb 23 10:23:48
-> timestamp of current time when fail2ban processed the log.
Coincidently this is the same time as the time in the log file. That's what makes it so confusing in this case.
1519381428.727771 - 600 = Feb 23 10:13:48
-> limit for how long to look backwards in time in the log file since you've set findtime = 10m in jail.conf.
Fail2ban 'correctly' ignores the log entry that appears to be older than 10 minutes, because of the set time zone -08:00.
btw:
If you need IPv6 support for banning, consider upgrading fail2ban to v0.10.x.
And there is also a brand new fail2ban version v0.11 (not yet marked stable, but running without issue for 1+ month on my machines) that has this wonderful new auto-increment bantime feature.

Time Cisco Router reload not always mentioned

Im trying to measure our cisco router availability data based on downtime happened. I assume from show version, the time mentioned in tag "System returned to ROM" is when reload started, and next line "System restarted at" is when router back online again. The only thing confusing is RouterA node showing time when returned to ROM while RouterB is not.
Does anyone know the different? And how to make RouterB shows the exact time router reloaded next time on the show version command?
Thanks
Hadit
RouterA#show version
Cisco IOS Software, s72033_rp Software (s72033_rp-ITPK9V-M), Version 12.2(33)IRI, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Fri 04-May-12 14:04 by prod_rel_team
ROM: System Bootstrap, Version 12.2(17r)S4, RELEASE SOFTWARE (fc1)
RouterA uptime is 4 years, 11 weeks, 5 days, 17 hours, 27 minutes
Uptime for this control processor is 4 years, 11 weeks, 5 days, 17 hours, 19 minutes
System returned to ROM by reload at 00:01:24 JAVT Thu Oct 11 2012 (SP by reload)
System restarted at 00:05:58 JAVT Thu Oct 11 2012
System image file is "bootdisk:s72033-itpk9v-mz.122-33.IRI.bin"
Last reload type: Normal Reload
RouterB#show version
Cisco IOS Software, s72033_rp Software (s72033_rp-ITPK9V-M), Version 12.2(33)IRI, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Fri 04-May-12 14:04 by prod_rel_team
ROM: System Bootstrap, Version 12.2(17r)S4, RELEASE SOFTWARE (fc1)
RouterB uptime is 4 years, 12 weeks, 6 days, 17 hours, 51 minutes
Uptime for this control processor is 4 years, 12 weeks, 6 days, 17 hours, 54 minutes
System returned to ROM by reload (SP by reload)
System restarted at 00:16:21 JAVT Wed Oct 3 2012
System image file is "bootdisk:s72033-itpk9v-mz.122-33.IRI.bin"
Last reload type: Normal Reload
Do not rely on those commands to measure availability, you are much better off using a proper uptime tool to handle this for you, there are several free ones like Zabbix, PRTG and others and commercial ones like Solarwinds, HP NNM and others.
The output of those commands may change without notice hence not a good idea to rely on them for things that c an be automated using proper tools.

Can not connect to Local Web UI of Kura

I want to install Kura in my computer (ubuntun 14.04, JDK1.7) with eclipse. I followed http://eclipse.github.io/kura/doc/configurable_component.html. My problem is I can not connect to localhost:8080.
In console of eclipse, I inputted 'ss' and its outputs are
"Framework is launched."
id State Bundle
0 ACTIVE org.eclipse.osgi_3.8.1.v20120830-144521
1 RESOLVED slf4j.log4j12_1.6.0
Master=39
2 ACTIVE org.eclipse.equinox.ds_1.4.0.v20120522-1841
3 ACTIVE org.eclipse.jetty.http_8.1.3.v20120522
4 ACTIVE javax.servlet_3.0.0.v201112011016
5 ACTIVE org.eclipse.equinox.console_1.0.0.v20120522-1841
6 ACTIVE org.apache.commons.fileupload_1.2.2.v20111214-1400
7 ACTIVE org.eclipse.kura.deployment.agent_1.0.1
8 ACTIVE org.eclipse.jetty.continuation_8.1.3.v20120522
9 ACTIVE org.apache.felix.deploymentadmin_0.9.5
10 ACTIVE org.eclipse.kura.example.hello_osgi_1.0.0.qualifier
11 INSTALLED org.eclipse.kura.core_1.0.1
12 ACTIVE org.eclipse.equinox.io_1.0.400.v20120522-2049
13 ACTIVE log4j_1.2.17
Fragments=24
14 ACTIVE org.eclipse.equinox.metatype_1.2.0.v20120522-1841
15 ACTIVE org.eclipse.osgi.services_3.3.100.v20120522-1822
16 ACTIVE org.apache.commons.io_2.4.0
17 ACTIVE com.gwt.user_0.2.0
18 ACTIVE org.apache.commons.net_3.1.0.v201205071737
19 INSTALLED org.eclipse.kura.core.net_1.0.1
20 ACTIVE org.apache.felix.dependencymanager_3.0.0
21 INSTALLED org.eclipse.kura.core.configuration_1.0.1
22 ACTIVE org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841
23 ACTIVE org.eclipse.soda.dk.comm_1.2.1
24 RESOLVED log4j.apache-log4j-extras_1.1.0
Master=13
25 ACTIVE org.hsqldb.hsqldb_2.3.0
26 ACTIVE org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
27 ACTIVE org.eclipse.equinox.util_1.0.400.v20120522-2049
28 ACTIVE org.eclipse.equinox.event_1.2.200.v20120522-2049
29 ACTIVE org.eclipse.jetty.server_8.1.3.v20120522
30 ACTIVE org.eclipse.jetty.servlet_8.1.3.v20120522
31 INSTALLED org.eclipse.kura.core.cloud_1.0.1
32 ACTIVE org.json_1.0.0.v201011060100
33 ACTIVE javax.usb.api_1.0.2
34 INSTALLED org.eclipse.kura.emulator_1.0.1
35 ACTIVE org.eclipse.osgi.util_3.2.300.v20120522-1822
36 ACTIVE org.apache.felix.gogo.runtime_0.8.0.v201108120515
37 ACTIVE org.eclipse.kura.api_1.0.1
38 ACTIVE org.eclipse.jetty.util_8.1.3.v20120522
39 ACTIVE slf4j.api_1.6.4
Fragments=1
40 ACTIVE org.eclipse.kura.example.configurable_1.0.0.qualifier
41 ACTIVE org.eclipse.jetty.io_8.1.3.v20120522
42 ACTIVE org.eclipse.equinox.cm_1.0.400.v20120522-1841
43 ACTIVE org.apache.felix.gogo.shell_0.8.0.v201110170705
44 ACTIVE org.eclipse.jetty.security_8.1.3.v20120522
45 INSTALLED org.eclipse.kura.web_1.0.1
46 ACTIVE org.eclipse.kura.core.crypto_1.0.1
47 ACTIVE osgi.cmpn_4.3.0.201111022214
48 ACTIVE javax.usb.common_1.0.2
comment 'ls' gave
All Components:
ID State Component Name Located in bundle
1 Active org.eclipse.kura.deployment.agent org.eclipse.kura.deployment.agent(bid=7)
2 Active org.eclipse.kura.example.hello_osgi org.eclipse.kura.example.hello_osgi(bid=10)
3 Active org.eclipse.equinox.event org.eclipse.equinox.event(bid=28)
4 Unsatisfied org.eclipse.kura.example.configurable org.eclipse.kura.example.configurable(bid=40)
5 Active org.eclipse.kura.crypto.CryptoService org.eclipse.kur
Is there anybody ever had this problem may help me, please. Thank you in advance
I had the same problem... The answer was I downloaded the wrong package.
There are 2 Developers Workspaces for download. On the left side without the WebUI.
Try to download the Developers Workspace on the right side (Extended Downloads) Developers Workspace (With Web UI) https://www.eclipse.org/kura/downloads.php
I can see that you have lots of INSTALLED or RESOLVED bundles, which should be ACTIVE after Kura started. This might be the reason of fail activation of Kura Web UI service. Because the web service might depends on other bundles or services.
So if you still haven't solve it yet, try followings:
Change log level by editing /opt/eclipse/kura/kura/log4j.properties file. Set log4j.rootLogger=INFO,kura to log4j.rootLogger=DEBUG,kura. And restart kura.
See /var/log/kura.log, there may be some debug messages.
See /var/log/kura-console.log, there may be some exceptions that explained why the bundle is not activated.
If you still don't know why, post it here and we can discuss it.
Hope this solve your problem, cheers

Netbeans: project won't start all of a sudden - Glassfish problems?

I am a first time user of Netbeans, and was just playing around. I followed a very basic tutorial, and when I first ran the project, it opened up my browser (Chrome) and displayed what it should display.
The next day, I want to show it to my buddies, but the project won't start.
The project tab shows the following:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting GlassFish Server 3.1.2
and the other tab "Java DB Database Process" gives me the following:
Wed May 23 19:52:45 CEST 2012 : Sicherheitsmanager mit einfacher Server-Sicherheitsrichtlinie installiert.
Wed May 23 19:52:46 CEST 2012 : Apache Derby Network Server 10.8.1.2 - (1095077) wurde gestartet und ist bereit, Verbindungen am Port 1527 zu akzeptieren.
(the last line translates to "Server was started and is ready to accept connections in port 1527")
The only thing that was different when I tried it was the fact that I was in a public wireless net in University, and not at home. Windows Firewall asked me, if I wanted to grant permission, and I said "Yes"
So basically Netbeans tells me that my project is currently in the process of being started, but nothing happens for ages.
Any ideas what I could possibly have done wrong? I googled the heck out of it, but found nothing.
EDIT: After 20 minutes I get a timeout and a message that the server couldn't be started. I am clueless...
The different network configuration can indeed be a reason for this issue.
You could verify this by either checking the server.log under:
glassfish-install-dir/glassfish/domains/domain1/config/server.log
Scroll down to the last log entry before server start stopped.
Or you can start your server manually in verbose mode. Then you will see all log messages in the console:
Open a console window and switch to the following directory:
glassfish-install-dir/bin
Then enter the following command:
asadmin start-domain --verbose=true