UR IS MALFORMED

106 views
Skip to first unread message

Akash Aggarwal

unread,
Sep 19, 2018, 4:29:24 PM9/19/18
to Selenium Users
URL I M USING

https://www.linkedin.com/search/results/people/v2/?facetGeoRegion=%5B%22us%3A0%22%2C%22us%3A84%22%2C%22gb%3A0%22%2C%22us%3A70%22%5D&facetNetwork=%5B%22S%22%2C%22O%22%5D&keywords=digital%20marketing%20&origin=FACETED_SEARCH&page=1


the last character 1 is what i am taking as a integer variable and appending at run time


Exception in thread "main" org.openqa.selenium.InvalidArgumentException: Malformed URL: finalUrl is not a valid URL.

Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'

System info: host: 'administrators-MacBook-Air-6.local', ip: '192.168.29.6', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.3', java.version: '1.8.0_162'

Driver info: org.openqa.selenium.firefox.FirefoxDriver

Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 60.0.1, javascriptEnabled: true, moz:accessibilityChecks: false, moz:headless: false, moz:processID: 73998, moz:profile: /var/folders/l5/830bqv492h7..., moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: MAC, platformName: MAC, platformVersion: 17.4.0, rotatable: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}

Session ID: c9f69052-5b48-d249-9afa-ce60bc0fdab0

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)

at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)

at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)

at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:273)

at com.akash.test.com.akash.test1.LinkedInAutomation.main(LinkedInAutomation.java:50)

Franchesca Danielle Gaoat

unread,
Sep 26, 2018, 3:21:53 AM9/26/18
to Selenium Users
hi, have you tried using this MalformedURLException on you script?

Akash Aggarwal

unread,
Sep 26, 2018, 3:23:23 AM9/26/18
to seleniu...@googlegroups.com
Yes and it didn't work.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/deb7faf3-84aa-408f-93c3-72de96e3f66e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thank you
With Regards

Akash Aggarwal
Reply all
Reply to author
Forward
0 new messages