Hi Manoj,
My requirement is to Right click and select an option in that, I have done scripts for RightClick,but my arrow keys are not working to select an item, So can you suggest any method to select the particular item or any method to move the mouse to the particular item and click
Thanks,Sandeep
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "webdriver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webdriver/ctB7p-nIjxI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webdriver+...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
I would love for you to tell me the xpath to a browser RIGHT click menu element. Good luck.
//Austin
From: webd...@googlegroups.com [mailto:webd...@googlegroups.com] On Behalf Of Vivek Soundararajan
Sent: 4. mars 2014 06:47
To: webd...@googlegroups.com
Subject: Re: [webdriver] Re: After right click a link how to select an option on right click menu
Srividya,
Why do we need to use ARROW_UP or ARROW_DOWN Keys?, If we know the clickable element's xpath, we can easily click the element using driver.findElement(By.xpath(xpath expression)).click();
On Tue, Mar 4, 2014 at 11:06 AM, Srividya Attuluri <srividya...@gmail.com> wrote:
-- 
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
My reply was to the other guy (Vivek) replying that you should use xpath on a browser menu. You, of course, cant.
I think at this point you need to post the html behind that window with tabs so we can have a look at how to solve it. I do think you are overengineering it and the solution is easier then you think J but I don’t know anything about your site so I really need to see some html.
//Austin
From: webd...@googlegroups.com [mailto:webd...@googlegroups.com] On Behalf Of Srividya Attuluri
Sent: 4. mars 2014 16:21
To: webd...@googlegroups.com
Subject: Re: [webdriver] Re: After right click a link how to select an option on right click menu
Hi Austin,
I dont want to pass the xpath of the clickable element but just wanted to select by using Arrow _up andc arrow down
after that wanted to move to next tab in the window Now i am able to click the element using arrowup and downbut not able to click on next tab using window handles .
regards
sri
On Mon, Mar 3, 2014 at 11:57 PM, Austin <tor...@hotmail.com> wrote:
-- 
Thanks&Regards,
Srividya.
Use sendkeys to pass the arrow up and down to select the value where u want to click and then click enter button using sendkeys .WebElement elementq =driver.findElement(By.xpath("//div[@id='component-1049']/div/a"));Actions builderq = new Actions(driver);builderq.contextClick(elementq).sendKeys(Keys.ARROW_UP).sendKeys(Keys.ENTER);builderq.build().perform();--Manoj Hans