Development

Using Selenium + chromedriver on Linux, like so;

chrome_options = Options()
driver = webdriver.Chrome(‘/usr/bin/chromedriver’,options=chrome_options)
driver.get(‘https://www.somewebsite.com’)

Chrome will start and will receive immediate focus (most of the time, sometimes it does not).

One can easily click outside of the Chrome window and continue working elsewhere, it will not affect Selenium/Chromedriver at all.

However, if one was typing something then the text will now be entered in the just-focused browser window. When starting many windows in sequence, this is cumbersome (keep loosing focus).

How to avoid the just-started Chrome window from receiving focus in the first place?

(Coding language used is Python)

How do you ensure your passing tests(UI automated) actually pass?
As automation engineer I think we should question our passing tests in the same spirit as we dig in our failing tests to find out reasons to fail, at least periodically.
In long standing large automation suites, there are times where a passing test has not been questioned in long time as it was always ‘passing’ until a direct bug in that area surfaces.
Please share your approach used in actual large projects to test the tests? Preferably through automation.

(I am a bit of a StackOverflow newbie, so please forgive any beginner mistakes and let me know what to improve in the future)
I am trying to select the highlighted button in the appended picture.
Problem:

There are many buttons of this kind all using the same description and XPath. So as far as I can tell there is no way of telling them apart by their cssSelector or XPath

Possible solution:

The h2 above the button contains a differentiable description of the button I need to select. So can I basically navigate to said h2 and then select the specific button belonging to it?
-> How to code it?
Are there easier ways to do this?

So far I know basic element selection as seen in this code sample:
WebElement loginElement = driver.findElement(By.xpath(“//*[@id=’login-submitBtn’]”));
loginElement.click();

Test Guild – Automation Testing Tools Community
Strategic Test Environment Setup For Automation Success
Understanding the importance of test environment setup Test environment setup is crucial for successful test automation. It involves preparing a controlled environment where you can run your tests accurately. A well-structured test environment ensures that your automation tests are reliable and provide meaningful results. Here are a few reasons why test environment setup is essential:
You’re reading Strategic Test Environment Setup For Automation Success, originally posted on Test Guild – Automation Testing Tools Community – and copyrighted by Joe Colantonio

The DistroWatch news feed is brought to you by TUXEDO COMPUTERS. The Amnesic Incognito Live System (Tails) is a Debian-based live DVD/USB with the goal of providing complete Internet anonymity for the user. The distribution’s latest version, Tails 6.4, introduces a random seed to help strength cryptographic functions: “Tails now stores a random seed on the USB stick to….