Getting an error while running a Webdriven automated test regarding VR Path Registry

My Code is:

package automationFramework;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.firefox.FirefoxDriver;

public class FindElementsBNavComm {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("http://toolsqa.wpengine.com/Automation-practice-form/");
driver.findElement(By.partialLinkText("partial")).click();

System.out.println("Partial Link Test Pass");
String sClass = driver.findElements(By.tagName("button")).toString();

System.out.println(sClass);
driver.findElement(By.linkText("Link Test")).click();

System.out.println("Link Test Pass");
}
}

Console:

1528231808804 geckodriver INFO geckodriver 0.20.1

1528231808815 geckodriver INFO Listening on 127.0.0.1:15089

1528231808815 geckodriver INFO Listening on 127.0.0.1:15089

1528231809503 mozrunner::runner INFO Running command: “C:\\Program Files\\Mozilla Firefox\\firefox.exe” “-marionette” “-profile” “C:\\Users\\MZZARO~1\\AppData\\Local\\Temp\\rust_mozprofile.3Jaxx87tS6od”
1528231812075 Marionette INFO Listening on port 49506
1528231812658 Marionette WARN TLS certificate errors will be ignored for this session

Jun 05, 2018 4:50:12 PM org.openqa.selenium.remote.ProtocolHandshake createSession

INFO: Detected dialect: W3C

Error at hand: 

Unable to read VR Path Registry from C:\Users\mzzarouri\AppData\Local\openvr\openvrpaths.vrpath

JavaScript error: http://20tvni1sjxyh352kld2lslvc.wpengine.netdna-cdn.com/wp-content/themes/dt-the7/js/above-the-fold.min.js?ver=3.8.1, line 1: TypeError: jQuery.browser is undefined

JavaScript error: http://20tvni1sjxyh352kld2lslvc.wpengine.netdna-cdn.com/wp-content/themes/dt-the7/js/main.min.js?ver=3.8.1, line 7: TypeError: t.browser is undefined

JavaScript error: http://20tvni1sjxyh352kld2lslvc.wpengine.netdna-cdn.com/wp-content/plugins/convertplug/modules/info_bar/assets/js/info_bar.min.js?ver=4.8.6, line 1: TypeError: jQuery.browser is undefined

Exception in thread “main” org.openqa.selenium.NoSuchElementException: Unable to locate element: partial

For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html

Build info: version: ‘3.12.0’, revision: ‘7c6e0b3’, time: ‘2018-05-08T15:15:03.216Z’
System info: host: ‘NJ101297LT’, ip: ‘172.30.244.253’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘10.0.1’

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: 29464, moz:profile: C:\Users\mzzarouri\AppData\…, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: XP, platformName: XP, platformVersion: 10.0, rotatable: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}

Session ID: 49ef2c0e-cafe-4f98-a9e2-bfef8d1d33f9

*** Element info: {Using=partial link text, value=partial}
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
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:543)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:317)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByPartialLinkText(RemoteWebDriver.java:379)
at org.openqa.selenium.By$ByPartialLinkText.findElement(By.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:309)
at automationFramework.FindElementsBNavComm.main(FindElementsBNavComm.java:13)

Default Asked on June 5, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.