Unable to switch tabs in Firefox

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Unable to switch tabs in Firefox

Bhavin Shah

I have written a code to verify logged in user name (first+last) but as arrow is there I am not able to do so. Can anyone pls help me out ? (Refer attachment)

Below is the code I have written

String expected = "Anjana2 Sharma";
WebElement rs = driver.findElement(By.xpath(".//*[@id='side-menu']/li[1]/div[1]/a/span/span/strong"));
      String actual = rs.getText();
      System.out.println("Test Case is Passed");   
          else {
        System.out.println("Test Case is Failed");  


You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAHp3d76EasNeecV7nvPs6u1tqC0xz16TdbfnwTpuR%2Bwj%2BpynsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

ref img -01.jpg (139K) Download Attachment