Verify answer from Google calculator using Selenium - testing

I have just started using Selenium IDE and I am trying to open the Google search engine and type in a sum (example 5+7). This will open a result page with a calculator and the answer in it.
So far the test works but when I try to verify that the answer is correct I am getting an error even though it is. Basically I am highlighting the answer, right clicking on it and clicking verifyText. Similarly if I click on the text box holding the answer and choose verifyElementPresent I get an error as well.
Can someone please enlighten me on why I am getting these errors.
P.S I am new to Selenium so I would appreciate it if your answer is kept simple
Thanks in advance :)

You are getting the error because of the latency time.
Just add a waitForElementPresent keyword before validating the result.
It Workss...
Happie learning. :)

Related

VBA Selenium vs. HTML

I'm using VBA to access and download file but I'm strugling to find element.
I've got this piece of code which is perfectly working in browser console, but I'm not very familiar with selenium so I'm kindly asking you to help me with "translation" to VBA
($(".yui3-c-reportdashboardwidget-reportLabel[title='nameoftable']").parent()).find("a.ember-view").click();
For VBA I need
driver.FindElementByXpath().Click
or
driver.FindElementByCss().CLick
Thank you very much
P.
i've found a solution, there exist "ExecuteScript" command in VBA.
so solution is:
driver.ExecuteScript ("$("".yui3-c-reportdashboardwidget-reportLabel[title='mytablename']"").parent().find('a.ember-view').click();")

Selenium not performing certain actions

There is this website that I keep visiting every day to look for updates, but I started getting bored of visiting it just to find nothing. So I thought it could be a good idea to automate this task and whenever there are updates I'll get a message to my email. So I thought I could use Selenium and some other commands, but when I was coding, I stumbled upon a problem. I wanted selenium to click a button but it gave me the error message:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element
I've tried finding the button with different options. I've tried finding it by xpath, by name, by id, by class but nothing seems to work. I have read some threads on here and tried to resolve the issue with their advice but it didn't work either. I gave every action a few seconds(10 seconds to be exact) to be performed, but it still doesn't work. Maybe the website I chose to monitor doesn't allow it? Is it possible for them to block the actions I want to perform or is there maybe something I'm missing in the code?
Thank you

VS Code intellisense in the way

I find the suggestions useful, but good-lord I can't see what I'm doing. I can't find a setting to move the suggestions out of the way.
Unfortunately, users cannot currently change the position of the Intellisense info popup. There is an open issue for this but it hasn't received attention in a while.

Why the Console of Xcode10.1 can't display my input?

This bug was found after I updated to macOS Majove.
When I tried to do a small test on my Xcode, I found the console couldn't display the numbers that I typed but the numbers were truly read into memory.
And it still could work!
The amazing thing was when I changed the theme of the Xcode, it showed up!
My images will show the detail.
I think it's a bug of Xcode.
Is there any way to solve the problem?
I will be appreciated!
Thanks :)
=========================18/12/19UPDATED=================================
There's an another detail that the console will display my input the first time I run the program and it won't display later.
I found a temporary method to solve this issue. Just “printf” something before the “scanf” and the console will display the input. But it’s only a makeshift!

CodedUI prints "pipe" instead of "slash"

I have a problem with using Keyboard.SendKeys in CodedUI tests during entering date. I have simple html page with textbox (input[type='text']) and I'm trying to enter date in format (M/dd/yyyy) into it by following command (I am using VB.NET):
Mouse.Click(htmledit)
Keyboard.SendKeys("^A") ' Sending keys to select all and delete hence clear content of the textbox
Keyboard.SendKeys("{DEL}")
Keyboard.SendKeys("10/10/2014")
In my machine, it works just quick and perfect.
But, today's morning I tried to run test on the another machine and I noticed that it types pipe (vertical bar) instead of each slash! So, what I got is: 10|10|2014..
I was very surprised and tried another symbols and they work just as fine as on the my machine.
By googling this problem I have nothing. Does anyone know how to fix it? And I am very curious why it happens? Keyboard.SendKeys depends on what?
Thank you.