2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

Not able to select value from drop down menu

This scenario is faced by every qa person in automation testing services company. Firstly, As your dropdown tag is Select, you can select value directly by using selectByValue, selectByVisibleText ...
user avatar
  • 650
0 votes

Unable to capture the element using xpath

My xpath looks like below when copied from browser: //*[@id="__next"]/div[1]/div/main/div[2]/div/div[3]/div[2]/div/div[4]/dl/div[2]/dd/span The xpath you mentioned has a high possibility to ...
user avatar
0 votes

Unable to capture the element using xpath

In every application, such scenarios of retrieving dynamic runtime data through automation script is a common requirement. Usually any professional software testing services company, will handle such ...
user avatar
  • 650
1 vote
Accepted

can we test GUI and a network protocol (SNMP) using selenium?

With Selenium alone you may not be able to test your Web GUI and the SNMP set-up. Selenium is only for automation actions that can be performed in a web browser. So it won't help in testing SNMP. But ...
user avatar
0 votes

can we test GUI and a network protocol (SNMP) using selenium?

Is it possible to test a GUI and a network protocol using Selenium? The short answer is: no. As per the Selenium website, "Selenium automates browsers. That's it!" In other words, Selenium ...
user avatar
  • 1,557
0 votes

Logging js console when doing selenium test using firefox driver

Try this piece of code and see if you get the logs: WebDriver driver; System.setProperty("webdriver.gecko.driver", System.getProperty("user.dir") + "//geckodriver"); ...
user avatar
0 votes

How to make the WebDriverWait.Until() method to NOT whitelist the NoSuchElementException

If you are providing automation testing services then you need to play with the waits for application to application. Put the code in try catch block and wait for the element only if it present: if (...
user avatar
  • 1,131
1 vote

Is there a way to record a video of my Selenium automation with Python?

One of the simplest ways is to use the Castro library: c = Castro(filename = "my-cool-selenium-video.swf") c.start() # Run your Selenium scenario c.stop() Videos are saved on /tmp, so you ...
user avatar
  • 9,813
2 votes

Is there a way to record a video of my Selenium automation with Python?

You can use docker image that Selenium provides for video recording. Since you use docker images in "remote driver" manner you can use those images from python code as well.
user avatar
  • 11.4k
0 votes

Is there a way to record a video of my Selenium automation with Python?

You can use libraries like pyautogui and numpy to write code to record screen by taking screenshots and then adding them into a video file. I haven't tried is myself, but with a quick search on the ...
user avatar
0 votes

Can we write a part of a test with Selenium IDE and the other part with WebDriver and combine the two into one test?

WebDriver is a tool you will have in the suite, but you do not have to use both together. They serve different functions altogether; they can absolutely be used together to make a great testing ...
user avatar
  • 101
0 votes
Accepted

Compilation stuck at find element by xpath without giving any error

Issue was in xpath. Selenium could not able to locate eliment with given xpath. Threfore I customize the xpath use findElements to identify all similar elements. Then use get index to get specific ...
user avatar
0 votes
Accepted

Button element found but click() action not performed

Issue was there were more buttons with given css selector variables.So when executing selenium could not find the exact elements. The solution is to get all the elements with similar css variables and ...
user avatar
1 vote

GUI for end-to-end tests

The tools exist. The need for actual programmers remain. If non programmers write tests, or capture interactions with a script and then run them at at scheduled intervals, they will run into the ...
user avatar
1 vote
Accepted

GUI for end-to-end tests

Yes there are, they are called low-code or no code software testing solution. I've used both Testim and Reflect but honestly there are a lot of them. So for example with reflect I can record a web ...
user avatar
  • 3,685
0 votes

log steps of the tests in Ide Intelij

if you're just learning, and it's java or similar, something like System.out.println("mesg"); for regular outputs for more on the output channels and their use maybe look here https://...
user avatar
  • 1
0 votes

Webdriver -> how to check something in txt file open in firefox?

When you open a text(.txt) file in a browser and check the structure of the contents in the console, you will notice that it's HTML and the content of the file are enclosed within <pre></pre&...
user avatar
0 votes

Replacement Of Sendkeys in selenium

Yes, It's not exactly a replacement but an alternative way to do it with the help of JavascriptExecutor Interface. To add more, JavascriptExecutor interface is used to execute JavaScript with Selenium....
user avatar
0 votes

JMeter + Webdriver : Java code is not taking screenshot and it is giving ERROR c.g.j.p.w.s.WebDriverSampler: Sourced file: inline evaluation of:

The error is due to missing import of TakesScreenshot class You need to add the next line: import org.openqa.selenium.TakesScreenshot to the beginning of your script. Also with regards to "...
user avatar
  • 12.5k
0 votes

Selenium can't locate element by xpath

I learn selenium and faced with the same problem. Maybe this will help someone. In my testcase selenium is clicking on a login button and a login page opens in a new tab. So, selenum could not find ...
user avatar
  • 1
0 votes

Not able to select value from drop down menu

Looking to the problem statement, I think we have 2 different requirements here: Print out List containing values. Fetch value = "ANTARCTICA" from country drop down. // Code package ...
user avatar
1 vote

Which can be better in automation framework designing for an organisation, Python or Java?

Are you familiar with either language ? Are there co-workers or mentors that use either of these languages ? These are the types of questions you need to answer. Either language works fine with ...
user avatar
  • 360

Top 50 recent answers are included