Hot answers tagged

2 votes

How do I structure my Python project based on the Page Object Model

You say you have little design experience: while it is possible to start alone, you are likely to make many mistakes without being aware of them. Working as newbie without a guidance of someone senior ...
Peter M. - stands for Monica's user avatar
1 vote

I have a dynamic xpath which is based on 4 values, if I am using OR condition the xpath looks huge, any other way to handle this?

https://developer.mozilla.org/en-US/docs/Web/XPath/Functions Browser supports only XPATH version 1.0 and matches is an XPATH 2.0 method, and so you can use only xpath 1.0 in selenium. The above linked ...
PDHide's user avatar
  • 11k
1 vote

I have a dynamic xpath which is based on 4 values, if I am using OR condition the xpath looks huge, any other way to handle this?

You can use //mat-option/span[condition1 or condition2 or condition3] With XPath 2.0 or higher you could also use //mat-option/span[matches(., 'aaa|bbb|ccc')] But sadly the developers of Selenium are ...
Michael Kay's user avatar
1 vote

Turn on print, stderr, or stdout by tag during test run in Behave Python

I think you need to modify the context, not just create a variable with that name. Unfortunately, even context.stdout_capture = sys.__stdout__ doesn't seem to solve this. It generates a ...
Zabto's user avatar
  • 11
1 vote

Difference between Behave tables and Model Based testing

You are comparing Behave Tables you can write using python-behave and model-based testing. They are not really comparable, in an analogy, comparing Behave Tables with model-based testing is like ...
Yu Zhang's user avatar
  • 9,932

Only top scored, non community-wiki answers of a minimum length are eligible