I am a beginner to selenium and have downloaded and installed the IDE. I'm following some tutorials and although at least some commands work (I can go to google and search for something), for some reason not all commands are available in the IDE and I have no idea why.
I tried restarting my browser and my computer, but the refresh command isn't part of the dropdown. I also tried manually typing Refresh as a command in the ide, but I get an error message saying: Unknown command refresh. See image
here
Thanks!
You can use executeScript command and use Javascript to refresh the page.
There are multiple ways of using JS Refresh detailed here
Related
Having read the previous versions of this question from 2020 this issue appears to have reared it's head again. I have tried these demos with my current jszip#3.7.0 and with jszip 3.1.5 using it as my application jszip and overwriting the jszip within pptxgenjs.
When using pptxgenjs in IE11 (Windows 10) it appears to work in that no errors are reported, what does happen is the browser alerts the user that: "You'll need a new app to open this blob link". The only option that is available at this point is then to go to "Look for an app in the Microsoft Store" of which no apps are available.
What this says to me is that pptxgenjs has done its job and has passed the blob link to the browser and the browser has said I have no clue you'll need to find something to open this.
I've attempted to run the demos in the same Windows 10/IE11 setup and they seem to do worse. the live demo doesn't error or offer the ability to download an app to support opening the blob link. The react demo errors to the console: SCRIPT438: Object doesn't support property or method 'endsWith'. The Basic Demo in the complete library of demos fails like the live demo not returning an error or acknowledging anything.
Is this a known issue? Is there another step to help IE11 with the blob link? Can anyone else get the demos to work and I should be looking at something else? Any thoughts would be appreciated.
Edit:
Apologies if this wasn't clear, but the demos I was referring to were the pptxgenjs demos found here: https://gitbrent.github.io/PptxGenJS/demos/ so focusing on the initial demo named 'Live Demo' the code that is being run is here: https://gist.github.com/gitbrent/84acbcaab54be0eba83f5206ef6ddd95#file-pptxgenjs_demo-js
Running this with all other key browsers such as edge, firefox and chrome all 'download' the generated file whereas running the same demo in IE11 fails silently.
i'm using selenium ide to test webapp frontend webpages.
I'd like to test via cli AND via gui having to mantain one scripts only.
When automating tests via selenium-side-runner it does not handle alert/confirm command if i don't change any "choose ok on next confirmation" with "webdriver choose ok on visible confirmation", but after change it side gui does not handle it.
Even exporting to python has some incokmpatiblity with gui.
Anyone knows the proper way to record a side.script with gui and run with cli without having to modify it and letting run the tests with the gui again?
I've see many complaining about this without solution, do you advise to use another fronted tester in the place of side? Why?
Thanks.
Just reporting what said on github's bug tracker issue 1270 by toddtarsi.
There's no way to have one script only to handle gui and cli tests. We have to wait for selenium-ide v4 (not SELENIUM).
The correct way is webdriver one.
These scripts executed perfectly on "Lion". When I upgraded to "Mavericks" they only display as text. The scripts still execute (from the command line) perfectly, but when called from the browser you get the text (not the web page that it should be generating).
A simple step-by-step would be greatly appreciated.
Thanks!
I assume you are trying to run these in a browser? Have you made sure that the web worker executing the script has the correct level of permissions required to do so?
I am using Windows OS. I went through the loadui website to understand the automation process. As I am very new with this software, I cant even understand how to run certain command. For example, there is command like this "loadUI-Agent-1_5_0.exe -c" need to be run in command line.
I try to paste it in command prompt, but it is not recognized. Anybody have any idea how to do that? It is very good if you guys can provide me link to learn from zero, where I can follow step by step to automate the load testing using loadui.
Thanks
You have to use loadui-cmd.bat, which can be found in the LoadUI installation directory.
You should also use the latest version of LoadUI which is 2.1.1.
Source: Getting Started with Automation from the LoadUI documentation.
I am using selenium to record some tests. We have a save to pdf button on our application that generates the windows open/ save or in firefox the ok/cancel windows pop up,
The issue is that i can;t get selenium to record my ok or cancel action since i think it is not a javascript window?
Does anyone know the command to do that?
thanks
Sadly, it's not possible to interact with such windows at the moment.
A good workaround for saving files dialog is to save the various parameters (local directory, etc) and tell your browser to not prompt for them, so the window won't pop at all.
See http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ#SeleniumCoreFAQ-Whatyoucan%27tdowithSelenium
Create a separate firefox profile(command to open profile manager:-firefox -P) with the settings you want(you can give settings like where to download and save a file of a particular type automatically without prompting) and instruct your server to use that profile using the command : java -jar 'your server ' -firefoxProfileTemplate 'path_for_firefox_profile'