New answers tagged

0

That selector is positional based and likely to break as other emails pour in and/or the website updates its UI. Also, a .click() should "bubble" up from the to its parent <button> but we can target the button directly for interaction. I checked out the inbox and was able to successfully find the parent <button> of the 'Activate Your ...


1

By selecting the correct approach of creating locators can make any automation framework more efficient. Xpath is one of the available options to locate any element in complex html web pages. With the help of XPath, tester can find the exact element by navigating through different hierarchies of web page. Like by using, any of these functions : Contains, ...


0

i tried this and it works. Managed to get 'Jessica' RichestPersonName = browser.find_element_by_xpath("//p[text()='3000']/preceding-sibling::span").text


0

You should use the preceding-sibling Xpath option: //p[text=()='3000']/preceding-sibling::span


0

The strategy mostly followed by the quality assurance services is to use the language inbuilt functions/libraries while automating similar scenarios. Here we can use ".split()" inbuilt function to break the string and then using index [1] or [2] to fetch the required text. We will be splitting the String at 'bubble'. There are 02 occurrence of '...


Top 50 recent answers are included