Posts

Showing posts with the label absolute XPath

Comprehensive Selenium WebDriver Syntax for Effective Test Automation

Comprehensive Selenium WebDriver Syntax for Effective Test Automation public static void main(String[] args ) throws InterruptedException, IOException { System. setProperty ( "webdriver.chrome.driver" , "./Drivers/chromedriver.exe" ); WebDriver driver = new ChromeDriver(); driver .manage().window().maximize(); driver .manage().timeouts().implicitlyWait(30, TimeUnit. SECONDS ); driver .get( "https://www.w3schools.com/html/html5_draganddrop.asp" ); //Actions MouseOver WebElement src = driver .findElement(By. xpath ( "//input[@id='name']" )); WebElement trg = driver .findElement(By. xpath ( "//input[@id='city']" )); Actions action = new Actions( driver ); action .dragAndDrop( src , trg ).build().perform(); action .contextClick( src ).build().perform(); action .moveToElement( src ).build().perform(); //DropDown WebElement country = driver .findElement(By. xpath ( "//input[text()='country']" )); Selec...

Here is the content refined for clarity and professionalism suitable for someone preparing for a QA Automation interview:

*** Topics to Study *** Prior to having an interview for QA Automation for completion FindTheDuplicateNumber EvenLetterPrintFromString ExtractSpecialCharacterFromString Factorial FibonnacciSeries GreaterNumberInArray IndexPositionOFAlphabet LeapYearNonLeapYearInArray NonRepeatingCharacter OddAndEvenFromArray RemoveDuplicateCharacter ReverseNumber ReversString SmallestNumberInArray TwodifferentStringComparison UpperCaseCountInString VowelLetterCount WhiteSpaceCount WordCountInString Swap PalindromeNumberChecker TwoNumberGreater DuplicateWordFinder CharacterCount SecondGreaterNumberInArray =============Manual testing Functional Testing VVI================== Types Of Testing White Box Black Box Gray Box Unit Testing Integrating Testing System Testing Acceptance Testing Regression Testing ReTesting Smoke Testing Sanity Testing Adhoc Testing Monkey Testing RTM Matrics Test Plan Test Strategy What is bug leakage and bug release? --------Not VVI-Manual------------ Static Testing Dynamic ...

Top 35 frequently asked questions with answers on relative XPath, absolute XPath, dynamic XPath, and CSS selector usage in Selenium

Here are the top 35 frequently asked questions with answers on relative XPath, absolute XPath, dynamic XPath, and CSS selector usage in Selenium, along with their syntax: 1. What is a relative XPath? Relative XPath is an XPath expression that locates an element based on its relationship to another element in the XML or HTML document. Syntax: `//tagname[@attribute='value']` 2. How do you write a relative XPath expression? A relative XPath expression starts with a double forward slash (//) and can use various attributes, such as tag name, class, ID, or other element properties, to locate the desired element. Syntax: `//tagname[@attribute='value']` 3. What is an absolute XPath? Absolute XPath is a complete XPath expression that provides the full path from the root node to the desired element in the XML or HTML document. Syntax: `/root/tagname[@attribute='value']` 4. How do you write an absolute XPath expression? An absolute XPath expression starts with a single for...