Forum Discussion
By the way, there is no such class used in the code snippet shown above. Is that all your code?
Tried the code given here - https://support.smartbear.com/readyapi/docs/testing/integrations/selenium/integrate.html
Get the following error : Could not initialize class org.openqa.selenium.json.Json
our requirement -
1. I have a system, which needs to be switched ON via web link(automated using selenium).
2. once the system comes online, I need to run API scripts.
3. after API scripts run, switch off the system via web.
4. As part of performance I need to keep repeat the above process multiple times.
Can I achieve the above requirement using ONLY readyAPI?
- nmrao7 years agoChampion Level 3Yes, that should be quite possible. But, is your script working out side soapui (the web part)?
- sridevihiranya7 years agoOccasional Contributor
Script is working in eclipes IDE.
I tried following the steps mentioned here - https://support.smartbear.com/readyapi/docs/testing/integrations/selenium/integrate.html
I get the error mentioned above.
---------------------
when I run following script -
import org.openqa.selenium.By;
import org.openqa.selenium.*;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.WebDriver;System.setProperty("webdriver.chrome.drive" , "C:/Users/Desktop/Files/logs/chromedriver.exe");
def driver = new ChromeDriver()
driver.get("http://www.google.com")------------------------
I get following error:
java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html error at line: 12
- nmrao7 years agoChampion Level 3Hope the "chromedriver.exe" file exist in the specified path as it works in IDE.
Can you try the below instead of above?
System.properties['webdriver.chrome.drive'] = 'C:/Users/Desktop/Files/logs/chromedriver.exe')
Related Content
- 6 months agoRaghavanG