Adv:-
1) we can write both web driver selenium commands in a single class
2) we can convert the selenium RC program to a web driver.
comment on the default selenium object
create web driver and web driver back selenium objects.
comment on the command selenium.start(); became we can’t launch more sessions[browsers] in a single execution.
Public webdriver driver;
Public selenium selenium;
Public void open url() {
Driver =new firefoxdriver();
Selenium= new webdriverbackedselenium(driver,”http-url”);
Selenium.open(“http:,url”);
}
Inclined to build a profession as Selenium Developer? Then here is the blog post on
Selenium Training In Hyderabad.
SIKULI:-
Note: By default sikuil create a new folder with “.Siluli” sefinition and stores the screen shots into that folder Package sikuli;
Import org.sikuli.script.screen;
Import org.testing.anitation.test;
Public class sample {
Public screen s=new screen();
@test
Public void f() throws exception {
s.click(“e://workspace-10 am\sikulimerger.sikuli\(39[]”ghjhpng”);
}
}
Check out the top Selenium Interview Questions now!
By using sikuli we can perform below actions
1) type();
2) click();
3) double click();
4) Right-click();
5) over():-It performs mouse over actions
6) drag-drop():-It is to perform drag & drop action We can drag elements from source to destination.
7) exits():-It works the same as like is displayed or in element present in selenium.
write a program to mouse over on “about us” then click on “carrier” in spicejet.com by using web driver &sikuli?
Public class mouseover {
Public webdriver driver;
Public screen s;
@test
Public void f() throws exception {
Driver.get(http://spicejet.com);
s.hover(“e:\workspace 10 am\sikuliimages.sikuli\[]………,png”);
driver.find element(by.linktest(“carner”)).click();
}
Assignments:-
*write a program to compare Gmail by using web driver & sikuli?
write a program to drag a file and drop it in any target folder ?
You liked the article?
Like : 0
Vote for difficulty
Current difficulty (Avg): Medium
1/15
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.
Stay Updated
Get stories of change makers and innovators from the startup ecosystem in your inbox