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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
behave × 12python × 11
bdd × 4
selenium-webdriver × 3
mobile-automation × 3
ios × 3
automated-testing × 2
appium × 2
xpath × 1
cucumber × 1
page-objects × 1
uiautomation × 1
gherkin × 1
linux × 1
browserstack × 1
allure × 1
model-based-testing × 1
edge-chromium × 1