Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

How to Add Transaction Markers In selenium scripts

$
0
0

I added Transaction markers in my script but in user path it is not showing.

script: import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
import static com.neotys.selenium.proxies.NLWebDriverFactory.addProxyCapabilitiesIfNecessary;
import org.openqa.selenium.remote.DesiredCapabilities;
import com.neotys.selenium.proxies.NLWebDriver;
import com.neotys.selenium.proxies.NLWebDriverFactory;
import com.neotys.selenium.proxies.WebDriverProxy;

public class Mothercare {
public static NLWebDriver driver;
public static void main(String[] args) {

System.setProperty("webdriver.chrome.driver","F:\\ManiKanta_Personal\\Selenium\\chromedriver_win32\\chromedriver.exe");
//ChromeDriver driver = new ChromeDriver();
driver =WebDriverProxy.newInstance(new ChromeDriver());
driver.manage().window().maximize();
driver.startTransaction("01_Launch");
driver.get("https://www.firstcry.com/");
driver.stopTransaction();
driver.findElement(By.xpath("//div[@class='_pop_close _pop_reg_bg']")).click();
driver.startTransaction("02_Login");
driver.findElement(By.xpath("//span[@class='poplogin_main poplogin']")).click();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

driver.findElement(By.xpath("//input[@id='txtLUNm']")).sendKeys("mani.sanambatla@gmail.com");
driver.findElement(By.xpath("//input[@id='txtLPass']")).sendKeys("firstcry");
driver.findElement(By.xpath("//input[@id='btnlogon']")).click();
driver.stopTransaction();
driver.close();





}

}


Viewing all articles
Browse latest Browse all 2283

Trending Articles