Testing image upload and crop using Selenium IDE - selenium-ide

I am not able to crop the image in selenium ide.
consider the scenario :-
After clicking on upload image link one pop up window opens for choose file
After choosing the file i got option for upload file
after clicking on upload file i got 3 options
Crop it
Fit to window
Cancel
and its mandatory to select any of the three options to upload image to your profile.
I want to automate selenium script for above steps
scripts are recorded properly upto steps 3 but at 4th step selenium is not able record above three options.
( i didn't get any Xpath for above 3 buttons using firebug or xpathfinder addon )
( we are stick to selenium ide 1.10.0 )

Related

TinyMCE 5 - Is there a way to accept only uploaded Image, using the "image" plugin?

I want to allow uploaded images only, not images linked from external websites. Is there a way to only display the "Upload" section of the "image" plugin/dialog?
The image plugin does not have a built in configuration option to do what you want. As TinyMCE is released under an open source license you could certainly modify the code of that plugin to get your desired outcome.

Selecting a file from a windows dialog box in Telerik Web Test

Hi guys,
Is it possible to select a file from a dialog box when we are running a web test in Telerik Test Studio? The scenario of this execution is when we click a field in a web browser, a windows dialog box pops out and we would need to input a path to a local folder and select a file(SelectFile.PNG).
But I'm unable to detect any element from this dialog box presuming this is because the test script is a web test and hence this limitation(do correct me if i'm wrong).
Is there any workaround or suggestion to this limitation?
Many many thanks!
Best Regards,
Pravin
praja#dongenergy.dk
Kind of a late response but if your recording is enabled, it should automatically record the step for a File Upload dialog box (and handle it appropriately when using play back).
Alternatively, you can manually add the "Dialogs->FileUpload" step, and fill in the properties appropriately.

Is there a way to programmatically open a server-side file in a new tab?

I'm running Jupyter notebook on a server and executing it from a client computer. In Rstudio server, one can programmably open a server-side file in a new tab via file.show. This is sometimes very convenient. For example, I have a script that processes a rather large image. Because of its size I don't want it to show directly in the output panel, rather I want to view it in a new tab. In Rstudio server I would normally do:
... image processing code ....
ggsave('temp.png')
file.show('temp.png')
This will automatically pop up the new image in a new tab once the script is finished.
Is it possible to do something similar in Jupyter?
I noticed that I could achieve this by clicking the image file in the built-in file browser, but I wonder if this could be programmed.
Similarly, is it possible to programmably open a webpage in a new tab like browseURL in Rstudio server? Note that webbrowser.open(url) doesn't quite do it because it tries to open a local browser, which in the server-client scenario will not open the new tab on the client side.
You can make a link. Relative URLs will open in a new browser tab. Files are served relative to the directory containing the notebook you are currently working on.
In Python:
from IPython.display import display, HTML
display(HTML('see image'))
Opening new tabs programmatically often triggers pop-up blockers, but publishing a link that the user clicks should be reliable.

Selenium IDE: Automate the task

I want to automate the task of checking link by datewise, download the file and verify the excel sheet contents.
Steps:
1. Open URL. It will display the links of file(xxxx_130112_130208_xxx.xlsx).
2. click and download matched date link. It will download excel sheet.
3. Search the content and display report.
Please let me know if any idea regarding this. Can we automate this scenario.
-sri
You cannot do anything outside the browser. The only thing allowed is to use ClickOkOnNextConfirmation to click OK in dialog. But it will not work for saving the file. That's how Selenium IDE works.

photo gallery using Composite c1 cms

I just started using composite C1 CMS. And I have built one sample site where I need to build the photo gallery. I was able to upload single single picture but confused to create gallery. I also need to upload multiple pictures one at a time.
So,I will be very thankful to the solution
Upload multiple files
You can upload multiple pictures using the "Upload Multiple" command instead of the "Upload File" command in the media archive. Here is how to:
On your computer select all the images you with to upload and make a ZIP file with them
In the C1 Console, on the Media perspective, execute the "Upload Multiple" command on the desired folder
In the dialog, browse to the ZIP from step 1 and upload.
UPDATE: This is now documented at http://users.composite.net/C1/Image-Media/Upload-Multiple-Files.aspx
Getting an Image Gallery
There are pre-build galleries you can use. Consider using one of those rather than building your own.
Here is a guide on adding a blog and gallery to Composite. The gallery used here uses Picasa (an online service for picture storage). If you want to upload your pictures to the CMS instead, install one of these packages:
Composite.Media.ImageGallery.ADGallery
Composite.Media.NivoSlider
Composite.Media.ImageGallery.Slimbox2
They are all available as C1 Packages you can install, evaluate and uninstall if you dislike them.