1
vote
Robot Framework how to set a variable in an xpath?
You can use the built-in variable syntax of Robot Framework to set variables in your XPath expression. Here is an example:
${REPLACETHIS}= Set Variable default
${list_item}= Set Variable xpath=//*[...
1
vote
Unable to fetch text values present within strong tag using xpath
Solution :
I have tried accessing the element and get text successfully using
System.out.println(driver.findElement(By.tagName("strong")).getText());
Found working as expected
Suggestion :...
1
vote
Selenium : Unable to identify the Xpath of the Grammarly extension in chrome
This element is inside a shadow root. Xpath is not supported here. We should use css selector and access it through its host element and the shadow root.
To know more about this follow this url:
https:...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xpath × 337selenium-webdriver × 312
automated-testing × 130
java × 68
selenium2 × 27
css-selectors × 27
python × 22
browser-automation × 17
c# × 9
page-objects × 7
selenium-webdriver-c# × 7
exception × 7
css × 7
uiautomation × 6
testng × 5
appium × 5
javascript × 4
chromedriver × 4
robotframework × 4
jmeter × 3
protractor × 3
selenium-ide × 3
soapui × 3
elements × 3
test-design × 2