Unable to find the option in Selenium Firefox - selenium-ide

I've recently started learning Selenium, and in the tutorial there is an option as verifyTextPresent, in the tutorial, it is given as below.
Open the browser
start recording
select the text
right click on it
and there in options there is **verifyTextPresent** option
but when i was trying to do the same, i'm unable to find this option. So in my browser, i clicked on Show All Available Commands and it is giving me the below options, but unable to find the verifyTextPresent Option, please let me know how can i get verifyTextPresent.
But when i click in the command text box, there it is showing verifyTextPresent

verifyTextPresent(pattern) This command is deprecated. Use the
verifyText command with an element locator instead.
You should use VerifyText going forward.

Hi i can see that command in IDE. can u verify again?
It tells that the command is deprecated and that you will have to use verifyText command.

Related

How to replicate the following Spyder behavior in VSCode?

I'm new to coding Python in VSCode. Previously I used Spyder but decided to move to VSCode as the project management seems better in it (I could easily switch to other files/folders by clicking on the path, just like in PyCharm). But I really need this one workflow which I still have not managed to do it in VSCode.
write some codes like Selenium.
Click run (F5)
The selenium browser opens up.
I could use the Ipython terminal to access the code interactively (find the element in the browser etc) and send new command.
I would like to have this workflow in VSCode. Im also quite overwhelmed by the difference in these 2 IDEs, for example, in VSCode, you have integrated terminal, a debugging console and an output tab, while im used to have only one-for-all Ipython tab.
Ok, I figured out what I need. Basically I just need to right click on the python file that I want to run on the side bar. Then I have to select 'run current file in interactive window'. The only difference is on the Ipython console, I have to use shift+Enter to send my input instead of just clicking enter. But its not a big deal.

No output when running Python 3 in VScode

I'm using Python 3.8 on VScode, but I can't seem to get the program to write anything in output, even with simple commands like: print("Hello world!"). It shows up in the terminal well enough, so the code shouldn't be the problem. Do i need to fix anything in the setting to make it show the output?
1: Picture of terminal:
Please could you check your user settings.json and workspace settings.json for the existence of a setting for terminal.integrated.shell.*.
I believe you may have changed the shell to use command prompt instead of powershell.
Also, please could you provide some screenshots of the terminal
And any errors logged in the console widows (go to Help->Toggle Developer Tools)

Can't find pydev console prompt in eclipse

So I'm working on two machines and they both have Eclipse and Pydev on them. The first machine has a console that has a prompt where I can type in and execute commands when I run on:
The second machine doesn't have the same prompt and I can't figure out how to get it:
I've been looking around online and the closest piece of advice I found is that I need to find the console button on the menu bar next to the tabs and select to show/hide the prompt, but as you can see it's doesn't show up on the second machine. Does anyone know how to I can get the console prompt on the second machine?
Found the issue. I was using PyDev 2.8.2 which didn't support the prompt, I updated to 4.5.4 (higher versions don't show up in my eclipse) and now I'm able to see it.

eclipse plugin: run command in console, get stdin

I'm making an eclipse plugin where I want to run a system command, and have the output of the command go to the eclipse console. I know how to do this via http://wiki.eclipse.org/FAQ_How_do_I_write_to_the_console_from_a_plug-in%3F
The problem I don't know how to solve, is to allow interactive input from the console for this command.
In essence, I want to kick off a command which runs in the console. The user can interact with this command (via stdin). I then want my plugin code to get a callback when the command has finished (or user has manually stopped/terminated the command in the console). Getting the return code of the completed program would be nice as well.
For simplicity sake, lets use the unix 'passwd' command as the example (this is the first common cmd I could think of that both has output and prompts for input). I don't need to hide the stdin however.
For reference, the command I'm trying to call is the CakePHP bake shell.
I assume that you got yourself a MessageConsole, like in the FAQ. Then it should be possible to use messageConsole.getInputStream().read() in a loop to get your input (but I have not tested this). See also the documentation of the IOConsoleInputStream for more options.
On the other hand I'm not sure why you are creating your own plugin to do that. The standard console implementation in Eclipse does exactly what you want. You can see that by running a small Java application, where you can use that console for input and output as well.

Running Coffeescript snippets directly in Aptana Studio 3

Right now I am playing around with CoffeeScript and I loved to see that Aptana now supports it natively. But I am unable to "Run" the Script directly in Aptana to get the results printed to the built-in console.
When i click Ctrl+R as described in the CoffeeScript Bundle I only get a git-help information printed in the console.
For Example
script.coffee
console.log "Hello Coffee"
When I run it through the terminal by typing
$coffee script.coffee
I get the result printed perfectly.
I can't find any documentation or hints for solving this problem.
Am I missing something ?
There is an open ticket here and a brief discussion here.
If this is your issue (look at the console if you get this 'line 3: pre: command not found' error), then a temporary solution I found is to edit Aptana Rubles/coffeescript.ruble/commands/run.rb (located in ~/Documents in a linux installation) and remove ' | pre' from line 11.
After that, restart Aptana or reload the Coffeescript bundle from Bundles View (right-click on it->reload), select the text (will work only if there is selected text) and press Ctrl-R + 1. You should now see a new html file with the 'Hello Coffee' in it.
Hope this helps.