- zapotechi
- Posts : 3
Join date : 2009-10-19
Case-"un"sensitive
Sat Jan 09, 2010 5:49 pm
Hi
i'd like to know if there are any methods to make not case-sensitive instructions like this:
selenium.isElementPresent(//html/body/table[@id='page']/tbody/tr/td/div[@id='content']/table/tbody/tr/td/div=menudiv]/table=menutable]/thead/tr/td/a);
there is one element truly presents into the html page:
//html/body/table[@id='page']/tbody/tr/td/div[@id='content']/table/tbody/tr/td/div=menuDiv]/table=menuTable]/thead/tr/td/a
i'd like that the "isElementPresent" method could find the upper element even if there are two mainly differences menuDiv instead of menudiv and menuTable instead of menuTable
thanks
Massimo
i'd like to know if there are any methods to make not case-sensitive instructions like this:
selenium.isElementPresent(//html/body/table[@id='page']/tbody/tr/td/div[@id='content']/table/tbody/tr/td/div=menudiv]/table=menutable]/thead/tr/td/a);
there is one element truly presents into the html page:
//html/body/table[@id='page']/tbody/tr/td/div[@id='content']/table/tbody/tr/td/div=menuDiv]/table=menuTable]/thead/tr/td/a
i'd like that the "isElementPresent" method could find the upper element even if there are two mainly differences menuDiv instead of menudiv and menuTable instead of menuTable
thanks
Massimo
Re: Case-"un"sensitive
Tue Jan 19, 2010 12:09 pm
hi,
To change complete word in uppercase or lowercase is possible. You can use it through javascript.
For Ex:
Hope this will help you. Best of luck.
Bye
To change complete word in uppercase or lowercase is possible. You can use it through javascript.
For Ex:
store | javascript{'merchant' + (new Date()).getTime()} | merchantId |
type | textElement | javascript{storedVars['merchantId'].toUpperCase()} |
Bye
- [SOLVED] Switching to next test case in case of failure & using a .bat file for multiple tests
- selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
- calling one juint's test case from another junit test case
- How to use a value from one test case into another test case in selenium ide.
- How to create this test case using selenium RC?
Permissions in this forum:
You cannot reply to topics in this forum
|
|