Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Ruby by talktokets ( 12 years ago )
def add_adset(custom_ad_source)
  begin
    element_present(:xpath,".//*[@id='adSetDetailsBody']/div[3]/button","Unable to add another ad")
    click_element(:xpath,".//*[@id='adSetDetailsBody']/div[3]/button","Unable to add another ad")
    wait_until(20)
    #WAIT.until {$driver.find_element(:xpath,".//*[@id='adSetDetailsBody']/div[3]")}
    assign_ad_source(custom_ad_source)
    puts"error 1"
    sleep 4
  rescue Exception => e
    STDERR.puts e.message
  end
end

 

Revise this Paste

Your Name: Code Language: