Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working :( #9

Open
JMauclair opened this issue Apr 29, 2020 · 3 comments
Open

Not working :( #9

JMauclair opened this issue Apr 29, 2020 · 3 comments

Comments

@JMauclair
Copy link

When I run the app file, I've got this :
Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users//Downloads/JYTB-patch-1/target/classes/userAgents/CHROME.txt
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.nio.file.Path.of(Path.java:147)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at com.triippztech.app.utils.UserAgent.(UserAgent.java:38)
at com.triippztech.app.services.BotWorker.initializeBot(BotWorker.java:83)
at com.triippztech.app.services.BotWorker.(BotWorker.java:76)
at com.triippztech.app.App.main(App.java:79)

@ghost
Copy link

ghost commented Apr 30, 2020

UserAgent.java -> replace constuctor

public UserAgent(Driver driverType) throws IOException { String path1 = Objects.requireNonNull(getClass().getClassLoader().getResource( "userAgents/" + driverType.toString() + ".txt")).getPath(); path1 = path1.replaceFirst("/",""); Path path = Paths.get(path1); this.userAgentList = Files.readAllLines(path); }

@kingsmanlab
Copy link
Collaborator

@prodbyhtwo
Copy link

Hey, I am trying to install selenium and use this script but I can't get it to work. please help, will pay for someone to teach me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants