Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Love Sharma
Regular Participant
Regular Participant
Posts : 27
Join date : 2012-06-01

Save-As Dialog Box in FireFox Empty Save-As Dialog Box in FireFox

Fri Jun 01, 2012 9:26 am
Hi,
I am facing some
issue with FireFox dialog box and would need your help.





My Work: Using Selenium
Webdriver, I want to “Save –As” an image on my desktop from a web page



My Expectation: I want to “Save
–As” an image on my desktop from a web page using firefox browser.



Issue I am facing: I triggered the
dialog box of “Save – As” using
contextClick but after that unable to do
anything and save the file






Pls see below
my code details and advise me. I really would be happy to get a response from
your side.






public static void main(String[] args) throws
InterruptedException



{



FirefoxProfile profile = new FirefoxProfile(new
File("path"));




WebDriver driver = new FirefoxDriver(profile);




driver.get("my vpn relevant website");




Thread.sleep(2000);




WebElement img = driver.findElement(By.xpath("/html/body/div/div[4]/div/div/div/div/div/div/div/a[2]/img"));






Actions
imghover = new Actions(driver);




imghover.contextClick(img).sendKeys("V");//
After this
“Save –As” dialog box opens but unable o do anything further. Want to save the
file on desktop
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

Save-As Dialog Box in FireFox Empty Re: Save-As Dialog Box in FireFox

Fri Jun 01, 2012 12:34 pm
avatar
Love Sharma
Regular Participant
Regular Participant
Posts : 27
Join date : 2012-06-01

Save-As Dialog Box in FireFox Empty Re: Save-As Dialog Box in FireFox

Fri Jun 01, 2012 6:55 pm
Thanks Rohit,

I saw the posts and some other on google. But can we do it on FireFox without AutoIton please?
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

Save-As Dialog Box in FireFox Empty Re: Save-As Dialog Box in FireFox

Fri Jun 01, 2012 7:34 pm
We can not automate system generated pop-up by selenium.
So for this you have to go with autoit, which will record your click operation (co-ordinate)
Sponsored content

Save-As Dialog Box in FireFox Empty Re: Save-As Dialog Box in FireFox

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