Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajax actions before taking the snapshot #18

Closed
fiuderazes opened this issue Jan 29, 2019 · 2 comments
Closed

Ajax actions before taking the snapshot #18

fiuderazes opened this issue Jan 29, 2019 · 2 comments

Comments

@fiuderazes
Copy link

Would it be possible to perform an action before taking the snapshots?
For e.g. clicking a button inside the webpage to show some hidden information

" def lookup(driver):
driver.get("url")
try:
#box = driver.wait.until(EC.presence_of_element_located((By.NAME, "q")))

    #button = driver.find_element_by_class_name('oc-home-search__button')
    button = driver.find_element_by_id('showPhone')
    #box.send_keys(query)
    button.click()

    image = driver.find_element_by_class_name('telnumber')
    print(image.get_attribute('element'))
    abc = driver.FindElement(By.XPath("//div[contains(@style, 'background-image'))
    #print(image.get_attribute("url"))

except TimeoutException:
    print("Box or Button not found!")
@maaaaz
Copy link
Owner

maaaaz commented Sep 22, 2019

Hello @TudorVR,
From your code I understand that you need a webdriver: this is currently not supported.

Cheers.

@maaaaz maaaaz closed this as completed Sep 22, 2019
@maaaaz
Copy link
Owner

maaaaz commented Nov 11, 2020

cf. #34 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants