Zulfi Khan

Ranch Hand
+ Follow
since Jun 05, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
15
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zulfi Khan

Hi,
  Kindly see the picture. All text boxes are disabled initially. But when I bring my mouse closer to any radio button, the two text boxes which I disabled just because that particular radio button was disabled, becomes enabled. I don't want this. You can see this thing in the picture. I want the text boxes to enable when I click the radio button. This is my problem. Text boxes are right now enabling when I don't select radio button but just bring the mouse closer to the radio button. I have added a stateChanged method for each radio button and in each stateChanged method I am toggling two textboxes i.e. the textboxes are initially disabled but when I select the radio button then two text boxes for which I have written the toggling code in the stateChanged method becomes enable. At this point text boxes get enabled for a moment when I bring the mouse closer to the radio button. This is not correct and I want to correct this by making sure that the text boxes get enabled on selection. I hope you got understanding of my problem.

My complete code is given below:


1 week ago
Hi,
Thanks for improving my code readability but the problem still persists. Somebody please guide me.

Zulfi.
1 week ago
Hi,
I have written code to enable and disable the textfield using RdioButton. But when I am just focusing the over the radio button using Mouse, it is enabling the text field. Some body please guide me how to solve this problem. I want to enable the text fields when I click on the radio buttons.

I have 3 radio buttons and each radio button should enable two textfields:



Following is the information about my class name and instance variables:

I am working on NetBeans 8.1 and I am using windows 10 Pro
1 week ago
Hi,
I am able to solve this problem. I downloaded the file apktool_2.3.4.jar. So I renamed it as apktool.jar and it solved my problem.

Zulfi.

1 month ago
Hi,
I am trying to install the apktool. I am using the following link:

APKTool
The link instructs to download the jar file and batch file and store it in the C:\Windows directory.
Batch file has following contents:

@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
chcp 65001 2>nul >nul
java -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0\apktool.jar" %*

When I am executing batch file apktool.bat from command line, I am getting following error:
Error: Unable to access jarfile C:\Windows\apktool.jar
I have windows 10 Pro installed on my system. I have i7 machine. I have provided the path of "C:\Windows" directory in PATH system variable. Some body please guide me.

Zulfi
1 month ago
Hi,
Please guide me which jar I have to remove or its okay. I cant figure out whether I have to add jar or remove any one.


run:
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
at org.openqa.selenium.chrome.ChromeOptions.asMap(ChromeOptions.java:279)
at org.openqa.selenium.remote.NewSessionPayload.create(NewSessionPayload.java:93)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:67)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:143)
at samplesaucetest.SampleSauceTest.main(SampleSauceTest.java:49)
C:\Users\HP\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)




Zulfi.
5 months ago
Hi,

I have solved that exception error but now I am getting another error:



Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap
at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:59)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:143)
at samplesaucetest.SampleSauceTest.main(SampleSauceTest.java:46)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableMap
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
C:\Users\HP\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)





Following link says that there are 47 jar files used for Selenium proj but I cant find them. I want to get a single jar
file for that. github link downloads a file which is not a jar file

webpage
Some body please guide me about one single jar file so that I dont have to use dozens of them.

Zulfi.
5 months ago
Hi,
Thanks. I have removed the syntax errors:



but now its giving me exception error:


Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/ConnectionPool
at org.openqa.selenium.remote.internal.OkHttpClient$Factory.<init>(OkHttpClient.java:118)
at org.openqa.selenium.remote.internal.OkHttpClient$Factory.<init>(OkHttpClient.java:123)
at org.openqa.selenium.remote.http.HttpClient$Factory.createDefault(HttpClient.java:59)
at org.openqa.selenium.remote.HttpCommandExecutor.<clinit>(HttpCommandExecutor.java:47)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:143)
at samplesaucetest.SampleSauceTest.main(SampleSauceTest.java:46)
Caused by: java.lang.ClassNotFoundException: okhttp3.ConnectionPool
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more
C:\Users\HP\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)







I have found this problem at:

webpage

One good suggestion is to use jar files. So I am trying them & give me version after including jars.

Thanks.
Zulfi.
5 months ago
Hi,
Thanks for your response. I am still getting the same errors. I have imported following libraries:


The three lines on which I am getting syntax errors are:



It says unknown variable 'CapabiltyType'

Somebody please guide me.

Zulfi.

5 months ago
Hi,
I am still getting unknow symbol error for CapabilityType in the following statement:

options.setCapability(CapabilityType.PLATFORM_NAME, Platform.WINDOWS);
options.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);
options.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);

Somebody please guide me.

Zulfi.
5 months ago
Hi,
I have got following imports:

5 months ago
Hi
Thanks for your response. I gave you wrong infomation. I am not getting any error on ChromeOptions() but now its giving error on the next statement". Its giving error on CapabilityType i.e cannot find symbol variable CapabilityType.

I have added two imports but they are not working.

I am attaching a picture. I have added the jar file: client-combined-3.14.0.jar.

Please guide me.

Zulfi.
5 months ago
Hi,
Thanks for your response. I have imported ChromeOptions()


but still I am getting red bubble on ChromeOptions() method in my program. I am not using command line option. The site gave a command line javac command but that was too old. So I think it should work with NetBeans 8.2. I saw a tutorial for Ellipse.

I am using NetBeans8.2 & I am working windows 10.

Zulfi.
5 months ago
Hi,
I am trying to run the following code provided by Sauce lab:


I am getting the error "cannot find symbol ChromeOptions". I am getting error on all the following lines:



I have included the client-combined-3.14.0.jar

Some body please guide me.

Zulfi.
5 months ago
Hi,

Thanks for your time and advice. It worked.

God bless you.

Zulfi.
5 months ago