- ArahantActive particpant
- Posts : 23
Join date : 2012-02-29
Dear team following some challenges which i'm facing.
Mon Jun 11, 2012 6:17 pm
Dear All,
1)What is the use of JavascriptExecutor.
2)How to handle hidden web element.
3)How to append screen shots in testNG report file.
4)What is the best way of report emailing (Report should easy to understand).
5)How to handle CSS drop down items one by one at a time (Could be in loop no problem).
6)How to Make own xpaths without firebug.
If anybody having ideas and formation about all above query,kindly provide me coding along with procedure.
Thanks,
Arahant
1)What is the use of JavascriptExecutor.
2)How to handle hidden web element.
3)How to append screen shots in testNG report file.
4)What is the best way of report emailing (Report should easy to understand).
5)How to handle CSS drop down items one by one at a time (Could be in loop no problem).
6)How to Make own xpaths without firebug.
If anybody having ideas and formation about all above query,kindly provide me coding along with procedure.
Thanks,
Arahant
Re: Dear team following some challenges which i'm facing.
Mon Jun 11, 2012 7:20 pm
Interview Questions?
- ArahantActive particpant
- Posts : 23
Join date : 2012-02-29
Re: Dear team following some challenges which i'm facing.
Tue Jun 12, 2012 2:51 pm
Challenges which i am facing...
Re: Dear team following some challenges which i'm facing.
Tue Jun 12, 2012 3:36 pm
Lets see them one by one. What issues did you face with -
1)What is the use of JavascriptExecutor.
1)What is the use of JavascriptExecutor.
- ArahantActive particpant
- Posts : 23
Join date : 2012-02-29
Re: Dear team following some challenges which i'm facing.
Tue Jun 12, 2012 4:13 pm
Thanks for your reply.
As my TL said to implement all above stuff.
as per his requirement , I want to use them in my project.So it would be better if u explain usages and some sample code.I tried it searching in Google unable to find the same.Please do the needful.
As my TL said to implement all above stuff.
as per his requirement , I want to use them in my project.So it would be better if u explain usages and some sample code.I tried it searching in Google unable to find the same.Please do the needful.
Re: Dear team following some challenges which i'm facing.
Wed Jun 13, 2012 1:29 pm
Google on "selenium + java script execution" returns many results and I am sure so as search on other terms you mentioned. Did you go through any of those search results?
- ArahantActive particpant
- Posts : 23
Join date : 2012-02-29
Re: Dear team following some challenges which i'm facing.
Wed Jun 13, 2012 4:40 pm
Yes, will take one by one.
2) How to handle hidden web element : In my project having Clickable drop down.When you click on an item the drop down will retain there only and page will change with respective to the clicked item.For this scenario i used as
public static void selectValue(String valToBeSelected)
{
Select select = new Select(driver.findElements(By.id("option")));
select.selectByIndex(3);
}
From this I'm able to select third index of item.But my interest is to select one by one.And also tried with for loop as
try{
for(int i = 0 ; i<= names.size();
{
Select select = new Select(driver.findElement(By.xpath(ORproperties.quiecklnk)));
select.selectByIndex(i);
Thread.sleep(3000L);
i++;
}
}catch (Exception e) {
// TODO: handle exception
}
Not working.may be page is getting refresh so that unable to find the second index of item....
Along with above one more scenario is that mouse over drop down list need to handle in same way..
Thanks,
Arahant
2) How to handle hidden web element : In my project having Clickable drop down.When you click on an item the drop down will retain there only and page will change with respective to the clicked item.For this scenario i used as
public static void selectValue(String valToBeSelected)
{
Select select = new Select(driver.findElements(By.id("option")));
select.selectByIndex(3);
}
From this I'm able to select third index of item.But my interest is to select one by one.And also tried with for loop as
try{
for(int i = 0 ; i<= names.size();
{
Select select = new Select(driver.findElement(By.xpath(ORproperties.quiecklnk)));
select.selectByIndex(i);
Thread.sleep(3000L);
i++;
}
}catch (Exception e) {
// TODO: handle exception
}
Not working.may be page is getting refresh so that unable to find the second index of item....
Along with above one more scenario is that mouse over drop down list need to handle in same way..
Thanks,
Arahant
Permissions in this forum:
You cannot reply to topics in this forum
|
|