Share
Go down
Arahant
Active particpant
Active particpant
Posts : 23
Join date : 2012-02-29

Dear team following some challenges which i'm facing.

on 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
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

Re: Dear team following some challenges which i'm facing.

on Mon Jun 11, 2012 7:20 pm
Interview Questions?

_________________
Thanks
Tarun K
Free Selenium Training
Arahant
Active particpant
Active particpant
Posts : 23
Join date : 2012-02-29

Re: Dear team following some challenges which i'm facing.

on Tue Jun 12, 2012 2:51 pm
Challenges which i am facing...
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

Re: Dear team following some challenges which i'm facing.

on 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.

_________________
Thanks
Tarun K
Free Selenium Training
Arahant
Active particpant
Active particpant
Posts : 23
Join date : 2012-02-29

Re: Dear team following some challenges which i'm facing.

on 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.
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

Re: Dear team following some challenges which i'm facing.

on 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?

_________________
Thanks
Tarun K
Free Selenium Training
Arahant
Active particpant
Active particpant
Posts : 23
Join date : 2012-02-29

Re: Dear team following some challenges which i'm facing.

on 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
Sponsored content

Re: Dear team following some challenges which i'm facing.

Back to top
Permissions in this forum:
You cannot reply to topics in this forum