Posts

What is Robot Class in Selenium WebDriver?

Image
Selenium can't interact with Window dialogs on it's own. You all must know that Selenium can only handle browser windows and not OS windows. So, when we have to upload any file on a webpage and as soon as we click on the Browse or Upload button, a windows tab opens up from which we have to select the file. We cannot handle that windows tab directly with Selenium WebDriver. But we can use other libraries and integrate them with Selenium code to handle window based dialogs. Robot class is one of them. We can use Robot class to upload or download a file using selenium. What is Robot Class in Selenium WebDriver? Robot Class is used to perform Keyboard actions. It has direct support to perform actions like press and release key. Robot class has key codes for each key present on the keyboard. So, if we want to press any key, then we need to call that key code. In automation we make use of Robot class to handle Windows tabs by interacting with them via virtual keyboard. One i

Selenium 4 Is Released: What Every QA Must Know

Image
Back in August of 2018 the whole testing automation community had been struck by the big news: Simon Stewart, the founding member of Selenium, had officially confirmed the release date and some of the major updates for Selenium 4 at the Selenium Conference in Bangalore. The 4.0 version of the worlds beloved framework for web testing automation was meant to be released by Christmas 2018. Selenium 4 release date Now, those who were familiar with the story behind the Selenium 3.0 release, which was also supposed to happen by Christmas, probably already knew back then, the new version would most likely indeed be finished by Christmas, but probably not in 2018. Just like it’s happened with the previous version which was released three years later than promised at the time of the original announcement. And they would have been right! As of today (and we are updating the information about Selenium 4.0 release in February 2019) the release of the new version still

Some of the best computers to be used for hacking

Image
Well, this is one of  Adrián Lamo ‘s computers: Beautiful, isn’t it? He obviously owns this machine (to “own” something means you can fix it when it breaks, and the above has obviously been fixed many times). Here’s one of my own boxes: Yes, I’m using “box” literally… and yes, we actually installed LEDs  inside the power supply  (hint: there are two circuits inside, high voltage and low voltage; one of them can kill you and burn your house down, while the other will only burn your house down (which may or may not kill you)). It’s eco-friendly, too (the cardboard is biodegradable and the components are from the trash). TL;DR: The best computer for a hacker is one that they own. P.S. Also read  Adrián Lamo's answer to How did Adrian Lamo learn to hack? Possibly the most important aspect of my early computer experience was finally having a computer system that was  mine . I could experiment with it. I could break it and have to fix it. I could mess up the sett

Fundamentally, What is programming?

Image
Fundamentally, it’s arranging patterns so that, when fed to a machine, certain desirable patterns come out. This is a  Jacquard loom : This is the device that inspired  Charles Babbage  to invent the computer. As you can see, it’s weaving a carpet. This is not a computer (there are certain important things that are missing, like internal state and the ability to also  change  the patterns on the paper), so this loom didn’t involve  computer  programming, but I think it’s still programming - just look at the tape; that’s  obviously  code, and I don’t think it’s unreasonable to call the person that wrote it a programmer. Guest Author Vladislav Zorov programming enthusiast. Lives in Bulgaria Love my answers? Donate to my gaming budget:  paypal.me/vladizorov

What is the most beautiful computer program?

Image
The null program (i.e. empty program): In many languages it’s a  quine  (a program that prints its own source code). Full test coverage by default. Has a  cyclomatic complexity  of 1, the smallest possible value. Runs in  O ( 1 ) O ( 1 ) . People think their first program is “hello world”, but actually the first valid program they have written is most likely the null program. Is very portable, not just across operating systems and compilers but also across programming languages. Is at the base of every other program ever written. Sometimes, it  is  the program being written ( The /bin/true Command ). It literally breaks the charts on all metrics that are “per line of code”. Everything else is downhill from there :) Guest Author Vladislav Zorov programming enthusiast. Lives in Bulgaria Love my answers? Donate to my gaming budget:  paypal.me/vladizorov