kevin Abel

Ranch Hand
+ Follow
since Jan 15, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
1
Total given
22
Given in last 30 days
17
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by kevin Abel

Dave,
appreciated.
I will try it now.
Thanks,
Kevin
19 hours ago
I want to use Assert.assertEquals but it is showing with a line through the text.  I attached a screen shot to this post because it does not show in the code below. Cut and paste did not include the strikethrough.  

How do I use Assert correctly?


Thanks,

Kevin


22 hours ago
Jeanne,
I appreciate the reply.  I could not tell the syntax from looking at the link.
Thanks,
Kevin
4 days ago
I appreciate the assistance Sheriff Jeanne.

I located the Testing area of the forum by clicking on the ALL FORUMS button. Then the page shows up showing all of the forums.  Testing is under Engineering. Now I know where to place my threads. 

I'm looking at the link for Java Chord.  It shows the information below for how to use it.  There is a second chord example but it mentions iterative so I don't think I need that one.. 

The guess I made inside of Eclipse IDE is:
string A = public static java.lang.String chord("CTRL+A")  but it light up with all kinds of errors. 
I googled Java Chord but the hits received had to do with music chords written with JAVA.  
I tried this and the Chord part has a red underline:
String A = chord("CTRL+A");
I can use an example of how to use the chord.
Thanks,
Kevin


public static java.lang.String chord(java.lang.CharSequence... value)
Simulate pressing many keys at once in a "chord". Takes a sequence of Keys.XXXX or strings; appends each of the values to a string, and adds the chord termination key (Keys.NULL) and returns the resultant string. Note: When the low-level webdriver key handlers see Keys.NULL, active modifier keys (CTRL/ALT/SHIFT/etc) release via a keyup event. Issue: http://code.google.com/p/webdriver/issues/detail?id=79
Parameters:
value - characters to send
Returns:
String representation of the char sequence
5 days ago
I'm working with Java/Selenium Web Driver.
This is the code to launch the browser and navigate to a URL.



I do some tasks and then I want to navigate to a different URL on the same browser that is already opened. 
My guess was to use:



but the Eclipse IDE says that it does not use a parameter.

So what do I use to move to a new URL in the already open browser?

Thanks,

Kevin
6 days ago
I am working with Selenium Web Driver
Something looks wrong with the CONTROL+A part of the code below.  How do I highlight/select all of the text on the display?




Thanks,

Kevin
6 days ago
The error is shown on the Attachments tab.
Thanks,
Kevin
2 weeks ago
The path is now 151 and reaches the bin folder.

I don't know what is wrong with my Java / Eclipse set up.

Thanks,

Kevin
2 weeks ago
I did not see:
Eclipse preferences > Java > Installed JREs.
in the Selenium Menu and I could not find a file with the name eclipse preferences.
i found an answer on Stack Overflow that showed how to export the files.  Code ranch won't allow me to attach an .epf file so I pasted the contents below.    I see it mentioning 1.7 and not 1.8.  I"m going to go to sleep now.  I will check the thread tomorrow.   Also I see that you copies the thread from the Java area to here.  i don't know how you did that.

#Fri Feb 02 23:33:42 EST 2018
\!/=
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.compliance=1.7
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.source=1.7
/instance/org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1462756018616" defaultVMConnector\="">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1462756018616" name\="jdk1.7.0_45" path\="C\:\\Program Files\\Java\\jdk1.7.0_45"/>\r\n</vmType>\r\n</vmSettings>\r\n
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles.version=12
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
@org.eclipse.jdt.core=3.13.0.v20160913-0926
@org.eclipse.jdt.launching=3.8.200.v20160627-1834
@org.eclipse.jdt.ui=3.12.100.v20160910-0421
file_export_version=3.0
2 weeks ago
Jeanne if you are reading this or anyone else that can assist me.
Norm and Campbell and others have been quick at responding to my questions and I appreciate it a lot.
I am stuck all the way at the beginning of working with Java.   Something is wrong on my machine with the path, jdk. java.exe, jre   and I just don't know what it should look like or what I'm doing wrong.  
I am answering questions and posting images.  
I think I need a screen share so I will work with my tutor and let him control my PC to get it fixed.  I don't think this will happen for another week because of our schedules.  In the meantime I enjoy learning and trying to get this figured out with the forums advice.
Thanks,
Kevin
2 weeks ago
Here are some images of the path for System variables.
2 weeks ago

Campbell Ritchie wrote:That problem is usually caused by a newer version of javac than the version of java. Please try the following instructions at the command line:-You will probably have to alter your system PATH to correct that problem, so look through your PATH for folders which might contain Java® runtimes.



Campbell,
Java says 1.8.0_151 and other lines that mention build of the same numbers.

javac says 1.8.0-151

Path contains c:\program files\java\jdk1.8.0_150     I have to look again for the JRE.  

Thanks,

Kevin
3 weeks ago
I am reading the yellow upside down yellow triangle and i see what you are talking about.  I don't know enough to fix it.  i can click on the links in the message and see if it gives some clues of what to do.
3 weeks ago
Now when I run it is saying "Java exceiption has occurred."

It was suggested to me from my training school that I change the settings to:
Project -> Properties -> Java Compiler Enable project specific settings. Then select Compiler Compliance Level to 1.8, 1.8 and 1.8 as per the jdk version that you have instaled in your system, build and test your app

It seems to make things worse because I am getting the error message when I try to run other scripts in Eclipse that used to work.

Exception in thread "main" java.lang.UnsupportedClassVersionError: module3/Module3_Assignment : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
3 weeks ago
Paul, Cambell, Anjoulie,
Your replies are appreciated as always.
Thanks,
Kevin
3 weeks ago